wok-6.x diff mISDN/receipt @ rev 1517
mhwaveedit: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 08 10:42:32 2008 +0000 (2008-10-08) |
parents | e64f8e87ea6d |
children | c1610baa4cf4 |
line diff
1.1 --- a/mISDN/receipt Thu Oct 02 16:39:02 2008 +0000 1.2 +++ b/mISDN/receipt Wed Oct 08 10:42:32 2008 +0000 1.3 @@ -13,12 +13,12 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - if [ ! -d ../linux/taz ]; then 1.8 + if [ ! -d $WOK/linux/taz ]; then 1.9 tazwok cook linux 1.10 fi 1.11 - KVERS=$(grep "kernel version" ../linux/linux-*/.config) 1.12 + KVERS=$(grep "kernel version" $WOK/linux/linux-*/.config) 1.13 KVERS=${KVERS##* } 1.14 - KSRC=$(cd ../linux/linux-* ; pwd) 1.15 + KSRC=$(cd $WOK/linux/linux-* ; pwd) 1.16 cd $src 1.17 while read file; do 1.18 [ -f done.$file ] && continue 1.19 @@ -35,6 +35,7 @@ 1.20 drivers/isdn/hardware/mISDN/linux/*.? 1.21 done 1.22 sed -i "s,MISDNVERSION,\"$(cat VERSION)\"," drivers/isdn/hardware/mISDN/*.c 1.23 + sed -i 's/depmod/echo/' Makefile 1.24 make KVERS=$KVERS LINUX=$KSRC KBUILD_NOPEDANTIC=1 DESTDIR=$PWD/_pkg install 1.25 } 1.26 1.27 @@ -52,7 +53,7 @@ 1.28 # Post install/remove commands for Tazpkg. 1.29 post_install() 1.30 { 1.31 - depmod -a -b "$1/" $EXTRAVERSION-slitaz 1.32 + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz 1.33 } 1.34 1.35 post_remove()