wok-6.x annotate linux-logfs/receipt @ rev 15603
Use install instead of _pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 10:39:07 2013 +0000 (2013-12-06) |
parents | ad59999b3fce |
children | eb689de65d7e |
rev | line source |
---|---|
pankso@5642 | 1 # SliTaz package receipt. |
pankso@5642 | 2 |
pankso@5642 | 3 PACKAGE="linux-logfs" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pankso@5642 | 6 CATEGORY="base-system" |
pankso@5642 | 7 SHORT_DESC="The Linux kernel logfs module." |
pankso@5642 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
pankso@5642 | 10 DEPENDS="linux" |
pankso@5642 | 11 WANTED="linux" |
pankso@5642 | 12 WEB_SITE="http://www.kernel.org/" |
pankso@5642 | 13 CONFIG_FILES="/etc/filesystems" |
pankso@5642 | 14 |
pankso@5642 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5642 | 16 genpkg_rules() |
pankso@5642 | 17 { |
pankso@5642 | 18 local path |
pankso@12285 | 19 path=lib/modules/$BASEVER-slitaz/kernel |
pankso@5642 | 20 mkdir -p $fs/$path $fs/etc |
pankso@5642 | 21 export src |
pankso@5642 | 22 export _pkg |
slaxemulator@9700 | 23 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do |
pankso@5642 | 24 dir=$path/$(dirname $module) |
pankso@5642 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 26 cp -a $install/$path/$module $fs/$dir |
pankso@5642 | 27 done |
pankso@5642 | 28 touch $fs/etc/filesystems |
pankso@5642 | 29 } |
pankso@5642 | 30 |
pankso@5642 | 31 # Post install/remove commands for Tazpkg. |
pankso@5642 | 32 post_install() |
pankso@5642 | 33 { |
pankso@5642 | 34 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pankso@5642 | 35 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pankso@12285 | 36 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5642 | 37 } |
pankso@5642 | 38 |
pankso@5642 | 39 post_remove() |
pankso@5642 | 40 { |
pankso@5642 | 41 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pankso@12285 | 42 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5642 | 43 } |
pankso@5642 | 44 |