wok-6.x annotate linux-dlm/receipt @ rev 18296
Up linux (3.2.71)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 17 11:03:13 2015 +0200 (2015-08-17) |
parents | db5b03f42dd9 |
children | 9e01bc6321ea |
rev | line source |
---|---|
pankso@5660 | 1 # SliTaz package receipt. |
pankso@5660 | 2 |
pankso@5660 | 3 PACKAGE="linux-dlm" |
pascal@18296 | 4 VERSION="3.2.71" |
pankso@5660 | 5 CATEGORY="base-system" |
pankso@5660 | 6 SHORT_DESC="The Linux kernel dlmfs module." |
pankso@5660 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pankso@5660 | 9 DEPENDS="linux" |
pankso@5660 | 10 WANTED="linux" |
pankso@5660 | 11 WEB_SITE="http://www.kernel.org/" |
pankso@5660 | 12 CONFIG_FILES="/etc/filesystems" |
pankso@5660 | 13 |
pankso@5660 | 14 # Modules paths and list |
pankso@15855 | 15 MOD_PATH="lib/modules/$VERSION-slitaz/kernel" |
pascal@12638 | 16 MODULES="fs/dlm/dlm.ko.xz" |
pankso@5660 | 17 |
pankso@5660 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5660 | 19 genpkg_rules() |
pankso@5660 | 20 { |
pankso@12285 | 21 mkdir -p ${fs}/${MOD_PATH} $fs/etc |
pankso@5660 | 22 for module in $MODULES |
pankso@5660 | 23 do |
pankso@5660 | 24 dir=$MOD_PATH/$(dirname $module) |
pankso@5660 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 26 cp -a $install/$MOD_PATH/$module $fs/$dir |
pankso@5660 | 27 done |
pankso@5660 | 28 touch $fs/etc/filesystems |
pankso@5660 | 29 } |
pankso@5660 | 30 |
pankso@5660 | 31 # Post install/remove commands for Tazpkg. |
pankso@5660 | 32 post_install() |
pankso@5660 | 33 { |
pankso@5660 | 34 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pankso@5660 | 35 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pankso@15855 | 36 chroot "$root/" depmod -a $VERSION-slitaz |
pankso@5660 | 37 } |
pankso@5660 | 38 |
pankso@5660 | 39 post_remove() |
pankso@5660 | 40 { |
pankso@5660 | 41 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pankso@15855 | 42 chroot "$root/" depmod -a $VERSION-slitaz |
pankso@5660 | 43 } |
pankso@5660 | 44 |