wok-6.x rev 3002

Add btrfs-progs linux-btrfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 11 22:07:59 2009 +0200 (2009-05-11)
parents 69664636fac8
children fda6fccb25ec
files btrfs-progs/receipt linux-btrfs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/btrfs-progs/receipt	Mon May 11 22:07:59 2009 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="btrfs-progs"
     1.7 +VERSION="0.18"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Btrfs Filsystem user space tools."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://btrfs.wiki.kernel.org/index.php/Main_Page"
    1.13 +WGET_URL="http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/$TARBALL"
    1.14 +BUILD_DEPENDS="e2fsprogs-dev"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	make &&
    1.21 +	make DESTDIR=$PWD/_pkg prefix=/usr install
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	mkdir -p $fs/usr
    1.28 +	cp -a $_pkg/usr/bin $fs/usr
    1.29 +}
    1.30 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/linux-btrfs/receipt	Mon May 11 22:07:59 2009 +0200
     2.3 @@ -0,0 +1,42 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="linux-btrfs"
     2.7 +VERSION="2.6.29.3"
     2.8 +CATEGORY="base-system"
     2.9 +SHORT_DESC="The Linux kernel reiserfs module."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +DEPENDS="linux"
    2.12 +WANTED="linux"
    2.13 +WEB_SITE="http://www.kernel.org/"
    2.14 +CONFIG_FILES="/etc/filesystems"
    2.15 +
    2.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.17 +genpkg_rules()
    2.18 +{
    2.19 +    local path
    2.20 +    path=lib/modules/$VERSION-slitaz/kernel
    2.21 +    mkdir -p $fs/$path $fs/etc
    2.22 +    export src
    2.23 +    export _pkg
    2.24 +    $src/list_modules.sh fs/${PACKAGE#*-} | while read module; do
    2.25 +    	dir=$path/$(dirname $module)
    2.26 +    	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    2.27 +        cp -a $_pkg/$path/$module $fs/$dir
    2.28 +    done
    2.29 +    touch $fs/etc/filesystems
    2.30 +}
    2.31 +
    2.32 +# Post install/remove commands for Tazpkg.
    2.33 +post_install()
    2.34 +{
    2.35 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    2.36 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    2.37 +	chroot "$1/" depmod -a $VERSION-slitaz
    2.38 +}
    2.39 +
    2.40 +post_remove()
    2.41 +{
    2.42 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    2.43 +	depmod -a $VERSION-slitaz
    2.44 +}
    2.45 +