wok-next annotate geoip/receipt @ rev 14309
Up: ethumb-dev (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:20:34 2013 +0200 (2013-04-07) |
parents | 9fa62bfcec02 |
children | d1c17bd2c2bc |
rev | line source |
---|---|
slaxemulator@7300 | 1 # SliTaz package receipt. |
slaxemulator@7300 | 2 |
slaxemulator@7300 | 3 PACKAGE="geoip" |
slaxemulator@11163 | 4 VERSION="1.4.8" |
slaxemulator@7300 | 5 CATEGORY="network" |
slaxemulator@7300 | 6 SHORT_DESC="Non-DNS IP-to-country resolver C library & utils." |
slaxemulator@7300 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@7300 | 8 SOURCE="GeoIP" |
slaxemulator@7300 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
slaxemulator@7300 | 10 WEB_SITE="http://www.maxmind.com/app/c" |
slaxemulator@7300 | 11 WGET_URL="http://www.maxmind.com/download/geoip/api/c/$TARBALL" |
slaxemulator@7300 | 12 |
slaxemulator@11163 | 13 DEPENDS="zlib" |
slaxemulator@11163 | 14 BUILD_DEPENDS="zlib-dev" |
slaxemulator@11163 | 15 |
slaxemulator@7300 | 16 # Rules to configure and make the package. |
slaxemulator@7300 | 17 compile_rules() |
slaxemulator@7300 | 18 { |
slaxemulator@7300 | 19 cd $src |
slaxemulator@11163 | 20 autoreconf -i |
slaxemulator@7300 | 21 ./configure \ |
slaxemulator@7300 | 22 --prefix=/usr \ |
slaxemulator@7300 | 23 --infodir=/usr/share/info \ |
slaxemulator@7300 | 24 --mandir=/usr/share/man \ |
slaxemulator@7300 | 25 --sysconfdir=/etc/geoip \ |
slaxemulator@7300 | 26 $CONFIGURE_ARGS && |
slaxemulator@11163 | 27 make && make DESTDIR=$DESTDIR install |
slaxemulator@7300 | 28 } |
slaxemulator@7300 | 29 |
slaxemulator@7300 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7300 | 31 genpkg_rules() |
slaxemulator@7300 | 32 { |
slaxemulator@7300 | 33 mkdir -p $fs/usr/lib $fs/usr/share |
slaxemulator@11163 | 34 cp -a $install/usr/bin $fs/usr |
slaxemulator@11163 | 35 cp -a $install/etc $fs |
slaxemulator@11163 | 36 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11163 | 37 cp -a $install/usr/share/GeoIP $fs/usr/share |
slaxemulator@7300 | 38 } |
slaxemulator@7300 | 39 |