From b7c548f5e9838262e2c4bbd5ca5af12040b2685d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 2 Oct 2017 15:12:02 +0200 Subject: [PATCH] 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. --- srcpkgs/geoip-data/template | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/srcpkgs/geoip-data/template b/srcpkgs/geoip-data/template index bc4b75c4172..f526e491696 100644 --- a/srcpkgs/geoip-data/template +++ b/srcpkgs/geoip-data/template @@ -1,31 +1,28 @@ # Template file for 'geoip-data' pkgname=geoip-data -version=20170626 +version=20171002 revision=1 create_wrksrc=yes short_desc="Non-DNS IP-to-country resolver C library and utilities (data files)" maintainer="Enno Boland " 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_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() { + local f vmkdir usr/share/GeoIP - for i in $distfiles; do - local n=$(basename "$i" .gz) - vinstall $n 644 usr/share/GeoIP + for f in GeoIP GeoIPv6 GeoLiteCity GeoLiteCityv6 GeoIPASNum GeoIPASNumv6; do + zcat $XBPS_SRCDISTDIR/$pkgname-$version/${f}.dat.gz > ${f}.dat + vinstall ${f}.dat 644 usr/share/GeoIP done }