diff options
author | root <root@rshg054.dnsready.net> | 2012-05-04 00:01:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-04 00:01:57 +0000 |
commit | 0a24fb835cac4007388213ad0afb15257b035b14 (patch) | |
tree | 799a160f6daeb40ccbb6f1d06e7ef3ea0caaf660 /extra/geoip | |
parent | 5520a8b04cecf4af812cbf2285e9ab6efabe147f (diff) |
Fri May 4 00:01:56 UTC 2012
Diffstat (limited to 'extra/geoip')
-rw-r--r-- | extra/geoip/PKGBUILD | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/extra/geoip/PKGBUILD b/extra/geoip/PKGBUILD index d969c256c..8e75a5e94 100644 --- a/extra/geoip/PKGBUILD +++ b/extra/geoip/PKGBUILD @@ -1,36 +1,43 @@ -# $Id: PKGBUILD 136949 2011-09-03 12:23:55Z foutrelis $ +# $Id: PKGBUILD 158109 2012-05-03 01:01:32Z foutrelis $ # Maintainer: Dan McGee <dan@archlinux.org> # Contributor: Manolis Tzanidakis <manolis@archlinux.org> pkgname=geoip pkgver=1.4.8 -pkgrel=1 +pkgrel=2 pkgdesc="Non-DNS IP-to-country resolver C library & utils" arch=('i686' 'x86_64') url="http://www.maxmind.com/app/c" license=('GPL') -depends=('zlib') +depends=('zlib' 'geoip-database') backup=('etc/geoip/GeoIP.conf') -options=('!libtool') -source=(http://www.maxmind.com/download/geoip/api/c/GeoIP-${pkgver}.tar.gz) -md5sums=('05b7300435336231b556df5ab36f326d') +options=('!libtool' '!emptydirs') +source=(http://www.maxmind.com/download/geoip/api/c/GeoIP-$pkgver.tar.gz) +sha256sums=('cf0f6b2bac1153e34d6ef55ee3851479b347d2b5c191fda8ff6a51fab5291ff4') build() { - cd "${srcdir}/GeoIP-${pkgver}" + cd "$srcdir/GeoIP-$pkgver" - autoreconf -i - ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/geoip + autoreconf -vi + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/geoip make } check() { - cd "${srcdir}/GeoIP-${pkgver}" + cd "$srcdir/GeoIP-$pkgver" make check } package() { - cd "${srcdir}/GeoIP-${pkgver}" - make DESTDIR="${pkgdir}" install + cd "$srcdir/GeoIP-$pkgver" + + make DESTDIR="$pkgdir" install + + # country database is provided by geoip-database + rm "$pkgdir/usr/share/GeoIP/GeoIP.dat" } # vim:set ts=2 sw=2 et: |