From 38e96ae8f2fab3fe3b59a47d507b14d0b742da25 Mon Sep 17 00:00:00 2001 From: davehome Date: Wed, 21 Dec 2011 07:26:53 -0700 Subject: [PATCH] New package: geoip-1.4.8 --- common/shlibs | 2 ++ srcpkgs/geoip-devel | 1 + srcpkgs/geoip/depends | 2 ++ srcpkgs/geoip/geoip-devel.template | 15 +++++++++++++++ srcpkgs/geoip/geoip.rshlibs | 3 +++ srcpkgs/geoip/libgeoip.rshlibs | 2 ++ srcpkgs/geoip/libgeoip.template | 15 +++++++++++++++ srcpkgs/geoip/template | 24 ++++++++++++++++++++++++ srcpkgs/libgeoip | 1 + 9 files changed, 65 insertions(+) create mode 120000 srcpkgs/geoip-devel create mode 100644 srcpkgs/geoip/depends create mode 100644 srcpkgs/geoip/geoip-devel.template create mode 100644 srcpkgs/geoip/geoip.rshlibs create mode 100644 srcpkgs/geoip/libgeoip.rshlibs create mode 100644 srcpkgs/geoip/libgeoip.template create mode 100644 srcpkgs/geoip/template create mode 120000 srcpkgs/libgeoip diff --git a/common/shlibs b/common/shlibs index c6e5dc74f10..93e655b9f19 100644 --- a/common/shlibs +++ b/common/shlibs @@ -927,3 +927,5 @@ libisofs.so.6 libisofs libisofs-devel libbfd-2.22.so binutils binutils-devel libopcodes-2.22.so binutils binutils-devel libv8.so libv8 v8-devel +libGeoIP.so.1 libgeoip geoip-devel +libGeoIPUpdate.so.0 libgeoip geoip-devel diff --git a/srcpkgs/geoip-devel b/srcpkgs/geoip-devel new file mode 120000 index 00000000000..d491cddfba2 --- /dev/null +++ b/srcpkgs/geoip-devel @@ -0,0 +1 @@ +geoip \ No newline at end of file diff --git a/srcpkgs/geoip/depends b/srcpkgs/geoip/depends new file mode 100644 index 00000000000..f7bdbe85b12 --- /dev/null +++ b/srcpkgs/geoip/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.4.8" +api_depends="${abi_depends}" diff --git a/srcpkgs/geoip/geoip-devel.template b/srcpkgs/geoip/geoip-devel.template new file mode 100644 index 00000000000..11b3d148513 --- /dev/null +++ b/srcpkgs/geoip/geoip-devel.template @@ -0,0 +1,15 @@ +# Template file for 'geoip-devel'. +# +short_desc="${short_desc} (Development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run zlib-devel +Add_dependency run libgeoip + +do_install() +{ + vmove usr/include usr + vmove "usr/lib/*.a" usr/lib +} diff --git a/srcpkgs/geoip/geoip.rshlibs b/srcpkgs/geoip/geoip.rshlibs new file mode 100644 index 00000000000..c7b95a99933 --- /dev/null +++ b/srcpkgs/geoip/geoip.rshlibs @@ -0,0 +1,3 @@ +libc.so.6 +libGeoIP.so.1 +libGeoIPUpdate.so.0 diff --git a/srcpkgs/geoip/libgeoip.rshlibs b/srcpkgs/geoip/libgeoip.rshlibs new file mode 100644 index 00000000000..1a1d79f63f6 --- /dev/null +++ b/srcpkgs/geoip/libgeoip.rshlibs @@ -0,0 +1,2 @@ +libc.so.6 +libz.so.1 diff --git a/srcpkgs/geoip/libgeoip.template b/srcpkgs/geoip/libgeoip.template new file mode 100644 index 00000000000..b26699acc1d --- /dev/null +++ b/srcpkgs/geoip/libgeoip.template @@ -0,0 +1,15 @@ +# Template file for 'libgeoip'. +# +revision=1 +short_desc="${short_desc} (Runtime library)" +long_desc="${long_desc} + + This package contains the JACK runtime lib(s)." + +do_install() +{ + vmove "usr/lib/*.so*" usr/lib + vmove usr/share/GeoIP usr/share +} + + diff --git a/srcpkgs/geoip/template b/srcpkgs/geoip/template new file mode 100644 index 00000000000..2fade627547 --- /dev/null +++ b/srcpkgs/geoip/template @@ -0,0 +1,24 @@ +# Template file for 'geoip' +pkgname=geoip +version=1.4.8 +distfiles="http://geolite.maxmind.com/download/${pkgname}/api/c/GeoIP-${version}.tar.gz" +build_style=gnu-configure +configure_args="--mandir=/usr/share/man --sysconfdir=/etc/geoip" +short_desc="Non-DNS IP-to-country resolver C library and utilities" +maintainer="davehome " +homepage="http://www.maxmind.com/app/c" +license="GPL-2" +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." + +subpackages="lib${pkgname} ${pkgname}-devel" + +conf_files="/etc/geoip/GeoIP.conf" + +wrksrc="GeoIP-${version}" + +Add_dependency build zlib-devel diff --git a/srcpkgs/libgeoip b/srcpkgs/libgeoip new file mode 120000 index 00000000000..d491cddfba2 --- /dev/null +++ b/srcpkgs/libgeoip @@ -0,0 +1 @@ +geoip \ No newline at end of file