wok-next 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 | 27c64029013c |
children | 899926b34160 |
files | iptables/receipt |
line diff
1.1 --- a/iptables/receipt Wed Feb 04 14:58:33 2009 +0000 1.2 +++ b/iptables/receipt Wed Feb 04 15:40:09 2009 +0000 1.3 @@ -10,19 +10,28 @@ 1.4 WEB_SITE="http://www.netfilter.org/" 1.5 WGET_URL="http://www.netfilter.org/projects/iptables/files/$TARBALL" 1.6 1.7 -# Set the right Kernel path to compile. 1.8 -KERNEL_PATH="$WOK/linux/linux-2.6.25.5" 1.9 +# Extract EXTRAVERSION from linux package 1.10 +get_version() 1.11 +{ 1.12 + kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) 1.13 + EXTRAVERSION=_${kver##* } 1.14 +} 1.15 1.16 # Rules to configure and make the package. 1.17 compile_rules() 1.18 { 1.19 cd $src 1.20 + if [ ! -d $WOK/linux/taz ]; then 1.21 + tazwok cook linux 1.22 + fi 1.23 + # Set the right Kernel path to compile. 1.24 + KERNEL_PATH="$WOK/linux/$(ls $WOK/linux/taz)" 1.25 ./configure \ 1.26 --prefix=/usr \ 1.27 --libexecdir=/usr/lib/iptables \ 1.28 --mandir=/usr/share/man \ 1.29 - $CONFIGURE_ARGS 1.30 - make 1.31 + $CONFIGURE_ARGS && 1.32 + make && 1.33 make DESTDIR=$PWD/_pkg install 1.34 } 1.35