wok view iptables/receipt @ rev 3482
Update: gcc+gcj
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Wed Jun 17 10:21:48 2009 +0000 (2009-06-17) |
parents | 7072d5ba9317 |
children | 90ba3f41867b |
line source
1 # SliTaz package receipt.
3 PACKAGE="iptables"
4 VERSION="1.4.1.1"
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"
13 # Extract EXTRAVERSION from linux package
14 get_version()
15 {
16 kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config)
17 EXTRAVERSION=_${kver##* }
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 if [ ! -d $WOK/linux/taz ]; then
25 tazwok cook linux
26 fi
27 # Set the right Kernel path to compile.
28 KERNEL_PATH="$WOK/linux/$(ls $WOK/linux/taz)"
29 ./configure \
30 --prefix=/usr \
31 --libexecdir=/usr/lib/iptables \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $_pkg/usr/sbin $fs/sbin
43 cp -a $_pkg/usr/lib $fs/usr
44 }