summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-15 15:44:02 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-15 15:44:02 (GMT)
commitbcf05a05c7a264402e210c9bbe2203281ef86cac (patch)
tree3aa6c18058e01b3c91a7abd088fba0acb66664c5 /abs
parent4ba1ae02f5991ab191788ae43c5499799b826e3b (diff)
downloadlinhes_pkgbuild-bcf05a05c7a264402e210c9bbe2203281ef86cac.zip
linhes_pkgbuild-bcf05a05c7a264402e210c9bbe2203281ef86cac.tar.gz
linhes_pkgbuild-bcf05a05c7a264402e210c9bbe2203281ef86cac.tar.bz2
geoip 1.4.8
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/geoip/PKGBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/abs/extra/geoip/PKGBUILD b/abs/extra/geoip/PKGBUILD
index 32c5927..8e75a5e 100644
--- a/abs/extra/geoip/PKGBUILD
+++ b/abs/extra/geoip/PKGBUILD
@@ -1,36 +1,43 @@
-# $Id$
+# $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: