7d67d7c7ca
The web page says "The databases are updated every month." Ideally we would download the databases using a different method to verify their integrity, but I don't know which or how.
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
# Template file for 'geoip-data'
|
|
pkgname=geoip-data
|
|
version=20170626
|
|
revision=1
|
|
create_wrksrc=yes
|
|
short_desc="Non-DNS IP-to-country resolver C library and utilities (data files)"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="CC BY-SA 4.0"
|
|
homepage="https://dev.maxmind.com/geoip/legacy/geolite/"
|
|
distfiles="
|
|
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
|
|
http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
|
|
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
|
|
http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
|
|
http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
|
|
http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz"
|
|
checksum="cb7dd6ce84383835d226a4c0cd21cc79810b289ca2a6cc5a6189c4c9873cc7b1
|
|
7401b50de3eec11651b764205041dd53519520f4182f581b6f16b422c8372a42
|
|
730ec7c38dd1b6bc7f833928969bf5d060267536b599ecdc34e0d6e5d83c3de9
|
|
8f16f4f6029cbbe1ad8a5915c6384e5e6bf2fd84c7c5bca6750929cebfaa9e50
|
|
026ad46f0bd98834654fd970d314be78d505ce64b9a9730bd4a84592d9fb1b85
|
|
8ec5e74de200637f03d7e09c3c8173ee30ecc1ea46be057a02409896a4e843ab"
|
|
noarch=yes
|
|
|
|
do_install() {
|
|
vmkdir usr/share/GeoIP
|
|
for i in $distfiles; do
|
|
local n=$(basename "$i" .gz)
|
|
vinstall $n 644 usr/share/GeoIP
|
|
done
|
|
}
|