# HG changeset patch # User Pascal Bellard # Date 1203342048 -3600 # Node ID d1ecaea3e7cf8a46323edce3e7bbf1edb8fadae1 # Parent 03c66d91b55f61ce36a5434289e203da48c66c7f Shfs & squashfs : check linux cooked diff -r 03c66d91b55f -r d1ecaea3e7cf shfs/receipt --- a/shfs/receipt Mon Feb 18 14:32:36 2008 +0100 +++ b/shfs/receipt Mon Feb 18 14:40:48 2008 +0100 @@ -15,10 +15,13 @@ compile_rules() { local kver + if [ ! -d ../linux/taz ]; then + tazwok cook linux + fi kver=$(grep "kernel version" ../linux/linux-*/.config) kver=${kver##* } cd $PACKAGE-$VERSION - patch -p0 < ../stuff/$PACKAGE-$VERSION-$kver.u + patch -Np0 < ../stuff/$PACKAGE-$VERSION-$kver.u while read subs ; do perl -pi -e "$subs" Makefile done << EOF @@ -40,9 +43,14 @@ strip -s $fs/usr/bin/* } -# Pre and post install commands for Tazpkg. +# Post install/remove commands for Tazpkg. post_install() { depmod -a } +post_remove() +{ + depmod -a +} + diff -r 03c66d91b55f -r d1ecaea3e7cf squashfs/receipt --- a/squashfs/receipt Mon Feb 18 14:32:36 2008 +0100 +++ b/squashfs/receipt Mon Feb 18 14:40:48 2008 +0100 @@ -18,6 +18,9 @@ local patch_dir # get kernel version + if [ ! -d ../linux/taz ]; then + tazwok cook linux + fi kver=$(grep "kernel version" ../linux/linux-*/.config) kver=${kver##* } @@ -75,8 +78,13 @@ strip -s $fs/usr/sbin/* } -# Pre and post install commands for Tazpkg. +# Post install/remove commands for Tazpkg. post_install() { depmod -a } + +post_remove() +{ + depmod -a +}