# HG changeset patch # User Pascal Bellard # Date 1233996192 0 # Node ID 0313887c948c8a9be354402c4d6b3c095627a9b4 # Parent 6d87d79f7d77d03beab3a2ba1afe01f081583399 Add linux-hfsplus diff -r 6d87d79f7d77 -r 0313887c948c linux-hfsplus/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-hfsplus/receipt Sat Feb 07 08:43:12 2009 +0000 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="linux-hfsplus" +VERSION="2.6.25.5" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel hfsplus module." +MAINTAINER="pascal.bellard@slitaz.org" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + path=lib/modules/$VERSION-slitaz/kernel + mkdir -p $fs/$path + export src + export _pkg + $src/list_modules.sh fs/hfsplus | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems + depmod -a -b "$1/" $VERSION-slitaz +} + +post_remove() +{ + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems + depmod -a $VERSION-slitaz +}