wok annotate linux-hfsplus/receipt @ rev 2562
declare /etc/filesystems
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 29 11:34:34 2009 +0000 (2009-03-29) |
parents | 0313887c948c |
children | f306d126580e |
rev | line source |
---|---|
pascal@2160 | 1 # SliTaz package receipt. |
pascal@2160 | 2 |
pascal@2160 | 3 PACKAGE="linux-hfsplus" |
pascal@2160 | 4 VERSION="2.6.25.5" |
pascal@2160 | 5 CATEGORY="base-system" |
pascal@2160 | 6 SHORT_DESC="The Linux kernel hfsplus module." |
pascal@2160 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2160 | 8 WANTED="linux" |
pascal@2160 | 9 WEB_SITE="http://www.kernel.org/" |
pascal@2562 | 10 CONFIG_FILES="/etc/filesystems" |
pascal@2160 | 11 |
pascal@2160 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2160 | 13 genpkg_rules() |
pascal@2160 | 14 { |
pascal@2160 | 15 local path |
pascal@2160 | 16 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2562 | 17 mkdir -p $fs/$path $fs/etc |
pascal@2160 | 18 export src |
pascal@2160 | 19 export _pkg |
pascal@2160 | 20 $src/list_modules.sh fs/hfsplus | while read module; do |
pascal@2160 | 21 dir=$path/$(dirname $module) |
pascal@2160 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2160 | 23 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2160 | 24 done |
pascal@2562 | 25 touch $fs/etc/filesystems |
pascal@2160 | 26 } |
pascal@2160 | 27 |
pascal@2160 | 28 # Post install/remove commands for Tazpkg. |
pascal@2160 | 29 post_install() |
pascal@2160 | 30 { |
pascal@2160 | 31 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pascal@2160 | 32 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pascal@2160 | 33 depmod -a -b "$1/" $VERSION-slitaz |
pascal@2160 | 34 } |
pascal@2160 | 35 |
pascal@2160 | 36 post_remove() |
pascal@2160 | 37 { |
pascal@2160 | 38 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pascal@2160 | 39 depmod -a $VERSION-slitaz |
pascal@2160 | 40 } |