wok-tiny rev 31

Add module-reiserfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 11:46:35 2011 +0100 (2011-02-03)
parents 84572d9bb00f
children 703539c8a5f6
files module-reiserfs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/module-reiserfs/receipt	Thu Feb 03 11:46:35 2011 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="module-reiserfs"
     1.7 +VERSION="2.6.37"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Kernel module for the reiserfs filesystem"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://mirror.slitaz.org/pizza/tiny/"
    1.12 +WANTED="kernel-modular"
    1.13 +CONFIG_FILES="/etc/filesystems"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	local path
    1.19 +	path=lib/modules/$VERSION-slitaz/kernel
    1.20 +	mkdir -p $fs/$path $fs/etc
    1.21 +	export src=$WOK/$WANTED/linux-$VERSION
    1.22 +	export _pkg=$src/_pkg
    1.23 +	$src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do
    1.24 +		dir=$path/$(dirname $module)
    1.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.26 +		cp -a $_pkg/$path/$module $fs/$dir
    1.27 +	done
    1.28 +	touch $fs/etc/filesystems
    1.29 +}
    1.30 +
    1.31 +# Post install/remove commands for Tazpkg.
    1.32 +post_install()
    1.33 +{
    1.34 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    1.35 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    1.36 +	chroot "$1/" depmod -a $VERSION-slitaz
    1.37 +}