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