diff options
author | Jens Vehlhaber <jens@eisfair.org> | 2016-02-15 07:20:47 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-02-22 14:33:48 +0000 |
commit | bdd0013fdbf7e436512b3e0ef1d7d2c4befac656 (patch) | |
tree | d37e0a29522e784e18beafb83ae936f6e4879caa | |
parent | 7ac7e0c24e77c4b11ee02fe92537c5ce3fd2cf65 (diff) | |
download | alpine_aports-bdd0013fdbf7e436512b3e0ef1d7d2c4befac656.tar.bz2 alpine_aports-bdd0013fdbf7e436512b3e0ef1d7d2c4befac656.tar.xz alpine_aports-bdd0013fdbf7e436512b3e0ef1d7d2c4befac656.zip |
main/geoip: bugfix get new GeoIP.dat file
Signed-off-by: Jens Vehlhaber <jens@eisfair.org>
-rw-r--r-- | main/geoip/APKBUILD | 15 | ||||
-rwxr-xr-x | main/geoip/geoip.cron | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/main/geoip/APKBUILD b/main/geoip/APKBUILD index 309b3e5e76..047579749d 100644 --- a/main/geoip/APKBUILD +++ b/main/geoip/APKBUILD | |||
@@ -3,7 +3,7 @@ | |||
3 | pkgname="geoip" | 3 | pkgname="geoip" |
4 | _realname="GeoIP" | 4 | _realname="GeoIP" |
5 | pkgver=1.6.7 | 5 | pkgver=1.6.7 |
6 | pkgrel=0 | 6 | pkgrel=1 |
7 | pkgdesc="Lookup countries by IP addresses" | 7 | pkgdesc="Lookup countries by IP addresses" |
8 | url="http://www.maxmind.com/app/ip-location" | 8 | url="http://www.maxmind.com/app/ip-location" |
9 | arch="all" | 9 | arch="all" |
@@ -12,7 +12,8 @@ depends= | |||
12 | makedepends="zlib-dev" | 12 | makedepends="zlib-dev" |
13 | install= | 13 | install= |
14 | subpackages="$pkgname-dev $pkgname-doc" | 14 | subpackages="$pkgname-dev $pkgname-doc" |
15 | source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/$_realname-$pkgver.tar.gz" | 15 | source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/$_realname-$pkgver.tar.gz |
16 | geoip.cron" | ||
16 | 17 | ||
17 | _builddir="$srcdir"/$_realname-$pkgver | 18 | _builddir="$srcdir"/$_realname-$pkgver |
18 | 19 | ||
@@ -39,9 +40,13 @@ build() { | |||
39 | package() { | 40 | package() { |
40 | cd "$_builddir" | 41 | cd "$_builddir" |
41 | make DESTDIR="$pkgdir" install || return 1 | 42 | make DESTDIR="$pkgdir" install || return 1 |
43 | mkdir -p "$pkgdir"/usr/share/GeoIP | ||
42 | install -m755 -D ../../geoip.cron "$pkgdir"/etc/periodic/monthly/geoip | 44 | install -m755 -D ../../geoip.cron "$pkgdir"/etc/periodic/monthly/geoip |
43 | } | 45 | } |
44 | 46 | ||
45 | md5sums="4c8e1923fdf6257013178de7f025527f GeoIP-1.6.7.tar.gz" | 47 | md5sums="4c8e1923fdf6257013178de7f025527f GeoIP-1.6.7.tar.gz |
46 | sha256sums="18f3713146b6196f85b57a92bcfdc9aea3345e2d836531a6ac4a630ffc7fa559 GeoIP-1.6.7.tar.gz" | 48 | 674837e5011389610f1569bbb1a00f76 geoip.cron" |
47 | sha512sums="f22a70255f7659a513653580fd17b50e60169eb56f0a4b071f85e48d888b3699524df37e75b2f0fa78f6bc5ca52996b45f7be532bcfce3e041bcde1bd8d1b9a3 GeoIP-1.6.7.tar.gz" | 49 | sha256sums="18f3713146b6196f85b57a92bcfdc9aea3345e2d836531a6ac4a630ffc7fa559 GeoIP-1.6.7.tar.gz |
50 | 17e50491df05e50cd9f3186a878567f7eb9492773c90b99f4a8d7bb61386d5e2 geoip.cron" | ||
51 | sha512sums="f22a70255f7659a513653580fd17b50e60169eb56f0a4b071f85e48d888b3699524df37e75b2f0fa78f6bc5ca52996b45f7be532bcfce3e041bcde1bd8d1b9a3 GeoIP-1.6.7.tar.gz | ||
52 | 5fc4003b57f5a0514c42764a6c6d28c2db926ea244f125accf490648adc9d172215e0d16426f49d79e1c465fea2c71b591636f1038d683c77535d2d93811a73e geoip.cron" | ||
diff --git a/main/geoip/geoip.cron b/main/geoip/geoip.cron index b7c2ffd4d0..fc96d08a82 100755 --- a/main/geoip/geoip.cron +++ b/main/geoip/geoip.cron | |||
@@ -1,2 +1,2 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 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 | 2 | 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 |