Documentation: how to build with non-default directories
The README.md file doesn't give enough information to let one build a copy of geoipupdate with non-default directories - at least, not if one is a go novice. It looks as if the correct approach is something like:
cd $HOME/go/src/github.com/maxmind/geoipupdate and do:
set CONFFILE=/some/path/myGeoIP.conf
set DATADIR=/some/path/to/data/dir
make
But this doesn't work. It would be nice if README.md could include the correct steps to achieve the desired results.
This should work:
CONFFILE=/etc/foo DATADIR=/etc/bar make
You're right it'd be good to expand the section we have about changing the default config/directory with this though. Thank you for the idea!
That works fine, thanks - except I should mention that there's a dependency on pandoc, readily fixed on my Mac by doing sudo port install pandoc (I haven't graduated to homebrew yet). I'll be trying it on Centos soon...