[arch-commits] Commit in geoip-database/repos/extra-any (PKGBUILD PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sun May 24 14:41:25 UTC 2020


    Date: Sunday, May 24, 2020 @ 14:41:24
  Author: foutrelis
Revision: 387497

archrelease: copy trunk to extra-any

Added:
  geoip-database/repos/extra-any/PKGBUILD
    (from rev 387496, geoip-database/trunk/PKGBUILD)
Deleted:
  geoip-database/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |  163 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 82 insertions(+), 81 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-24 14:41:20 UTC (rev 387496)
+++ PKGBUILD	2020-05-24 14:41:24 UTC (rev 387497)
@@ -1,81 +0,0 @@
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-
-pkgname=('geoip-database' 'geoip-database-extra')
-pkgver=20200507
-pkgrel=2
-arch=('any')
-url="https://mailfud.org/geoip-legacy/"
-license=('CCPL:by-sa')
-makedepends=('util-linux')
-checkdepends=('geoip')
-source=(GeoIP-$pkgver.dat.gz::https://mailfud.org/geoip-legacy/GeoIP.dat.gz
-        GeoIPv6-$pkgver.dat.gz::https://mailfud.org/geoip-legacy/GeoIPv6.dat.gz
-        GeoIPCity-$pkgver.dat.gz::https://mailfud.org/geoip-legacy/GeoIPCity.dat.gz
-        GeoIPCityv6-$pkgver.dat.gz::https://mailfud.org/geoip-legacy/GeoIPCityv6.dat.gz
-        GeoIPASNum-$pkgver.dat.gz::https://mailfud.org/geoip-legacy/GeoIPASNum.dat.gz
-        GeoIPASNumv6-$pkgver.dat.gz::https://mailfud.org/geoip-legacy/GeoIPASNumv6.dat.gz)
-sha256sums=('5ede20bf8d2ed9b5b1d9b6c1f5629485f2c5cbaaa7d4b5f5e109bf4988c4ac1a'
-            'e08315f7d6ebef446edce332c7c10850aa3b13318b0dca2b41a667f2264e4017'
-            'a66cfc0d48007c1c1b905419662785d7dd919286db9fbb2e824fa4545c2a0a31'
-            'ce1bdf1c1dc0cce41de6bac173b7338f5f9873c0e531a660168752cd18937c1d'
-            'c53dbc43af4186ca8a1515ffc16c82d70c54b4a12e135addc659f7e1bbf8eb96'
-            'b2bfe48257a778d2fd8cf2327d8782dbe5b03a56cb42ae8e6d42a2dc932c1066')
-
-prepare() {
-  cd "$srcdir"
-  rename -v -- "-$pkgver" '' *.dat
-}
-
-check() {
-  cd "$srcdir"
-
-  if [[ $(geoiplookup -f GeoIP.dat 8.8.8.8) != *'US, United States' ]]; then
-    error 'Unable to resolve IPv4 address to country.'
-    return 1
-  fi
-
-  if [[ $(geoiplookup6 -f GeoIPv6.dat 2001:4860:4860::8888) != *'US, United States' ]]; then
-    error 'Unable to resolve IPv6 address to country.'
-    return 1
-  fi
-
-  if [[ $(geoiplookup -f GeoIPCity.dat 8.8.8.8) != *'US, 00, N/A, N/A'* ]]; then
-    error 'Unable to resolve IPv4 address to city.'
-    return 1
-  fi
-
-  if [[ $(geoiplookup6 -f GeoIPCityv6.dat 2001:4860:4860::8888) != *'US, 00, N/A, N/A'* ]]; then
-    error 'Unable to resolve IPv6 address to city.'
-    return 1
-  fi
-
-  if [[ $(geoiplookup -f GeoIPASNum.dat 8.8.8.8) != *'AS15169 GOOGLE' ]]; then
-    error 'Unable to resolve IPv4 address to ASN.'
-    return 1
-  fi
-
-  if [[ $(geoiplookup6 -f GeoIPASNumv6.dat 2001:4860:4860::8888) != *'AS15169 GOOGLE' ]]; then
-    error 'Unable to resolve IPv6 address to ASN.'
-    return 1
-  fi
-}
-
-package_geoip-database() {
-  pkgdesc="GeoIP legacy country database (based on GeoLite2 data created by MaxMind)"
-
-  cd "$srcdir"
-
-  install -d "$pkgdir/usr/share/GeoIP"
-  install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIP{,v6}.dat
-}
-
-package_geoip-database-extra() {
-  pkgdesc="GeoIP legacy city/ASN databases (based on GeoLite2 data created by MaxMind)"
-
-  cd "$srcdir"
-
-  install -d "$pkgdir/usr/share/GeoIP"
-  install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIPCity{,v6}.dat GeoIPASNum{,v6}.dat
-}
-
-# vim:set ts=2 sw=2 et:

Copied: geoip-database/repos/extra-any/PKGBUILD (from rev 387496, geoip-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-24 14:41:24 UTC (rev 387497)
@@ -0,0 +1,82 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=('geoip-database' 'geoip-database-extra')
+pkgver=20200519
+pkgrel=1
+arch=('any')
+url="https://mailfud.org/geoip-legacy/"
+license=('CCPL:by-sa')
+makedepends=('util-linux')
+checkdepends=('geoip')
+_source_base=https://sources.archlinux.org/other/packages/$pkgname/$pkgver
+source=(GeoIP-$pkgver.dat.gz::$_source_base/GeoIP.dat.gz
+        GeoIPv6-$pkgver.dat.gz::$_source_base/GeoIPv6.dat.gz
+        GeoIPCity-$pkgver.dat.gz::$_source_base/GeoIPCity.dat.gz
+        GeoIPCityv6-$pkgver.dat.gz::$_source_base/GeoIPCityv6.dat.gz
+        GeoIPASNum-$pkgver.dat.gz::$_source_base/GeoIPASNum.dat.gz
+        GeoIPASNumv6-$pkgver.dat.gz::$_source_base/GeoIPASNumv6.dat.gz)
+sha256sums=('dce28d4665f6ff5e3feb4c856d6dfd3bc0c2fb29c73d4e7da471edaf1f8d95a4'
+            '9ebf5bf8a6d3e50720c53c730b3dcedbb804f1bcc8ab7d5c1ce4dead0d578588'
+            '5d8468856e1c6608c4e5ed5a6619e2d48fcf0c58826d8b9cfafef6963350dc19'
+            '849877f2f6fa5a1a0dce01628fbc3cbde7d96f608ee0a92864cf7a52c7ac8d85'
+            'a77a0090d12ec1399dc24bdb3b5790309bb2b1ec37170ea8dfe00cb4b0611c90'
+            '28c5e0c0b790394f473b69b292ce682f96af37f5c75557ee138315e7cc04e85a')
+
+prepare() {
+  cd "$srcdir"
+  rename -v -- "-$pkgver" '' *.dat
+}
+
+check() {
+  cd "$srcdir"
+
+  if [[ $(geoiplookup -f GeoIP.dat 8.8.8.8) != *'US, United States' ]]; then
+    echo >&2 'Unable to resolve IPv4 address to country.'
+    return 1
+  fi
+
+  if [[ $(geoiplookup6 -f GeoIPv6.dat 2001:4860:4860::8888) != *'US, United States' ]]; then
+    echo >&2 'Unable to resolve IPv6 address to country.'
+    return 1
+  fi
+
+  if [[ $(geoiplookup -f GeoIPCity.dat 8.8.8.8) != *'US, 00, N/A, N/A'* ]]; then
+    echo >&2 'Unable to resolve IPv4 address to city.'
+    return 1
+  fi
+
+  if [[ $(geoiplookup6 -f GeoIPCityv6.dat 2001:4860:4860::8888) != *'US, 00, N/A, N/A'* ]]; then
+    echo >&2 'Unable to resolve IPv6 address to city.'
+    return 1
+  fi
+
+  if [[ $(geoiplookup -f GeoIPASNum.dat 8.8.8.8) != *'AS15169 GOOGLE' ]]; then
+    echo >&2 'Unable to resolve IPv4 address to ASN.'
+    return 1
+  fi
+
+  if [[ $(geoiplookup6 -f GeoIPASNumv6.dat 2001:4860:4860::8888) != *'AS15169 GOOGLE' ]]; then
+    echo >&2 'Unable to resolve IPv6 address to ASN.'
+    return 1
+  fi
+}
+
+package_geoip-database() {
+  pkgdesc="GeoIP legacy country database (based on GeoLite2 data created by MaxMind)"
+
+  cd "$srcdir"
+
+  install -d "$pkgdir/usr/share/GeoIP"
+  install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIP{,v6}.dat
+}
+
+package_geoip-database-extra() {
+  pkgdesc="GeoIP legacy city/ASN databases (based on GeoLite2 data created by MaxMind)"
+
+  cd "$srcdir"
+
+  install -d "$pkgdir/usr/share/GeoIP"
+  install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIPCity{,v6}.dat GeoIPASNum{,v6}.dat
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list