wok annotate linux-configfs/receipt @ rev 14657

Normalize LICENSE according to wok/licenses package (bsd part)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 05 16:21:04 2013 +0200 (2013-06-05)
parents 416fab3c90c0
children 051931e905b0
rev   line source
pankso@5645 1 # SliTaz package receipt.
pankso@5645 2
pankso@5645 3 PACKAGE="linux-configfs"
pascal@14175 4 VERSION="3.2.40"
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"
pascal@14657 9 LICENSE="GPL2"
pankso@5645 10 DEPENDS="linux"
pankso@5645 11 WANTED="linux"
pankso@5645 12 WEB_SITE="http://www.kernel.org/"
pankso@5645 13 CONFIG_FILES="/etc/filesystems"
pankso@5645 14
pankso@5645 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5645 16 genpkg_rules()
pankso@5645 17 {
pankso@5645 18 local path
pankso@12285 19 path=lib/modules/$BASEVER-slitaz/kernel
pankso@5645 20 mkdir -p $fs/$path $fs/etc
pankso@5645 21 export src
pankso@5645 22 export _pkg
slaxemulator@9700 23 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pankso@5645 24 dir=$path/$(dirname $module)
pankso@5645 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pankso@5645 26 cp -a $_pkg/$path/$module $fs/$dir
pankso@5645 27 done
pankso@5645 28 touch $fs/etc/filesystems
pankso@5645 29 }
pankso@5645 30
pankso@5645 31 # Post install/remove commands for Tazpkg.
pankso@5645 32 post_install()
pankso@5645 33 {
pankso@5645 34 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pankso@5645 35 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pankso@12285 36 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@5645 37 }
pankso@5645 38
pankso@5645 39 post_remove()
pankso@5645 40 {
pankso@5645 41 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
pankso@12285 42 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@5645 43 }
pankso@5645 44