[arch-commits] Commit in geoip2-database/repos/community-any (4 files)
Massimiliano Torromeo
mtorromeo at archlinux.org
Tue Dec 10 08:42:17 UTC 2019
Date: Tuesday, December 10, 2019 @ 08:42:16
Author: mtorromeo
Revision: 536490
archrelease: copy trunk to community-any
Added:
geoip2-database/repos/community-any/PKGBUILD
(from rev 536489, geoip2-database/trunk/PKGBUILD)
geoip2-database/repos/community-any/check-last-modified.sh
(from rev 536489, 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-12-10 08:42:07 UTC (rev 536489)
+++ PKGBUILD 2019-12-10 08:42:16 UTC (rev 536490)
@@ -1,38 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname='geoip2-database'
-pkgver=20190813
-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=('65b3a78efe51a6d2aad611fb7bc0fbcf53b79296ba3a44154fe1737f06098ae6'
- 'fcab136442778d6188797f8f2c366e5ec7f1a9a4b3e434e1bf57c841c32dd4ca'
- '4f9b72ff6432b7245f10856370d332dd2be9785aab3275821f14b8dca1dcc1ee')
-
-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 536489, geoip2-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-12-10 08:42:16 UTC (rev 536490)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname='geoip2-database'
+pkgver=20191203
+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=('844ae484c94e4827b9f2fcef6deb537425ea1a04ce315f08682b738290dfc2af'
+ '02c70d4d0b22bca72cced86dd6eb411b18787ab9509e0a7755fd33d196292a2e'
+ '269d7fbe740903fcd9856fb947840a4ddf6ed0d62b9d61076f97026aac9b8f5b')
+
+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-12-10 08:42:07 UTC (rev 536489)
+++ check-last-modified.sh 2019-12-10 08:42:16 UTC (rev 536490)
@@ -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 536489, geoip2-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh (rev 0)
+++ check-last-modified.sh 2019-12-10 08:42:16 UTC (rev 536490)
@@ -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