wok-6.x view linux-libre-dlm/receipt @ rev 11183

Up: pam to 1.1.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 03 00:28:41 2011 +0000 (2011-11-03)
parents
children 03a6791abff6
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-dlm"
4 VERSION="2.6.37-libre"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel dlmfs module."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 PROVIDE="linux-dlm"
9 DEPENDS="linux-libre"
10 WANTED="linux-libre"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
12 CONFIG_FILES="/etc/filesystems"
14 # Modules paths and list
15 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
16 MODULES="fs/dlm/dlm.ko.gz"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p ${fs}${MOD_PATH} $fs/etc
22 for module in $MODULES
23 do
24 dir=$MOD_PATH/$(dirname $module)
25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
26 cp -a $_pkg/$MOD_PATH/$module $fs/$dir
27 done
28 touch $fs/etc/filesystems
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
35 echo "${PACKAGE##*-}" >> $1/etc/filesystems
36 chroot "$1/" depmod -a $VERSION-slitaz
37 }
39 post_remove()
40 {
41 sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
42 chroot "$1/" depmod -a $VERSION-slitaz
43 }