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