aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAmish2021-03-09 17:29:14 +0530
committerAmish2021-03-09 17:29:14 +0530
commitfde7a69b00cbe8f479fe8e60720fbaca8ad1817d (patch)
treeeb1aefa4b6f147d01c352fd15592db5e82892fc6 /PKGBUILD
parent0ff9b2c5467dbfcd86263291114404cfc9a13c78 (diff)
downloadaur-fde7a69b00cbe8f479fe8e60720fbaca8ad1817d.tar.gz
Rebuild with latest DB-IP database
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f416ed3c2b8d..d9286e231314 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Amish <contact at via dot aur>
pkgname=xtables-geoip-db
pkgver=2.1
-pkgrel=7
+pkgrel=8
pkgdesc="GeoIP Database for xtables"
arch=('any')
license=('BSD' 'GPL')
@@ -13,7 +13,7 @@ _geoip_date=`date +%Y-%m`
# create a file named geoip.license.key which contains MaxMind License key in following format:
# _maxmind_key=XXXX
-source geoip.license.key
+[[ -f geoip.license.key ]] && source geoip.license.key
if [[ -z "${_maxmind_key}" ]]; then
url="https://db-ip.com/db/download/ip-to-country-lite"
source="dbip-country-lite-${_geoip_date}.csv.gz::https://download.db-ip.com/free/dbip-country-lite-${_geoip_date}.csv.gz"