wok-4.x rev 10672

iptables: user $kvers
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 10:26:04 2011 +0200 (2011-05-27)
parents 3aea2a4b129a
children 769b80c8e4cf
files iptables/receipt
line diff
     1.1 --- a/iptables/receipt	Fri May 27 10:24:50 2011 +0200
     1.2 +++ b/iptables/receipt	Fri May 27 10:26:04 2011 +0200
     1.3 @@ -16,7 +16,6 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -
     1.8  	# Set the right Kernel path to compile.
     1.9  	KERNEL_PATH="/usr/src/linux"
    1.10  	./configure \
    1.11 @@ -24,14 +23,13 @@
    1.12  		--libexecdir=/usr/lib/iptables \
    1.13  		--mandir=/usr/share/man \
    1.14  		$CONFIGURE_ARGS &&
    1.15 -	make &&
    1.16 -	make DESTDIR=$PWD/_pkg install
    1.17 +	make && make DESTDIR=$DESTDIR install
    1.18  }
    1.19  
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.21  genpkg_rules()
    1.22  {
    1.23 -	EXTRAVERSION="_`grep ^VERSION= $WOK/linux/receipt | cut -d '\"' -f 2`"
    1.24 +	EXTRAVERSION=_${$kvers}
    1.25  	mkdir -p $fs/usr
    1.26  	cp -a $_pkg/usr/sbin $fs/sbin
    1.27  	cp -a $_pkg/usr/lib $fs/usr