x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
Upstream ships a tiny GeoIP.dat since 1.6.10 so we can drop the
optional steps in TEST().
There seems to be a bug in curl (7.58.0 or earlier) which did not
exist in curl 7.50.3 when the patch for geoipupdate.sh was added.
This happens when the script tries to update an up-to-date GeoIP
database file. It looks like curl's "--time-cond" option forgets to
instruct "--remote-time" to skip its job if a "304 Not Modified" is
received. If the output file exists then this does not get noticed.
But if this file does not exist then curl complains with an unwanted
"Failed to set filetime ... on outfile" warning.
Trying to fix this issue in our script would require to redirect
curl's stderr to /dev/null (or creating a temporary (empty) file to
make curl happy) but doing so would not be a good idea.
We can live with this warning until curl gets fixed.
Created recipe for version 2.2.2 with nice polishing for the man
pages, the runtime and the default configuration:
* Template config in system/data/geoipupdate/GeoIP.conf.default.
* Active config in system/settings/GeoIP.conf.
* Download location for all GeoIP Legacy and GeoIP2 databases:
B_SYSTEM_CACHE_DIRECTORY/GeoIP/ (i.e. /boot/system/cache/GeoIP/).
* Patch for the default config to allow geoipupdate to download the
GeoLite2-City and GeoLite2-Country databases out-of-the-box.
Updated the recipe for geoip-1.6.9 to make it use the same directory
used by geoipupdate instead of /var/lib/geoip/ previously used when
that recipe was created. Also fixed missing mkdir in geoipupdate.sh
and added lost patch with miscellaneous enhancements for it and some
cleaning in the recipe.