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

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Apr 19 17:24:44 UTC 2019


    Date: Friday, April 19, 2019 @ 17:24:44
  Author: mtorromeo
Revision: 452035

archrelease: copy trunk to community-any

Added:
  geoip2-database/repos/community-any/PKGBUILD
    (from rev 452034, geoip2-database/trunk/PKGBUILD)
  geoip2-database/repos/community-any/check-last-modified.sh
    (from rev 452034, 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-04-19 17:24:29 UTC (rev 452034)
+++ PKGBUILD	2019-04-19 17:24:44 UTC (rev 452035)
@@ -1,38 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname='geoip2-database'
-pkgver=20190126
-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=('589b8603a6cd98cf134f96de24618ba1d986a954e40409a67f398eb1edbf6084'
-            '1b627bd7a575500cbf9e675630ab2c9b1632c3727f3eab29a06e50568341bdfa'
-            '6fc0855cdc3514c5b7cf19fe1a2681c5b1bbc5009c3a89b1453b64c8c235ba2a')
-
-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 452034, geoip2-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-04-19 17:24:44 UTC (rev 452035)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname='geoip2-database'
+pkgver=20190415
+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=('f270c0345734bccc0913ce1c95a2ab50892881761a8522d5039c111bbb80475d'
+            '94852779febcec4caa796e3e9bbb9f53314e86e4a10284b31ae83e8edcd589ff'
+            'b5e1f862b78df2ab6e5ff997d9acde64e8be653c6099bdf328a93c6777d65795')
+
+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-04-19 17:24:29 UTC (rev 452034)
+++ check-last-modified.sh	2019-04-19 17:24:44 UTC (rev 452035)
@@ -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 452034, geoip2-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh	                        (rev 0)
+++ check-last-modified.sh	2019-04-19 17:24:44 UTC (rev 452035)
@@ -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