# HG changeset patch # User Christophe Lincoln # Date 1275074067 -7200 # Node ID 2857eaf946b344b2ba29f3b67ed056a6c3c814bb # Parent c5457be0dfefeac9e4db75faf527eabda78dac0b Add: linux-logfs diff -r c5457be0dfef -r 2857eaf946b3 linux-logfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-logfs/receipt Fri May 28 21:14:27 2010 +0200 @@ -0,0 +1,42 @@ +# SliTaz package receipt. + +PACKAGE="linux-logfs" +VERSION="2.6.34" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel logfs module." +MAINTAINER="devel@slitaz.org" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + path=lib/modules/$VERSION-slitaz/kernel + mkdir -p $fs/$path $fs/etc + export src + export _pkg + $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done + touch $fs/etc/filesystems +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems + chroot "$1/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems + depmod -a $VERSION-slitaz +} +