wok annotate linux-ncpfs/receipt @ rev 3886

perdition: ensure pidfile are valid
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 12 18:13:06 2009 +0200 (2009-08-12)
parents 9059daaaa23d
children bea1fdc6a26e
rev   line source
pascal@1030 1 # SliTaz package receipt.
pascal@1030 2
pascal@1030 3 PACKAGE="linux-ncpfs"
pankso@3864 4 VERSION="2.6.30.4"
pascal@1030 5 CATEGORY="base-system"
pascal@1030 6 SHORT_DESC="The Linux kernel ncpfs module."
pankso@3864 7 MAINTAINER="devel@slitaz.org"
pascal@2926 8 DEPENDS="linux"
pascal@1030 9 WANTED="linux"
pascal@1030 10 WEB_SITE="http://www.kernel.org/"
pascal@2562 11 CONFIG_FILES="/etc/filesystems"
pascal@1030 12
pascal@1030 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1030 14 genpkg_rules()
pascal@1030 15 {
pascal@1030 16 local path
pascal@1030 17 path=lib/modules/$VERSION-slitaz/kernel
pascal@2562 18 mkdir -p $fs/$path $fs/etc
pascal@1030 19 export src
pascal@1030 20 export _pkg
pascal@1030 21 $src/list_modules.sh fs/ncpfs | while read module; do
pascal@1030 22 dir=$path/$(dirname $module)
pascal@1030 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@1030 24 cp -a $_pkg/$path/$module $fs/$dir
pascal@1030 25 done
pascal@2990 26 touch $fs/etc/filesystems
pascal@1030 27 }
pascal@1030 28
pascal@1030 29 # Post install/remove commands for Tazpkg.
pascal@1030 30 post_install()
pascal@1030 31 {
pascal@2562 32 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pascal@2562 33 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pascal@2990 34 chroot "$1/" depmod -a $VERSION-slitaz
pascal@1030 35 }
pascal@1030 36
pascal@1030 37 post_remove()
pascal@1030 38 {
pascal@2562 39 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
pascal@1030 40 depmod -a $VERSION-slitaz
pascal@1030 41 }
pascal@2990 42