contrib/xtables-geoip/Pkgfile

25 lines
904 B
Plaintext
Raw Normal View History

# Description: GeoIP database files for xt_geoip
# URL: http://maxmind.com/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
# Depends on: p5-text-csv-xs
name=xtables-geoip
## date -d "$(curl -sI http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip | grep '^Last-Modified:' | cut -d' ' -f2-)" +%Y%m%d
2011-01-04 16:59:54 +01:00
version=20110104
release=1
2011-01-11 12:24:14 +01:00
source=(http://downloads.sourceforge.net/project/xtables-addons/Xtables-addons/1.32/xtables-addons-1.32.tar.xz
http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip)
build() {
install -d $PKG/usr/share/xt_geoip/{BE,LE}
2011-01-04 16:59:54 +01:00
$SRC/xtables-addons-1.32/geoip/geoip_build_db.pl \
-D $PKG/usr/share/xt_geoip/LE/ < $SRC/GeoIPCountryWhois.csv
2011-01-04 16:59:54 +01:00
$SRC/xtables-addons-1.32/geoip/geoip_build_db.pl \
-b -D $PKG/usr/share/xt_geoip/BE/ < $SRC/GeoIPCountryWhois.csv
}