2011-12-21 14:26:53 +00:00
|
|
|
# Template file for 'geoip'
|
|
|
|
pkgname=geoip
|
|
|
|
version=1.4.8
|
2013-04-12 11:13:49 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="GeoIP-${version}"
|
2011-12-21 14:26:53 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--mandir=/usr/share/man --sysconfdir=/etc/geoip"
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="zlib-devel"
|
2011-12-21 14:26:53 +00:00
|
|
|
short_desc="Non-DNS IP-to-country resolver C library and utilities"
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
|
|
homepage="http://www.maxmind.com/app/c"
|
|
|
|
license="GPL-2"
|
2013-04-12 11:13:49 +00:00
|
|
|
distfiles="http://geolite.maxmind.com/download/${pkgname}/api/c/GeoIP-${version}.tar.gz"
|
2011-12-21 14:26:53 +00:00
|
|
|
checksum=cf0f6b2bac1153e34d6ef55ee3851479b347d2b5c191fda8ff6a51fab5291ff4
|
|
|
|
long_desc="
|
|
|
|
GeoIP is the proprietary technology that drives MaxMind's IP geolocation data
|
|
|
|
and services. GeoIP provides businesses with a non-invasive way to determine
|
|
|
|
geographical and other information about their Internet visitors in
|
|
|
|
real-time."
|
|
|
|
|
2013-04-12 11:13:49 +00:00
|
|
|
libgeoip_package() {
|
|
|
|
short_desc="${short_desc} (Runtime library)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
vmove usr/share/GeoIP
|
|
|
|
}
|
|
|
|
}
|
2011-12-21 14:26:53 +00:00
|
|
|
|
2013-04-12 11:13:49 +00:00
|
|
|
geoip-devel_package() {
|
|
|
|
depends="zlib-devel libgeoip>=${version}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|
2011-12-21 14:26:53 +00:00
|
|
|
|
2013-04-12 11:13:49 +00:00
|
|
|
geoip_package() {
|
|
|
|
conf_files="/etc/geoip/GeoIP.conf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|