[arch-commits] Commit in geoip-database/repos/extra-any (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Feb 15 11:41:06 UTC 2015
Date: Sunday, February 15, 2015 @ 12:41:06
Author: foutrelis
Revision: 231450
archrelease: copy trunk to extra-any
Added:
geoip-database/repos/extra-any/PKGBUILD
(from rev 231449, geoip-database/trunk/PKGBUILD)
geoip-database/repos/extra-any/check-last-modified.sh
(from rev 231449, geoip-database/trunk/check-last-modified.sh)
Deleted:
geoip-database/repos/extra-any/PKGBUILD
geoip-database/repos/extra-any/check-last-modified.sh
------------------------+
PKGBUILD | 96 +++++++++++++++++++++++------------------------
check-last-modified.sh | 31 ++++++++++-----
2 files changed, 70 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-15 11:40:57 UTC (rev 231449)
+++ PKGBUILD 2015-02-15 11:41:06 UTC (rev 231450)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-
-pkgname=geoip-database
-pkgver=20150106
-pkgrel=1
-pkgdesc="GeoLite country geolocation database compiled by MaxMind"
-arch=('any')
-url="http://dev.maxmind.com/geoip/legacy/downloadable/"
-license=('custom:OPEN DATA LICENSE')
-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
- http://geolite.maxmind.com/download/geoip/database/LICENSE.txt)
-noextract=(GeoIP-$pkgver.dat.gz
- GeoIPv6-$pkgver.dat.gz)
-sha256sums=('7fd7e4829aaaae2677a7975eeecd170134195e5b7e6fc7d30bf3caf34db41bcd'
- '126fd2953eb193e60538e30b4465610530383f7a782745cacdca5ba6825f471c'
- '83a4cb82ef8953c0107886b49bc39fcf77590a222d30e778d48f5d92f5b5e383')
-
-prepare() {
- cd "$srcdir"
-
- for _database_name in GeoIP GeoIPv6; do
- gunzip -c $_database_name-$pkgver.dat.gz >$_database_name.dat
- done
-}
-
-check() {
- cd "$srcdir"
-
- for _database in {GeoIP,GeoIPv6}.dat; do
- if ! grep -q 'MaxMind Inc All Rights Reserved' $_database; then
- error "Copyright notice is missing from $_database; something is fishy!"
- return 1
- fi
- done
-}
-
-package() {
- cd "$srcdir"
-
- install -d "$pkgdir/usr/share/GeoIP"
- install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIP.dat GeoIPv6.dat
-
- install -Dm644 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 231449, geoip-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-02-15 11:41:06 UTC (rev 231450)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=geoip-database
+pkgver=20150203
+pkgrel=1
+pkgdesc="GeoLite country geolocation database compiled by MaxMind"
+arch=('any')
+url="http://dev.maxmind.com/geoip/legacy/downloadable/"
+license=('custom:OPEN DATA LICENSE')
+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
+ http://geolite.maxmind.com/download/geoip/database/LICENSE.txt)
+noextract=(GeoIP-$pkgver.dat.gz
+ GeoIPv6-$pkgver.dat.gz)
+sha256sums=('5c899f6237d8694833c43e0f4d3772c648663b77f662dd320f0ecf65e0954eb9'
+ 'ddf37b71e903a4ee4b2b9adec1fd12cb7be1c7cd0ce0cef324db6b95bd3567ae'
+ '83a4cb82ef8953c0107886b49bc39fcf77590a222d30e778d48f5d92f5b5e383')
+
+prepare() {
+ cd "$srcdir"
+
+ for _database_name in GeoIP GeoIPv6; do
+ gunzip -c $_database_name-$pkgver.dat.gz >$_database_name.dat
+ done
+}
+
+check() {
+ cd "$srcdir"
+
+ for _database in {GeoIP,GeoIPv6}.dat; do
+ if ! grep -q 'MaxMind Inc All Rights Reserved' $_database; then
+ error "Copyright notice is missing from $_database; something is fishy!"
+ return 1
+ fi
+ done
+}
+
+package() {
+ cd "$srcdir"
+
+ install -d "$pkgdir/usr/share/GeoIP"
+ install -m644 -t "$pkgdir/usr/share/GeoIP" GeoIP.dat GeoIPv6.dat
+
+ install -Dm644 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 2015-02-15 11:40:57 UTC (rev 231449)
+++ check-last-modified.sh 2015-02-15 11:41:06 UTC (rev 231450)
@@ -1,9 +0,0 @@
-#!/bin/bash -e
-
-URLS=(https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
- https://geolite.maxmind.com/download/geoip/database/GeoIPv6.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##*/})"
-done
Copied: geoip-database/repos/extra-any/check-last-modified.sh (from rev 231449, geoip-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh (rev 0)
+++ check-last-modified.sh 2015-02-15 11:41:06 UTC (rev 231450)
@@ -0,0 +1,22 @@
+#!/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)
+
+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 -ao '[0-9]* Build [0-9]*')
+ echo -e "${UNICODE_IS_FUN}$build_id"
+ fi
+done
More information about the arch-commits
mailing list