X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 9D3C3DC1484 for ; Mon, 15 Feb 2016 07:21:49 +0000 (UTC) Received: from mail.buchenwald.de (mail.buchenwald.de [193.159.231.203]) by mail.alpinelinux.org (Postfix) with ESMTP id 554AADC0319 for ; Mon, 15 Feb 2016 07:21:48 +0000 (UTC) Received: from musl64.sgbumd.de (static.57.216.63.178.clients.your-server.de [178.63.216.57]) by mail.buchenwald.de (Postfix) with ESMTPA id 459583FEF2 for ; Mon, 15 Feb 2016 08:18:44 +0100 (CET) From: Jens Vehlhaber To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] main/geoip: bugfix get new GeoIP.dat file Date: Mon, 15 Feb 2016 07:20:47 +0100 Message-Id: <1455517247-30181-1-git-send-email-jens@eisfair.org> X-Mailer: git-send-email 2.6.4 X-Virus-Scanned: ClamAV using SMC-milter X-Virus-Scanned: Scriptfile SMC-milter X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Signed-off-by: Jens Vehlhaber --- main/geoip/APKBUILD | 15 ++++++++++----- main/geoip/geoip.cron | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/main/geoip/APKBUILD b/main/geoip/APKBUILD index 309b3e5..0475797 100644 --- a/main/geoip/APKBUILD +++ b/main/geoip/APKBUILD @@ -3,7 +3,7 @@ pkgname="geoip" _realname="GeoIP" pkgver=1.6.7 -pkgrel=0 +pkgrel=1 pkgdesc="Lookup countries by IP addresses" url="http://www.maxmind.com/app/ip-location" arch="all" @@ -12,7 +12,8 @@ depends= makedepends="zlib-dev" install= subpackages="$pkgname-dev $pkgname-doc" -source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/$_realname-$pkgver.tar.gz" +source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/$_realname-$pkgver.tar.gz + geoip.cron" _builddir="$srcdir"/$_realname-$pkgver @@ -39,9 +40,13 @@ build() { package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 + mkdir -p "$pkgdir"/usr/share/GeoIP install -m755 -D ../../geoip.cron "$pkgdir"/etc/periodic/monthly/geoip } -md5sums="4c8e1923fdf6257013178de7f025527f GeoIP-1.6.7.tar.gz" -sha256sums="18f3713146b6196f85b57a92bcfdc9aea3345e2d836531a6ac4a630ffc7fa559 GeoIP-1.6.7.tar.gz" -sha512sums="f22a70255f7659a513653580fd17b50e60169eb56f0a4b071f85e48d888b3699524df37e75b2f0fa78f6bc5ca52996b45f7be532bcfce3e041bcde1bd8d1b9a3 GeoIP-1.6.7.tar.gz" +md5sums="4c8e1923fdf6257013178de7f025527f GeoIP-1.6.7.tar.gz +674837e5011389610f1569bbb1a00f76 geoip.cron" +sha256sums="18f3713146b6196f85b57a92bcfdc9aea3345e2d836531a6ac4a630ffc7fa559 GeoIP-1.6.7.tar.gz +17e50491df05e50cd9f3186a878567f7eb9492773c90b99f4a8d7bb61386d5e2 geoip.cron" +sha512sums="f22a70255f7659a513653580fd17b50e60169eb56f0a4b071f85e48d888b3699524df37e75b2f0fa78f6bc5ca52996b45f7be532bcfce3e041bcde1bd8d1b9a3 GeoIP-1.6.7.tar.gz +5fc4003b57f5a0514c42764a6c6d28c2db926ea244f125accf490648adc9d172215e0d16426f49d79e1c465fea2c71b591636f1038d683c77535d2d93811a73e geoip.cron" diff --git a/main/geoip/geoip.cron b/main/geoip/geoip.cron index b7c2ffd..fc96d08 100755 --- a/main/geoip/geoip.cron +++ b/main/geoip/geoip.cron @@ -1,2 +1,2 @@ #!/bin/sh -wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /tmp/GeoIP.dat.gz && gunzip tmp/GeoIP.dat.gz && mv tmp/GeoIP.dat.gz /usr/share/GeoIP +wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /tmp/GeoIP.dat.gz && gunzip /tmp/GeoIP.dat.gz && mv /tmp/GeoIP.dat /usr/share/GeoIP -- 2.6.4 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---