wok-6.x annotate iptables/receipt @ rev 2141

iptables should use EXTRAVERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 04 15:40:09 2009 +0000 (2009-02-04)
parents 26d477618246
children d1f8fd6f6efe
rev   line source
pankso@6 1 # SliTaz package receipt.
pankso@6 2
pankso@6 3 PACKAGE="iptables"
pankso@929 4 VERSION="1.4.1.1"
pankso@209 5 CATEGORY="security"
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
pascal@2141 13 # Extract EXTRAVERSION from linux package
pascal@2141 14 get_version()
pascal@2141 15 {
pascal@2141 16 kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config)
pascal@2141 17 EXTRAVERSION=_${kver##* }
pascal@2141 18 }
pankso@6 19
pankso@6 20 # Rules to configure and make the package.
pankso@6 21 compile_rules()
pankso@6 22 {
pankso@6 23 cd $src
pascal@2141 24 if [ ! -d $WOK/linux/taz ]; then
pascal@2141 25 tazwok cook linux
pascal@2141 26 fi
pascal@2141 27 # Set the right Kernel path to compile.
pascal@2141 28 KERNEL_PATH="$WOK/linux/$(ls $WOK/linux/taz)"
pankso@932 29 ./configure \
pankso@932 30 --prefix=/usr \
pankso@932 31 --libexecdir=/usr/lib/iptables \
pankso@932 32 --mandir=/usr/share/man \
pascal@2141 33 $CONFIGURE_ARGS &&
pascal@2141 34 make &&
pankso@932 35 make DESTDIR=$PWD/_pkg install
pankso@6 36 }
pankso@6 37
pankso@6 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@6 39 genpkg_rules()
pankso@6 40 {
pankso@932 41 mkdir -p $fs/usr
pankso@932 42 cp -a $_pkg/usr/sbin $fs/sbin
pankso@932 43 cp -a $_pkg/usr/lib $fs/usr
pankso@6 44 }