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

Massimiliano Torromeo mtorromeo at archlinux.org
Tue May 22 15:05:36 UTC 2018


    Date: Tuesday, May 22, 2018 @ 15:05:34
  Author: mtorromeo
Revision: 327628

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-22 15:05:25 UTC (rev 327627)
+++ PKGBUILD	2018-05-22 15:05:34 UTC (rev 327628)
@@ -1,39 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname='geoip2-database'
-pkgver=20180207
-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=(GeoLite2-City-$pkgver.tar.gz::https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
-        GeoLite2-Country-$pkgver.tar.gz::https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz
-        GeoLite2-ASN-$pkgver.tar.gz::https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz)
-noextract=(GeoLite2-City-$pkgver.tar.gz
-           GeoLite2-Country-$pkgver.tar.gz
-           GeoLite2-ASN-$pkgver.tar.gz)
-sha256sums=('f6593b6cb1c645d98b51ab99e6f6e1330885af3be01f54e24e740e64954484c4'
-            '0e0611d5f86e08432e68a1989923a61357deceb81eecabe45e89b3da79af169c'
-            '6fb001aac55dd247cf1e7d2642801ea4d29f2c75e886a92cd6736ebd0970eb96')
-
-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 327627, geoip2-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-05-22 15:05:34 UTC (rev 327628)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname='geoip2-database'
+pkgver=20180522
+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=(GeoLite2-City-$pkgver.tar.gz::https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
+        GeoLite2-Country-$pkgver.tar.gz::https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz
+        GeoLite2-ASN-$pkgver.tar.gz::https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz)
+noextract=(GeoLite2-City-$pkgver.tar.gz
+           GeoLite2-Country-$pkgver.tar.gz
+           GeoLite2-ASN-$pkgver.tar.gz)
+sha256sums=('76fcc8c90320ebe00ba1b6d726a7b94adfac6c4cb752565a1ecca0883e9dbde3'
+            'ba2073560e301d298669b1a2187fec78a67391abb23d4b3f051f6977151f8f99'
+            'f93157d49b70996de5ca8fc44a4fbc7458494c18681229a3bf0211e029aa753f')
+
+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	2018-05-22 15:05:25 UTC (rev 327627)
+++ check-last-modified.sh	2018-05-22 15:05:34 UTC (rev 327628)
@@ -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 327627, geoip2-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh	                        (rev 0)
+++ check-last-modified.sh	2018-05-22 15:05:34 UTC (rev 327628)
@@ -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