Added bundled version of GeoIP. shamelesly inspired by node-gzip. #27

wants to merge 3 commits into


None yet
2 participants

toots commented Dec 16, 2011

No description provided.

toots commented Dec 22, 2011


Any news on this? I really need it to push some code into production and I'd like to avoid publishing a new npm package just for it..

kuno commented on 7be14f9 Jan 20, 2012

sorry make you wating for so long time, (so far, busying on company's project)
thanks for you code
Will it cause some troubles by including libgeoip source code?
I am not a expert on license, but I really worry about that.


toots replied Jan 20, 2012


The source code is actually not included in the patch but downloaded at configure/build time. Thus, licensing concerns are only restricted to linking against the library, which is already the case without my patch and shouldn't be a problem anyway..


toots replied Jan 21, 2012


Sorry, I don't know what was wrong with me, the source code is included...

License for libgeoip is LGPL, which means that, among others, you are free to distribute it, so there should be no problem bundling it with your source code.

kuno replied Jan 24, 2012

I think it's better downloading the souce code only when we need it.

what's the waf commands to build libgeoip from source code?


toots replied Jan 25, 2012

Downloading isn't my favorite option because URLs change, servers have downtimes and installer may not have access to internet..

In the current patch, bundled libgeoip is built by default. In order to build against a shared one, one has to do:

node-waf --shared-geoip configure

Additionally, location for the library can be specified by using the --geoip option.

@mnutt mnutt referenced this pull request in mnutt/hummingbird Jan 19, 2013


GeoIP.h file not found #43


kuno commented May 1, 2013

Now we use node-gyp.


@kuno kuno closed this May 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment