[arch-commits] Commit in geoip2-database/repos/community-any (4 files)
Massimiliano Torromeo
mtorromeo at archlinux.org
Mon Jul 16 09:10:19 UTC 2018
Date: Monday, July 16, 2018 @ 09:10:19
Author: mtorromeo
Revision: 359699
archrelease: copy trunk to community-any
Added:
geoip2-database/repos/community-any/PKGBUILD
(from rev 359698, geoip2-database/trunk/PKGBUILD)
geoip2-database/repos/community-any/check-last-modified.sh
(from rev 359698, 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-07-16 09:05:59 UTC (rev 359698)
+++ PKGBUILD 2018-07-16 09:10:19 UTC (rev 359699)
@@ -1,39 +0,0 @@
-# $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"
-}
Copied: geoip2-database/repos/community-any/PKGBUILD (from rev 359698, geoip2-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-07-16 09:10:19 UTC (rev 359699)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname='geoip2-database'
+pkgver=20180716
+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=('1e896e40344e836e2153f6315d0c4a605cbe18901698353e3c58b9e9807fe924'
+ '8d648c0c79e375d2a904b5bb326ba7f3bddd11eefb742e0926e2d8dccf24aa61'
+ 'e9a4dbd656474076d817ef7d3f20c4a4f478b104e18ca840b2b8d48977d1b57b')
+
+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-07-16 09:05:59 UTC (rev 359698)
+++ check-last-modified.sh 2018-07-16 09:10:19 UTC (rev 359699)
@@ -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 359698, geoip2-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh (rev 0)
+++ check-last-modified.sh 2018-07-16 09:10:19 UTC (rev 359699)
@@ -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