# HG changeset patch # User Christopher Rogers # Date 1289963223 0 # Node ID 9fa62bfcec022ad74a0f504daab5985d7c8c4871 # Parent db069f80c0a04deeb1795c6200ce116f3070fad3 Add geoip. Non-DNS IP-to-country resolver C library & utils. diff -r db069f80c0a0 -r 9fa62bfcec02 geoip-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/geoip-dev/receipt Wed Nov 17 03:07:03 2010 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="geoip-dev" +VERSION="1.4.6" +CATEGORY="development" +SHORT_DESC="devel files for geoip." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="geoip" +WEB_SITE="http://www.maxmind.com/app/c" +SOURCE="GeoIP" +WANTED="geoip" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr +} + diff -r db069f80c0a0 -r 9fa62bfcec02 geoip/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/geoip/receipt Wed Nov 17 03:07:03 2010 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="geoip" +VERSION="1.4.6" +CATEGORY="network" +SHORT_DESC="Non-DNS IP-to-country resolver C library & utils." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="zlib" +BUILD_DEPENDS="zlib-dev" +SOURCE="GeoIP" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.maxmind.com/app/c" +WGET_URL="http://www.maxmind.com/download/geoip/api/c/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/geoip \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/etc $fs + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $_pkg/usr/share/GeoIP $fs/usr/share +} +