# HG changeset patch # User Pascal Bellard # Date 1242072479 -7200 # Node ID 4583873b6d8b3d91107c3bf378e0ae7ff587e7bd # Parent 69664636fac86076009fee4f9595625f4934a8d1 Add btrfs-progs linux-btrfs diff -r 69664636fac8 -r 4583873b6d8b btrfs-progs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/btrfs-progs/receipt Mon May 11 22:07:59 2009 +0200 @@ -0,0 +1,27 @@ +# SliTaz package receipt. + +PACKAGE="btrfs-progs" +VERSION="0.18" +CATEGORY="system-tools" +SHORT_DESC="Btrfs Filsystem user space tools." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://btrfs.wiki.kernel.org/index.php/Main_Page" +WGET_URL="http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/$TARBALL" +BUILD_DEPENDS="e2fsprogs-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make && + make DESTDIR=$PWD/_pkg prefix=/usr install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr +} + diff -r 69664636fac8 -r 4583873b6d8b linux-btrfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-btrfs/receipt Mon May 11 22:07:59 2009 +0200 @@ -0,0 +1,42 @@ +# SliTaz package receipt. + +PACKAGE="linux-btrfs" +VERSION="2.6.29.3" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel reiserfs module." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + path=lib/modules/$VERSION-slitaz/kernel + mkdir -p $fs/$path $fs/etc + export src + export _pkg + $src/list_modules.sh fs/${PACKAGE#*-} | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done + touch $fs/etc/filesystems +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems + chroot "$1/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems + depmod -a $VERSION-slitaz +} +