[arch-commits] Commit in geoip2-database/repos/community-any (4 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Wed Aug 7 14:19:06 UTC 2019


    Date: Wednesday, August 7, 2019 @ 14:19:05
  Author: mtorromeo
Revision: 498148

archrelease: copy trunk to community-any

Added:
  geoip2-database/repos/community-any/PKGBUILD
    (from rev 498147, geoip2-database/trunk/PKGBUILD)
  geoip2-database/repos/community-any/check-last-modified.sh
    (from rev 498147, geoip2-database/trunk/check-last-modified.sh)
Deleted:
  geoip2-database/repos/community-any/PKGBUILD
  geoip2-database/repos/community-any/check-last-modified.sh

------------------------+
 PKGBUILD               |   76 +++++++++++++++++++++++------------------------
 check-last-modified.sh |   46 ++++++++++++++--------------
 2 files changed, 61 insertions(+), 61 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-07 14:18:45 UTC (rev 498147)
+++ PKGBUILD	2019-08-07 14:19:05 UTC (rev 498148)
@@ -1,38 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname='geoip2-database'
-pkgver=20190702
-pkgrel=1
-pkgdesc="GeoLite2 IP geolocation databases compiled by MaxMind"
-arch=('any')
-url="https://dev.maxmind.com/geoip/geoip2/geolite2/"
-license=('custom:OPEN DATA LICENSE')
-source=(https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_$pkgver.tar.gz
-        https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_$pkgver.tar.gz
-        https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_$pkgver.tar.gz)
-noextract=(GeoLite2-City_$pkgver.tar.gz
-           GeoLite2-Country_$pkgver.tar.gz
-           GeoLite2-ASN_$pkgver.tar.gz)
-sha256sums=('2f8a174e66744336824a3d6054877964c0db53458fc6258acc01c3c328304245'
-            '85a6b346897b1734393eb7be662187cac1184c758675ca49378b1ed2ff25651e'
-            '8ea1121a78f4852667e356b398cfaa811abf4d300ee69b35499624316d7c6c1c')
-
-prepare() {
-  cd "$srcdir"
-
-  for _db in GeoLite2-{City,Country,ASN}; do
-    tar --strip-components=1 -xf ${_db}_$pkgver.tar.gz --wildcards "*/$_db.mmdb"
-  done
-
-  tar --strip-components=1 -xf GeoLite2-ASN_$pkgver.tar.gz --wildcards "*/COPYRIGHT.txt" "*/LICENSE.txt"
-}
-
-package() {
-  cd "$srcdir"
-
-  install -d "$pkgdir/usr/share/GeoIP"
-  install -m644 -t "$pkgdir/usr/share/GeoIP" GeoLite2-{City,Country,ASN}.mmdb
-
-  install -Dm644 COPYRIGHT.txt "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT.txt"
-  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}

Copied: geoip2-database/repos/community-any/PKGBUILD (from rev 498147, geoip2-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-07 14:19:05 UTC (rev 498148)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname='geoip2-database'
+pkgver=20190806
+pkgrel=1
+pkgdesc="GeoLite2 IP geolocation databases compiled by MaxMind"
+arch=('any')
+url="https://dev.maxmind.com/geoip/geoip2/geolite2/"
+license=('custom:OPEN DATA LICENSE')
+source=(https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_$pkgver.tar.gz
+        https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_$pkgver.tar.gz
+        https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_$pkgver.tar.gz)
+noextract=(GeoLite2-City_$pkgver.tar.gz
+           GeoLite2-Country_$pkgver.tar.gz
+           GeoLite2-ASN_$pkgver.tar.gz)
+sha256sums=('af74328de3f54711a223ff71373d2a72517d67f0a5b8c925722a1a7683af7aa6'
+            '1e4b5ac1499ccab5c3523bbee4ded9c7ad31e8604414e3b4edfc1cbad96aa85f'
+            '90e70e6dc42e2e0782a6fc64933aa6614adbc90833b18d268fef022f0114139a')
+
+prepare() {
+  cd "$srcdir"
+
+  for _db in GeoLite2-{City,Country,ASN}; do
+    tar --strip-components=1 -xf ${_db}_$pkgver.tar.gz --wildcards "*/$_db.mmdb"
+  done
+
+  tar --strip-components=1 -xf GeoLite2-ASN_$pkgver.tar.gz --wildcards "*/COPYRIGHT.txt" "*/LICENSE.txt"
+}
+
+package() {
+  cd "$srcdir"
+
+  install -d "$pkgdir/usr/share/GeoIP"
+  install -m644 -t "$pkgdir/usr/share/GeoIP" GeoLite2-{City,Country,ASN}.mmdb
+
+  install -Dm644 COPYRIGHT.txt "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT.txt"
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}

Deleted: check-last-modified.sh
===================================================================
--- check-last-modified.sh	2019-08-07 14:18:45 UTC (rev 498147)
+++ check-last-modified.sh	2019-08-07 14:19:05 UTC (rev 498148)
@@ -1,23 +0,0 @@
-#!/bin/bash -e
-
-# Unicode characters taken from pactree.c
-UNICODE_IS_FUN="\u2514\u2500"
-
-verbose=0
-if [[ $1 == -v ]]; then
-	verbose=1
-fi
-
-URLS=(http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
-      http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz
-      http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz)
-
-for url in ${URLS[@]}; do
-	last_mod=$(curl -sI $url | grep -i ^Last-Modified: | cut -d' ' -f2- | tr -d '\r')
-	echo "$last_mod (${url##*/})"
-
-	if ((verbose)); then
-		build_id=$(curl -s $url | gzip -cd | grep -aoE '[0-9]{8} Build [0-9]*')
-		echo -e "${UNICODE_IS_FUN}$build_id"
-	fi
-done

Copied: geoip2-database/repos/community-any/check-last-modified.sh (from rev 498147, geoip2-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh	                        (rev 0)
+++ check-last-modified.sh	2019-08-07 14:19:05 UTC (rev 498148)
@@ -0,0 +1,23 @@
+#!/bin/bash -e
+
+# Unicode characters taken from pactree.c
+UNICODE_IS_FUN="\u2514\u2500"
+
+verbose=0
+if [[ $1 == -v ]]; then
+	verbose=1
+fi
+
+URLS=(http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
+      http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz
+      http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz)
+
+for url in ${URLS[@]}; do
+	last_mod=$(curl -sI $url | grep -i ^Last-Modified: | cut -d' ' -f2- | tr -d '\r')
+	echo "$last_mod (${url##*/})"
+
+	if ((verbose)); then
+		build_id=$(curl -s $url | gzip -cd | grep -aoE '[0-9]{8} Build [0-9]*')
+		echo -e "${UNICODE_IS_FUN}$build_id"
+	fi
+done


More information about the arch-commits mailing list