wok-6.x annotate linux-logfs/receipt @ rev 5891

Up: tmux (1.3)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jul 22 08:08:04 2010 +0200 (2010-07-22)
parents
children 5355ffc461cf
rev   line source
pankso@5642 1 # SliTaz package receipt.
pankso@5642 2
pankso@5642 3 PACKAGE="linux-logfs"
pankso@5642 4 VERSION="2.6.34"
pankso@5642 5 CATEGORY="base-system"
pankso@5642 6 SHORT_DESC="The Linux kernel logfs module."
pankso@5642 7 MAINTAINER="devel@slitaz.org"
pankso@5642 8 DEPENDS="linux"
pankso@5642 9 WANTED="linux"
pankso@5642 10 WEB_SITE="http://www.kernel.org/"
pankso@5642 11 CONFIG_FILES="/etc/filesystems"
pankso@5642 12
pankso@5642 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5642 14 genpkg_rules()
pankso@5642 15 {
pankso@5642 16 local path
pankso@5642 17 path=lib/modules/$VERSION-slitaz/kernel
pankso@5642 18 mkdir -p $fs/$path $fs/etc
pankso@5642 19 export src
pankso@5642 20 export _pkg
pankso@5642 21 $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pankso@5642 22 dir=$path/$(dirname $module)
pankso@5642 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pankso@5642 24 cp -a $_pkg/$path/$module $fs/$dir
pankso@5642 25 done
pankso@5642 26 touch $fs/etc/filesystems
pankso@5642 27 }
pankso@5642 28
pankso@5642 29 # Post install/remove commands for Tazpkg.
pankso@5642 30 post_install()
pankso@5642 31 {
pankso@5642 32 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pankso@5642 33 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pankso@5642 34 chroot "$1/" depmod -a $VERSION-slitaz
pankso@5642 35 }
pankso@5642 36
pankso@5642 37 post_remove()
pankso@5642 38 {
pankso@5642 39 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
pankso@5642 40 depmod -a $VERSION-slitaz
pankso@5642 41 }
pankso@5642 42