[arch-commits] Commit in geoip-database/repos/extra-any (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Oct 18 17:34:00 UTC 2016
Date: Tuesday, October 18, 2016 @ 17:33:59
Author: foutrelis
Revision: 278961
archrelease: copy trunk to extra-any
Added:
geoip-database/repos/extra-any/PKGBUILD
(from rev 278960, geoip-database/trunk/PKGBUILD)
geoip-database/repos/extra-any/check-last-modified.sh
(from rev 278960, geoip-database/trunk/check-last-modified.sh)
Deleted:
geoip-database/repos/extra-any/PKGBUILD
geoip-database/repos/extra-any/check-last-modified.sh
------------------------+
PKGBUILD | 194 +++++++++++++++++++++++------------------------
check-last-modified.sh | 52 ++++++------
2 files changed, 123 insertions(+), 123 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-18 17:33:46 UTC (rev 278960)
+++ PKGBUILD 2016-10-18 17:33:59 UTC (rev 278961)
@@ -1,97 +0,0 @@
-# $Id$
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-
-pkgname=('geoip-database' 'geoip-database-extra')
-pkgver=20160907
-pkgrel=1
-arch=('any')
-url="https://dev.maxmind.com/geoip/legacy/geolite/"
-license=('custom:OPEN DATA LICENSE')
-checkdepends=('geoip')
-source=(GeoIP-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
- GeoIPv6-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
- GeoLiteCity-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
- GeoLiteCityv6-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
- GeoIPASNum-$pkgver.dat.gz::https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
- GeoIPASNumv6-$pkgver.dat.gz::https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
- GeoIP-LICENSE.txt::https://geolite.maxmind.com/download/geoip/database/LICENSE.txt)
-noextract=(GeoIP-$pkgver.dat.gz
- GeoIPv6-$pkgver.dat.gz
- GeoLiteCity-$pkgver.dat.gz
- GeoLiteCityv6-$pkgver.dat.gz
- GeoIPASNum-$pkgver.dat.gz
- GeoIPASNumv6-$pkgver.dat.gz)
-sha256sums=('e9bc5c54578d22d5b18ae32eae7c4a354692ad8c63c70854c3e8795091fa8f4a'
- '8df6b2a578734fad9718d66714a371abe94328a2012a147d167e3ac9bddd8d85'
- '5cecbdf9187d70cc87fe37f13e2afbf3a1afc1e176950e2441a054a6df95bcde'
- '7cb4898fffcfb61bb3739674c0208c2b8fa3478f5f63538e7e2f9ddca5d2c5e1'
- 'efb51a07dfb488f01879d881f499ff34d3ef55e80715d73f76ae4b0eb3cde585'
- '030945e0c7d51ae84e7eb6228201a679e7db4d7533d855bc01739119c553759c'
- '83a4cb82ef8953c0107886b49bc39fcf77590a222d30e778d48f5d92f5b5e383')
-
-prepare() {
- cd "$srcdir"
-
- for _database_name in GeoIP GeoLiteCity GeoIPASNum; do
- gunzip -c $_database_name-$pkgver.dat.gz >${_database_name/GeoLite/GeoIP}.dat
- gunzip -c ${_database_name}v6-$pkgver.dat.gz >${_database_name/GeoLite/GeoIP}v6.dat
- done
-}
-
-check() {
- cd "$srcdir"
-
- if [[ $(geoiplookup -f GeoIP.dat 8.8.8.8) != *'US, United States' ]]; then
- error 'Unable to resolve IPv4 address to country.'
- return 1
- fi
-
- if [[ $(geoiplookup6 -f GeoIPv6.dat 2001:4860:4860::8888) != *'US, United States' ]]; then
- error 'Unable to resolve IPv6 address to country.'
- return 1
- fi
-
- if [[ $(geoiplookup -f GeoIPCity.dat 8.8.8.8) != *'US, CA, California'* ]]; then
- error 'Unable to resolve IPv4 address to city.'
- return 1
- fi
-
- if [[ $(geoiplookup6 -f GeoIPCityv6.dat 2001:4860:4860::8888) != *'US, N/A, N/A'* ]]; then
- error 'Unable to resolve IPv6 address to city.'
- return 1
- fi
-
- if [[ $(geoiplookup -f GeoIPASNum.dat 8.8.8.8) != *'AS15169 Google Inc.' ]]; then
- error 'Unable to resolve IPv4 address to ASN.'
- return 1
- fi
-
- if [[ $(geoiplookup6 -f GeoIPASNumv6.dat 2001:4860:4860::8888) != *'AS15169 Google Inc.' ]]; then
- error 'Unable to resolve IPv6 address to ASN.'
- return 1
- fi
-}
-
-package_geoip-database() {
- pkgdesc="GeoLite country geolocation database compiled by MaxMind"
-
- cd "$srcdir"
-
- install -d "$pkgdir/usr/share/GeoIP"
- install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIP{,v6}.dat
-
- install -Dm644 GeoIP-LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}
-
-package_geoip-database-extra() {
- pkgdesc="GeoLite city/ASN geolocation databases compiled by MaxMind"
-
- cd "$srcdir"
-
- install -d "$pkgdir/usr/share/GeoIP"
- install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIPCity{,v6}.dat GeoIPASNum{,v6}.dat
-
- install -Dm644 GeoIP-LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: geoip-database/repos/extra-any/PKGBUILD (from rev 278960, geoip-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-10-18 17:33:59 UTC (rev 278961)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=('geoip-database' 'geoip-database-extra')
+pkgver=20161004
+pkgrel=1
+arch=('any')
+url="https://dev.maxmind.com/geoip/legacy/geolite/"
+license=('custom:OPEN DATA LICENSE')
+checkdepends=('geoip')
+source=(GeoIP-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
+ GeoIPv6-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
+ GeoLiteCity-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
+ GeoLiteCityv6-$pkgver.dat.gz::https://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
+ GeoIPASNum-$pkgver.dat.gz::https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
+ GeoIPASNumv6-$pkgver.dat.gz::https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
+ GeoIP-LICENSE.txt::https://geolite.maxmind.com/download/geoip/database/LICENSE.txt)
+noextract=(GeoIP-$pkgver.dat.gz
+ GeoIPv6-$pkgver.dat.gz
+ GeoLiteCity-$pkgver.dat.gz
+ GeoLiteCityv6-$pkgver.dat.gz
+ GeoIPASNum-$pkgver.dat.gz
+ GeoIPASNumv6-$pkgver.dat.gz)
+sha256sums=('ad6f26a2f653858a166d18c289c675601ef6b6f8c857be5504f03001de8dc9a9'
+ 'cb67b9bd21b08f50764df5e0afb9597661922ca16d46962e17cec36f75433aaf'
+ 'b8f976c6d01fce8adb882383ac5eb8820f16889b03387df6a3c10561fc0508c6'
+ '92dc7f85245052765c18edee0958018e1239b1606ffd56d05b5a9ae42cccaa9d'
+ 'f9d258b85e8fa3117174701265210d79522b99e774a1823e01ef49d32c889a9f'
+ '3ac5ca13f20f4d823e7d3a2a46af9e8f5fab690546379b4c8f4f8facaf218bf0'
+ '83a4cb82ef8953c0107886b49bc39fcf77590a222d30e778d48f5d92f5b5e383')
+
+prepare() {
+ cd "$srcdir"
+
+ for _database_name in GeoIP GeoLiteCity GeoIPASNum; do
+ gunzip -c $_database_name-$pkgver.dat.gz >${_database_name/GeoLite/GeoIP}.dat
+ gunzip -c ${_database_name}v6-$pkgver.dat.gz >${_database_name/GeoLite/GeoIP}v6.dat
+ done
+}
+
+check() {
+ cd "$srcdir"
+
+ if [[ $(geoiplookup -f GeoIP.dat 8.8.8.8) != *'US, United States' ]]; then
+ error 'Unable to resolve IPv4 address to country.'
+ return 1
+ fi
+
+ if [[ $(geoiplookup6 -f GeoIPv6.dat 2001:4860:4860::8888) != *'US, United States' ]]; then
+ error 'Unable to resolve IPv6 address to country.'
+ return 1
+ fi
+
+ if [[ $(geoiplookup -f GeoIPCity.dat 8.8.8.8) != *'US, CA, California'* ]]; then
+ error 'Unable to resolve IPv4 address to city.'
+ return 1
+ fi
+
+ if [[ $(geoiplookup6 -f GeoIPCityv6.dat 2001:4860:4860::8888) != *'US, N/A, N/A'* ]]; then
+ error 'Unable to resolve IPv6 address to city.'
+ return 1
+ fi
+
+ if [[ $(geoiplookup -f GeoIPASNum.dat 8.8.8.8) != *'AS15169 Google Inc.' ]]; then
+ error 'Unable to resolve IPv4 address to ASN.'
+ return 1
+ fi
+
+ if [[ $(geoiplookup6 -f GeoIPASNumv6.dat 2001:4860:4860::8888) != *'AS15169 Google Inc.' ]]; then
+ error 'Unable to resolve IPv6 address to ASN.'
+ return 1
+ fi
+}
+
+package_geoip-database() {
+ pkgdesc="GeoLite country geolocation database compiled by MaxMind"
+
+ cd "$srcdir"
+
+ install -d "$pkgdir/usr/share/GeoIP"
+ install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIP{,v6}.dat
+
+ install -Dm644 GeoIP-LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_geoip-database-extra() {
+ pkgdesc="GeoLite city/ASN geolocation databases compiled by MaxMind"
+
+ cd "$srcdir"
+
+ install -d "$pkgdir/usr/share/GeoIP"
+ install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIPCity{,v6}.dat GeoIPASNum{,v6}.dat
+
+ install -Dm644 GeoIP-LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: check-last-modified.sh
===================================================================
--- check-last-modified.sh 2016-10-18 17:33:46 UTC (rev 278960)
+++ check-last-modified.sh 2016-10-18 17:33:59 UTC (rev 278961)
@@ -1,26 +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=(https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
- https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
- https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
- https://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
- https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
- https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz)
-
-for url in ${URLS[@]}; do
- last_mod=$(curl -sI $url | grep ^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: geoip-database/repos/extra-any/check-last-modified.sh (from rev 278960, geoip-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh (rev 0)
+++ check-last-modified.sh 2016-10-18 17:33:59 UTC (rev 278961)
@@ -0,0 +1,26 @@
+#!/bin/bash -e
+
+# Unicode characters taken from pactree.c
+UNICODE_IS_FUN="\u2514\u2500"
+
+verbose=0
+if [[ $1 == -v ]]; then
+ verbose=1
+fi
+
+URLS=(https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
+ https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
+ https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
+ https://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
+ https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
+ https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz)
+
+for url in ${URLS[@]}; do
+ last_mod=$(curl -sI $url | grep ^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