wok view iptables/receipt @ rev 6

Add : iptables, libcap, pcre, ppp, sqlite
author Christophe Lincoln <pankso@slitaz.org>
date Thu Dec 13 15:13:49 2007 +0100 (2007-12-13)
parents
children 591f8f8aad15
line source
1 # SliTaz package receipt.
3 PACKAGE="iptables"
4 VERSION="1.3.7"
5 CATEGORY="base-apps"
6 SHORT_DESC="Packet filtering framework (Firewall)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="linux"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.netfilter.org/"
11 WGET_URL="http://www.netfilter.org/projects/iptables/files/$TARBALL"
13 # Set the right Kernel path to compile.
14 KERNEL_PATH="$WOK/linux/linux-2.6.22.9"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 make KERNEL_DIR=$KERNEL_PATH BINDIR=/sbin \
21 LIBDIR=/lib MANDIR=/usr/share/man
22 # Install in $PWD_pkg dir.
23 make KERNEL_DIR=$KERNEL_PATH BINDIR=/sbin \
24 LIBDIR=/lib MANDIR=/usr/share/man \
25 DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/sbin $fs/lib/iptables
32 # Sbin.
33 cp -a $_pkg/sbin/iptables* $fs/sbin
34 # Libs.
35 cp -a $_pkg/lib/iptables/libipt_standard.so $fs/lib/iptables
36 cp -a $_pkg/lib/iptables/libipt_conntrack.so $fs/lib/iptables
37 cp -a $_pkg/lib/iptables/libipt_tcp.so $fs/lib/iptables
38 cp -a $_pkg/lib/iptables/libipt_udp.so $fs/lib/iptables
39 # Strip.
40 strip -s $_fs/sbin/*
41 strip -s $_fs/lib/iptables/*
42 }