wok-stable view geoip/receipt @ rev 9793
awesome: need also libxdg-basedir
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 13 23:26:27 2011 +0200 (2011-05-13) |
parents | |
children | 3bc99b51b9cf |
line source
1 # SliTaz package receipt.
3 PACKAGE="geoip"
4 VERSION="1.4.6"
5 CATEGORY="network"
6 SHORT_DESC="Non-DNS IP-to-country resolver C library & utils."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="zlib"
9 BUILD_DEPENDS="zlib-dev"
10 SOURCE="GeoIP"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://www.maxmind.com/app/c"
13 WGET_URL="http://www.maxmind.com/download/geoip/api/c/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 --sysconfdir=/etc/geoip \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib $fs/usr/share
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/etc $fs
34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
35 cp -a $_pkg/usr/share/GeoIP $fs/usr/share
36 }