wok-6.x annotate linux-ncpfs/receipt @ rev 2585
busybox/install: add -D support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 07 16:03:51 2009 +0000 (2009-04-07) |
parents | 532538d67b1c |
children | f306d126580e |
rev | line source |
---|---|
pascal@1030 | 1 # SliTaz package receipt. |
pascal@1030 | 2 |
pascal@1030 | 3 PACKAGE="linux-ncpfs" |
pascal@1030 | 4 VERSION="2.6.25.5" |
pascal@1030 | 5 CATEGORY="base-system" |
pascal@1030 | 6 SHORT_DESC="The Linux kernel ncpfs module." |
pascal@1030 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1030 | 8 WANTED="linux" |
pascal@1030 | 9 WEB_SITE="http://www.kernel.org/" |
pascal@2562 | 10 CONFIG_FILES="/etc/filesystems" |
pascal@1030 | 11 |
pascal@1030 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1030 | 13 genpkg_rules() |
pascal@1030 | 14 { |
pascal@1030 | 15 local path |
pascal@1030 | 16 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2562 | 17 mkdir -p $fs/$path $fs/etc |
pascal@1030 | 18 export src |
pascal@1030 | 19 export _pkg |
pascal@1030 | 20 $src/list_modules.sh fs/ncpfs | while read module; do |
pascal@1030 | 21 dir=$path/$(dirname $module) |
pascal@1030 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@1030 | 23 cp -a $_pkg/$path/$module $fs/$dir |
pascal@1030 | 24 done |
pascal@1030 | 25 } |
pascal@1030 | 26 |
pascal@1030 | 27 # Post install/remove commands for Tazpkg. |
pascal@1030 | 28 post_install() |
pascal@1030 | 29 { |
pascal@2562 | 30 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pascal@2562 | 31 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pascal@1030 | 32 depmod -a -b "$1/" $VERSION-slitaz |
pascal@1030 | 33 } |
pascal@1030 | 34 |
pascal@1030 | 35 post_remove() |
pascal@1030 | 36 { |
pascal@2562 | 37 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pascal@1030 | 38 depmod -a $VERSION-slitaz |
pascal@1030 | 39 } |