geoip-data: always fetch latest

The geoip-data is updated every week or so and checksums become
invalid. Therefore always fetch the latest and don't try to
keep track of the checksums.
This commit is contained in:
Jürgen Buchmüller 2017-10-02 15:12:02 +02:00
parent 2a914ac42c
commit b7c548f5e9
1 changed files with 14 additions and 17 deletions

View File

@ -1,31 +1,28 @@
# Template file for 'geoip-data' # Template file for 'geoip-data'
pkgname=geoip-data pkgname=geoip-data
version=20170626 version=20171002
revision=1 revision=1
create_wrksrc=yes create_wrksrc=yes
short_desc="Non-DNS IP-to-country resolver C library and utilities (data files)" short_desc="Non-DNS IP-to-country resolver C library and utilities (data files)"
maintainer="Enno Boland <gottox@voidlinux.eu>" maintainer="Enno Boland <gottox@voidlinux.eu>"
license="CC BY-SA 4.0" license="CC BY-SA 4.0"
homepage="https://dev.maxmind.com/geoip/legacy/geolite/" 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 noarch=yes
do_fecth() {
$XBPS_FETCHCMD http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
$XBPS_FETCHCMD http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
$XBPS_FETCHCMD http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
$XBPS_FETCHCMD http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
$XBPS_FETCHCMD http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
$XBPS_FETCHCMD http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
}
do_install() { do_install() {
local f
vmkdir usr/share/GeoIP vmkdir usr/share/GeoIP
for i in $distfiles; do for f in GeoIP GeoIPv6 GeoLiteCity GeoLiteCityv6 GeoIPASNum GeoIPASNumv6; do
local n=$(basename "$i" .gz) zcat $XBPS_SRCDISTDIR/$pkgname-$version/${f}.dat.gz > ${f}.dat
vinstall $n 644 usr/share/GeoIP vinstall ${f}.dat 644 usr/share/GeoIP
done done
} }