2011-12-21 15:26:53 +01:00
|
|
|
# Template file for 'geoip'
|
|
|
|
pkgname=geoip
|
|
|
|
version=1.4.8
|
2014-06-08 11:52:36 +02:00
|
|
|
revision=3
|
2013-04-12 13:13:49 +02:00
|
|
|
wrksrc="GeoIP-${version}"
|
2011-12-21 15:26:53 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--mandir=/usr/share/man --sysconfdir=/etc/geoip"
|
2014-02-18 15:54:30 +01:00
|
|
|
hostmakedepends="automake libtool"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="zlib-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/geoip/GeoIP.conf"
|
2011-12-21 15:26:53 +01:00
|
|
|
short_desc="Non-DNS IP-to-country resolver C library and utilities"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-12-21 15:26:53 +01:00
|
|
|
homepage="http://www.maxmind.com/app/c"
|
|
|
|
license="GPL-2"
|
2013-04-12 13:13:49 +02:00
|
|
|
distfiles="http://geolite.maxmind.com/download/${pkgname}/api/c/GeoIP-${version}.tar.gz"
|
2011-12-21 15:26:53 +01:00
|
|
|
checksum=cf0f6b2bac1153e34d6ef55ee3851479b347d2b5c191fda8ff6a51fab5291ff4
|
2014-02-18 15:54:30 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2011-12-21 15:26:53 +01:00
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
libgeoip_package() {
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - Runtime library"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
2014-02-18 15:54:30 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 13:13:49 +02:00
|
|
|
vmove usr/share/GeoIP
|
|
|
|
}
|
|
|
|
}
|
2011-12-21 15:26:53 +01:00
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
geoip-devel_package() {
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2014-02-18 15:54:30 +01:00
|
|
|
depends="zlib-devel libgeoip>=${version}_${revision}"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-18 15:54:30 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|