wok-6.x annotate linux-configfs/receipt @ rev 12372
Up: libcroco to 0.6.4.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Apr 19 21:53:32 2012 +0000 (2012-04-19) |
parents | d1768332cee0 |
children | 416fab3c90c0 |
rev | line source |
---|---|
pankso@5645 | 1 # SliTaz package receipt. |
pankso@5645 | 2 |
pankso@5645 | 3 PACKAGE="linux-configfs" |
pankso@12285 | 4 VERSION="3.2.14" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pankso@5645 | 6 CATEGORY="base-system" |
pankso@5645 | 7 SHORT_DESC="The Linux kernel configfs module." |
pankso@5645 | 8 MAINTAINER="devel@slitaz.org" |
pankso@5645 | 9 DEPENDS="linux" |
pankso@5645 | 10 WANTED="linux" |
pankso@5645 | 11 WEB_SITE="http://www.kernel.org/" |
pankso@5645 | 12 CONFIG_FILES="/etc/filesystems" |
pankso@5645 | 13 |
pankso@5645 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5645 | 15 genpkg_rules() |
pankso@5645 | 16 { |
pankso@5645 | 17 local path |
pankso@12285 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
pankso@5645 | 19 mkdir -p $fs/$path $fs/etc |
pankso@5645 | 20 export src |
pankso@5645 | 21 export _pkg |
slaxemulator@9700 | 22 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do |
pankso@5645 | 23 dir=$path/$(dirname $module) |
pankso@5645 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pankso@5645 | 25 cp -a $_pkg/$path/$module $fs/$dir |
pankso@5645 | 26 done |
pankso@5645 | 27 touch $fs/etc/filesystems |
pankso@5645 | 28 } |
pankso@5645 | 29 |
pankso@5645 | 30 # Post install/remove commands for Tazpkg. |
pankso@5645 | 31 post_install() |
pankso@5645 | 32 { |
pankso@5645 | 33 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pankso@5645 | 34 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pankso@12285 | 35 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5645 | 36 } |
pankso@5645 | 37 |
pankso@5645 | 38 post_remove() |
pankso@5645 | 39 { |
pankso@5645 | 40 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pankso@12285 | 41 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5645 | 42 } |
pankso@5645 | 43 |