wok-next annotate linux-dlm/receipt @ rev 15385

ipxe: add local boot
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 26 10:44:25 2013 +0000 (2013-10-26)
parents 416fab3c90c0
children 051931e905b0
rev   line source
pankso@5660 1 # SliTaz package receipt.
pankso@5660 2
pankso@5660 3 PACKAGE="linux-dlm"
pascal@14175 4 VERSION="3.2.40"
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
pankso@5660 27 cp -a $_pkg/$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