wok diff linux-exofs/receipt @ rev 17939
partimage: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 15 09:53:08 2015 +0200 (2015-04-15) |
parents | |
children | 08cf996a2307 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-exofs/receipt Wed Apr 15 09:53:08 2015 +0200 1.3 @@ -0,0 +1,42 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-exofs" 1.7 +VERSION="3.2.53" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="The Linux kernel OSD based file system module." 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +DEPENDS="linux" 1.13 +WANTED="linux" 1.14 +WEB_SITE="http://www.kernel.org/" 1.15 +CONFIG_FILES="/etc/filesystems" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + local path 1.21 + path=lib/modules/$VERSION-slitaz/kernel 1.22 + mkdir -p $fs/$path $fs/etc 1.23 + export src install 1.24 + $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do 1.25 + dir=$path/$(dirname $module) 1.26 + [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.27 + cp -a $install/$path/$module $fs/$dir 1.28 + done 1.29 + touch $fs/etc/filesystems 1.30 +} 1.31 + 1.32 +# Post install/remove commands for Tazpkg. 1.33 +post_install() 1.34 +{ 1.35 + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ 1.36 + echo "${PACKAGE#*-}" >> $1/etc/filesystems 1.37 + chroot "$root/" depmod -a $VERSION-slitaz 1.38 +} 1.39 + 1.40 +post_remove() 1.41 +{ 1.42 + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems 1.43 + chroot "$root/" depmod -a $VERSION-slitaz 1.44 +} 1.45 +