contrib/xtables-geoip/Pkgfile

21 lines
612 B
Plaintext
Raw Normal View History

2011-11-02 15:27:57 +01:00
# Description: GeoIP database files for xt_geoip in xtables-addons.
2012-01-07 06:51:53 +01:00
# URL: http://www.maxmind.com/app/geoip_country
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Danny Rawlins, crux at romster dot me
2011-11-02 15:27:57 +01:00
# Depends on: p5-text-csv-xs xtables-addons
name=xtables-geoip
2013-06-14 13:04:40 +02:00
version=20130607
release=1
source=(http://crux.ster.zone/downloads/$name/GeoIPCountryCSV-20130604.zip
http://crux.ster.zone/downloads/$name/GeoIPv6-$version.csv.gz)
build() {
2012-03-06 14:11:45 +01:00
gunzip $SRC/GeoIPv6-*.csv.gz
2011-11-02 15:27:57 +01:00
2011-02-03 12:14:37 +01:00
install -d $PKG/usr/share/xt_geoip
2011-11-02 15:27:57 +01:00
/usr/lib/xtables-addons/xt_geoip_build \
-D $PKG/usr/share/xt_geoip/ $SRC/*.csv
}