wok-current diff linux-jfs/receipt @ rev 2785
slitaz-eeepc: Tiny clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 27 21:56:49 2009 +0200 (2009-04-27) |
parents | 532538d67b1c |
children | f306d126580e |
line diff
1.1 --- a/linux-jfs/receipt Sun Feb 01 12:36:41 2009 +0000 1.2 +++ b/linux-jfs/receipt Mon Apr 27 21:56:49 2009 +0200 1.3 @@ -7,13 +7,14 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 WANTED="linux" 1.6 WEB_SITE="http://www.kernel.org/" 1.7 +CONFIG_FILES="/etc/filesystems" 1.8 1.9 # Rules to gen a SliTaz package suitable for Tazpkg. 1.10 genpkg_rules() 1.11 { 1.12 local path 1.13 path=lib/modules/$VERSION-slitaz/kernel 1.14 - mkdir -p $fs/$path 1.15 + mkdir -p $fs/$path $fs/etc 1.16 export src 1.17 export _pkg 1.18 $src/list_modules.sh fs/jfs | while read module; do 1.19 @@ -21,18 +22,19 @@ 1.20 [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.21 cp -a $_pkg/$path/$module $fs/$dir 1.22 done 1.23 + touch $fs/etc/filesystems 1.24 } 1.25 1.26 # Post install/remove commands for Tazpkg. 1.27 post_install() 1.28 { 1.29 - grep -qs ^jfs$ $1/etc/filesystems || \ 1.30 - echo "jfs" >> $1/etc/filesystems 1.31 + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ 1.32 + echo "${PACKAGE#*-}" >> $1/etc/filesystems 1.33 depmod -a -b "$1/" $VERSION-slitaz 1.34 } 1.35 1.36 post_remove() 1.37 { 1.38 - sed -i '/^jfs$/d' $1/etc/filesystems 1.39 + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems 1.40 depmod -a $VERSION-slitaz 1.41 }