wok annotate linux-hfsplus/receipt @ rev 9404
Up: slitaz-mercurial-style to 1.0.7. You didn't tag. Also no need for high jumps since it will make everything else 2.0.x for linearer versioning.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Mar 27 18:50:59 2011 +0000 (2011-03-27) |
parents | 03d4663c81fa |
children | d1768332cee0 |
rev | line source |
---|---|
pascal@2160 | 1 # SliTaz package receipt. |
pascal@2160 | 2 |
pascal@2160 | 3 PACKAGE="linux-hfsplus" |
slaxemulator@8085 | 4 VERSION="2.6.37" |
pascal@2160 | 5 CATEGORY="base-system" |
pascal@2160 | 6 SHORT_DESC="The Linux kernel hfsplus module." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2160 | 9 WANTED="linux" |
pascal@2160 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2562 | 11 CONFIG_FILES="/etc/filesystems" |
pascal@2160 | 12 |
pascal@2160 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2160 | 14 genpkg_rules() |
pascal@2160 | 15 { |
pascal@2160 | 16 local path |
pascal@2160 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2562 | 18 mkdir -p $fs/$path $fs/etc |
pascal@2160 | 19 export src |
pascal@2160 | 20 export _pkg |
slaxemulator@8681 | 21 $WOK/$WANTED/stuff/list_modules.sh fs/hfsplus | while read module; do |
pascal@2160 | 22 dir=$path/$(dirname $module) |
pascal@2160 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2160 | 24 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2160 | 25 done |
pascal@2562 | 26 touch $fs/etc/filesystems |
pascal@2160 | 27 } |
pascal@2160 | 28 |
pascal@2160 | 29 # Post install/remove commands for Tazpkg. |
pascal@2160 | 30 post_install() |
pascal@2160 | 31 { |
pascal@2160 | 32 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pascal@2160 | 33 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pascal@2990 | 34 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2160 | 35 } |
pascal@2160 | 36 |
pascal@2160 | 37 post_remove() |
pascal@2160 | 38 { |
pascal@2160 | 39 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
slaxemulator@8681 | 40 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2160 | 41 } |