wok rev 242

Shfs & squashfs : check linux cooked
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 18 14:40:48 2008 +0100 (2008-02-18)
parents 03c66d91b55f
children ab9cca571149
files shfs/receipt squashfs/receipt
line diff
     1.1 --- a/shfs/receipt	Mon Feb 18 14:32:36 2008 +0100
     1.2 +++ b/shfs/receipt	Mon Feb 18 14:40:48 2008 +0100
     1.3 @@ -15,10 +15,13 @@
     1.4  compile_rules()
     1.5  {
     1.6  	local kver
     1.7 +	if [ ! -d ../linux/taz ]; then
     1.8 +		tazwok cook linux
     1.9 +	fi
    1.10  	kver=$(grep "kernel version" ../linux/linux-*/.config)
    1.11  	kver=${kver##* }
    1.12  	cd $PACKAGE-$VERSION
    1.13 -	patch -p0 < ../stuff/$PACKAGE-$VERSION-$kver.u
    1.14 +	patch -Np0 < ../stuff/$PACKAGE-$VERSION-$kver.u
    1.15  	while read subs ; do
    1.16  		perl -pi -e "$subs" Makefile
    1.17  	done << EOF
    1.18 @@ -40,9 +43,14 @@
    1.19  	strip -s $fs/usr/bin/*
    1.20  }
    1.21  
    1.22 -# Pre and post install commands for Tazpkg.
    1.23 +# Post install/remove commands for Tazpkg.
    1.24  post_install()
    1.25  {
    1.26  	depmod -a
    1.27  }
    1.28  
    1.29 +post_remove()
    1.30 +{
    1.31 +	depmod -a
    1.32 +}
    1.33 +
     2.1 --- a/squashfs/receipt	Mon Feb 18 14:32:36 2008 +0100
     2.2 +++ b/squashfs/receipt	Mon Feb 18 14:40:48 2008 +0100
     2.3 @@ -18,6 +18,9 @@
     2.4  	local patch_dir
     2.5  
     2.6  	# get kernel version
     2.7 +	if [ ! -d ../linux/taz ]; then
     2.8 +		tazwok cook linux
     2.9 +	fi
    2.10  	kver=$(grep "kernel version" ../linux/linux-*/.config)
    2.11  	kver=${kver##* }
    2.12  
    2.13 @@ -75,8 +78,13 @@
    2.14  	strip  -s $fs/usr/sbin/*
    2.15  }
    2.16  
    2.17 -# Pre and post install commands for Tazpkg.
    2.18 +# Post install/remove commands for Tazpkg.
    2.19  post_install()
    2.20  {
    2.21  	depmod -a
    2.22  }
    2.23 +
    2.24 +post_remove()
    2.25 +{
    2.26 +	depmod -a
    2.27 +}