diff --git a/common/shlibs b/common/shlibs index c6e5dc74f1..93e655b9f1 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 0000000000..d491cddfba --- /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 0000000000..f7bdbe85b1 --- /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 0000000000..11b3d14851 --- /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 0000000000..c7b95a9993 --- /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 0000000000..1a1d79f63f --- /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 0000000000..b26699acc1 --- /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 0000000000..2fade62754 --- /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 0000000000..d491cddfba --- /dev/null +++ b/srcpkgs/libgeoip @@ -0,0 +1 @@ +geoip \ No newline at end of file