[arch-commits] Commit in geoip-database/repos/extra-any (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Jan 14 04:32:05 UTC 2015
Date: Wednesday, January 14, 2015 @ 05:32:04
Author: foutrelis
Revision: 228997
archrelease: copy trunk to extra-any
Added:
geoip-database/repos/extra-any/PKGBUILD
(from rev 228996, geoip-database/trunk/PKGBUILD)
geoip-database/repos/extra-any/check-last-modified.sh
(from rev 228996, geoip-database/trunk/check-last-modified.sh)
Deleted:
geoip-database/repos/extra-any/PKGBUILD
------------------------+
PKGBUILD | 96 +++++++++++++++++++++++------------------------
check-last-modified.sh | 9 ++++
2 files changed, 57 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-01-14 04:31:59 UTC (rev 228996)
+++ PKGBUILD 2015-01-14 04:32:04 UTC (rev 228997)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-
-pkgname=geoip-database
-pkgver=20141202
-pkgrel=1
-pkgdesc="GeoLite country geolocation database compiled by MaxMind"
-arch=('any')
-url="http://www.maxmind.com/app/ip-location"
-license=('custom:OPEN DATA LICENSE')
-source=(GeoIP-$pkgver.dat.gz::http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
- GeoIPv6-$pkgver.dat.gz::http://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=('a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361'
- '1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830'
- '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 228996, geoip-database/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-01-14 04:32:04 UTC (rev 228997)
@@ -0,0 +1,48 @@
+# $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/check-last-modified.sh (from rev 228996, geoip-database/trunk/check-last-modified.sh)
===================================================================
--- check-last-modified.sh (rev 0)
+++ check-last-modified.sh 2015-01-14 04:32:04 UTC (rev 228997)
@@ -0,0 +1,9 @@
+#!/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
More information about the arch-commits
mailing list