wok-next view iptables/receipt @ rev 5195

slitaz-doc: fix version for 3.0
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 28 17:16:33 2010 +0200 (2010-03-28)
parents 939e9b93ed08
children a1f5e69cf335
line source
1 # SliTaz package receipt.
3 PACKAGE="iptables"
4 VERSION="1.4.5"
5 CATEGORY="security"
6 SHORT_DESC="Packet filtering framework (Firewall)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="linux-netfilter"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.netfilter.org/"
11 WGET_URL="http://www.netfilter.org/projects/iptables/files/$TARBALL"
12 TAGS="firewall"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 if [ ! -d $WOK/linux/taz ]; then
19 tazwok cook linux
20 fi
21 # Set the right Kernel path to compile.
22 KERNEL_PATH="$WOK/linux/linux-*"
23 ./configure \
24 --prefix=/usr \
25 --libexecdir=/usr/lib/iptables \
26 --mandir=/usr/share/man \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 EXTRAVERSION="_`grep ^VERSION= $WOK/linux/receipt | cut -d '\"' -f 2`"
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/sbin $fs/sbin
38 cp -a $_pkg/usr/lib $fs/usr
39 }