wok diff mISDN/receipt @ rev 1914

aircrack-ng : Fix DEPENDS
author Julien Rabier <taziden@slitaz.org>
date Mon Dec 22 02:10:04 2008 +0100 (2008-12-22)
parents e64f8e87ea6d
children c1610baa4cf4
line diff
     1.1 --- a/mISDN/receipt	Thu Oct 02 16:39:02 2008 +0000
     1.2 +++ b/mISDN/receipt	Mon Dec 22 02:10:04 2008 +0100
     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()