38 lines
995 B
Bash
38 lines
995 B
Bash
# Template file for 'geoip'
|
|
pkgname=geoip
|
|
version=1.4.8
|
|
revision=3
|
|
wrksrc="GeoIP-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--mandir=/usr/share/man --sysconfdir=/etc/geoip"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="zlib-devel"
|
|
conf_files="/etc/geoip/GeoIP.conf"
|
|
short_desc="Non-DNS IP-to-country resolver C library and utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.maxmind.com/app/c"
|
|
license="GPL-2"
|
|
distfiles="http://geolite.maxmind.com/download/${pkgname}/api/c/GeoIP-${version}.tar.gz"
|
|
checksum=cf0f6b2bac1153e34d6ef55ee3851479b347d2b5c191fda8ff6a51fab5291ff4
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
libgeoip_package() {
|
|
short_desc+=" - Runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
vmove usr/share/GeoIP
|
|
}
|
|
}
|
|
|
|
geoip-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="zlib-devel libgeoip>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|