wok-next view linux64-dlm/receipt @ rev 15466
asterisk: add some addons
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 08 09:51:52 2013 +0000 (2013-11-08) |
parents | 416fab3c90c0 |
children | 051931e905b0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-dlm"
4 VERSION="3.2.40"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="The Linux kernel dlmfs module."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 DEPENDS="linux64"
11 WANTED="linux"
12 PROVIDE="linux-dlm"
13 WEB_SITE="http://www.kernel.org/"
14 CONFIG_FILES="/etc/filesystems"
16 # Modules paths and list
17 MOD_PATH="lib/modules/$BASEVER-slitaz/kernel"
18 MODULES="fs/dlm/dlm.ko.xz"
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 _pkg=$_pkg/linux64
24 mkdir -p ${fs}/${MOD_PATH} $fs/etc
25 for module in $MODULES
26 do
27 dir=$MOD_PATH/$(dirname $module)
28 [ -d $fs/$dir ] || mkdir -p $fs/$dir
29 cp -a $_pkg/$MOD_PATH/$module $fs/$dir
30 done
31 touch $fs/etc/filesystems
32 }
34 # Post install/remove commands for Tazpkg.
35 post_install()
36 {
37 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
38 echo "${PACKAGE#*-}" >> $1/etc/filesystems
39 chroot "$1/" depmod -a $BASEVER-slitaz
40 }
42 post_remove()
43 {
44 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
45 chroot "$1/" depmod -a $BASEVER-slitaz
46 }