wok-next rev 7300
Add geoip. Non-DNS IP-to-country resolver C library & utils.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Nov 17 03:07:03 2010 +0000 (2010-11-17) |
parents | db069f80c0a0 |
children | 82e83ddb59bd |
files | geoip-dev/receipt geoip/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/geoip-dev/receipt Wed Nov 17 03:07:03 2010 +0000 1.3 @@ -0,0 +1,21 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="geoip-dev" 1.7 +VERSION="1.4.6" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="devel files for geoip." 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +DEPENDS="geoip" 1.12 +WEB_SITE="http://www.maxmind.com/app/c" 1.13 +SOURCE="GeoIP" 1.14 +WANTED="geoip" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + _pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg 1.20 + mkdir -p $fs/usr/lib 1.21 + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib 1.22 + cp -a $_pkg/usr/include $fs/usr 1.23 +} 1.24 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/geoip/receipt Wed Nov 17 03:07:03 2010 +0000 2.3 @@ -0,0 +1,37 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="geoip" 2.7 +VERSION="1.4.6" 2.8 +CATEGORY="network" 2.9 +SHORT_DESC="Non-DNS IP-to-country resolver C library & utils." 2.10 +MAINTAINER="slaxemulator@gmail.com" 2.11 +DEPENDS="zlib" 2.12 +BUILD_DEPENDS="zlib-dev" 2.13 +SOURCE="GeoIP" 2.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 2.15 +WEB_SITE="http://www.maxmind.com/app/c" 2.16 +WGET_URL="http://www.maxmind.com/download/geoip/api/c/$TARBALL" 2.17 + 2.18 +# Rules to configure and make the package. 2.19 +compile_rules() 2.20 +{ 2.21 + cd $src 2.22 + ./configure \ 2.23 + --prefix=/usr \ 2.24 + --infodir=/usr/share/info \ 2.25 + --mandir=/usr/share/man \ 2.26 + --sysconfdir=/etc/geoip \ 2.27 + $CONFIGURE_ARGS && 2.28 + make && make DESTDIR=$PWD/_pkg install 2.29 +} 2.30 + 2.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.32 +genpkg_rules() 2.33 +{ 2.34 + mkdir -p $fs/usr/lib $fs/usr/share 2.35 + cp -a $_pkg/usr/bin $fs/usr 2.36 + cp -a $_pkg/etc $fs 2.37 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 2.38 + cp -a $_pkg/usr/share/GeoIP $fs/usr/share 2.39 +} 2.40 +