blob: 1f0260f98143ed39eed973fe897710a56063c939 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="geoip"
_realname="GeoIP"
pkgver=1.5.1
pkgrel=0
pkgdesc="Lookup countries by IP addresses"
url="http://www.maxmind.com/app/ip-location"
arch="all"
license="GPL"
depends=
makedepends="zlib-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.maxmind.com/download/geoip/api/c/$_realname-$pkgver.tar.gz"
_builddir="$srcdir"/$_realname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
return 0
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc/geoip \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
make check || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D ../../geoip.cron "$pkgdir"/etc/periodic/monthly/geoip
rm "$pkgdir"/usr/lib/*.la
}
md5sums="36b82f3558e6e2ebdd11a56c5db21dbc GeoIP-1.5.1.tar.gz"
sha256sums="ec35ee73fcc54c493f4252565d1c81d022b398dd16de3af1522c8cab016f8731 GeoIP-1.5.1.tar.gz"
sha512sums="aacb59ac7ced106ed420d320ffe6ffbec0d0e49ef3af8c2380c731824413386b6979e13f7a4ba81ba5b8d5ab4792830da232a02caa263752302acf55ac9bcae5 GeoIP-1.5.1.tar.gz"
|