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