wok-next annotate linux-configfs/receipt @ rev 16578
Up: prosody (0.9.4) + port to ARM (prosody is in last PiMag, let build a private XMPP chat server)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 03 12:29:58 2014 +0200 (2014-05-03) |
parents | eb689de65d7e |
children | 08cf996a2307 |
rev | line source |
---|---|
pankso@5645 | 1 # SliTaz package receipt. |
pankso@5645 | 2 |
pankso@5645 | 3 PACKAGE="linux-configfs" |
pascal@15670 | 4 VERSION="3.2.53" |
pankso@5645 | 5 CATEGORY="base-system" |
pankso@5645 | 6 SHORT_DESC="The Linux kernel configfs module." |
pankso@5645 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
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@15855 | 18 path=lib/modules/$VERSION-slitaz/kernel |
pankso@5645 | 19 mkdir -p $fs/$path $fs/etc |
pankso@15855 | 20 export src install |
slaxemulator@9700 | 21 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do |
pankso@5645 | 22 dir=$path/$(dirname $module) |
pankso@5645 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 24 cp -a $install/$path/$module $fs/$dir |
pankso@5645 | 25 done |
pankso@5645 | 26 touch $fs/etc/filesystems |
pankso@5645 | 27 } |
pankso@5645 | 28 |
pankso@5645 | 29 # Post install/remove commands for Tazpkg. |
pankso@5645 | 30 post_install() |
pankso@5645 | 31 { |
pankso@5645 | 32 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pankso@5645 | 33 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pankso@15855 | 34 chroot "$root/" depmod -a $VERSION-slitaz |
pankso@5645 | 35 } |
pankso@5645 | 36 |
pankso@5645 | 37 post_remove() |
pankso@5645 | 38 { |
pankso@5645 | 39 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pankso@15855 | 40 chroot "$root/" depmod -a $VERSION-slitaz |
pankso@5645 | 41 } |
pankso@5645 | 42 |