parent
077d060413
commit
9414d6f711
|
@ -10,19 +10,20 @@ homepage="https://dev.maxmind.com/geoip/legacy/geolite/"
|
|||
noarch=yes
|
||||
|
||||
do_fetch() {
|
||||
$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
|
||||
$XBPS_FETCH_CMD http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
|
||||
$XBPS_FETCH_CMD http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
|
||||
$XBPS_FETCH_CMD http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
|
||||
$XBPS_FETCH_CMD http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
|
||||
$XBPS_FETCH_CMD http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
|
||||
$XBPS_FETCH_CMD http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
|
||||
}
|
||||
|
||||
do_install() {
|
||||
local f
|
||||
vmkdir usr/share/GeoIP
|
||||
for f in GeoIP GeoIPv6 GeoLiteCity GeoLiteCityv6 GeoIPASNum GeoIPASNumv6; do
|
||||
zcat $XBPS_SRCDISTDIR/$pkgname-$version/${f}.dat.gz > ${f}.dat
|
||||
zcat ../${f}.dat.gz > ${f}.dat
|
||||
rm -f ../${f}.dat.gz
|
||||
vinstall ${f}.dat 644 usr/share/GeoIP
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue