# HG changeset patch # User Christophe Lincoln # Date 1253837923 -7200 # Node ID 3681131f240a95a46fff7519fbc07f6cd05cca52 # Parent 9d341fda40fe61210c8edc00c0d355426bd468ff Add: linux-aufs (aufs2 kernel module) diff -r 9d341fda40fe -r 3681131f240a linux-aufs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-aufs/receipt Fri Sep 25 02:18:43 2009 +0200 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="linux-aufs" +VERSION="2.6.30.6" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel aufs2 module." +MAINTAINER="devel@slitaz.org" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + path=lib/modules/$VERSION-slitaz/kernel + mkdir -p $fs/$path + export src + export _pkg + $src/slitaz/list_modules.sh fs/aufs | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + chroot "$1/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + depmod -a $VERSION-slitaz +} diff -r 9d341fda40fe -r 3681131f240a linux/receipt --- a/linux/receipt Fri Sep 25 02:17:07 2009 +0200 +++ b/linux/receipt Fri Sep 25 02:18:43 2009 +0200 @@ -5,7 +5,7 @@ CATEGORY="base-system" SHORT_DESC="The Linux kernel and modules." DEPENDS="depmod" -BUILD_DEPENDS="slitaz-toolchain perl" +BUILD_DEPENDS="slitaz-toolchain perl git" MAINTAINER="devel@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.kernel.org/" @@ -15,12 +15,19 @@ # Rules to configure and make the package. compile_rules() { + # Aufs2 from git repository + if [ ! -d aufs2 ]; then + git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2 + cd aufs2 && git checkout origin/aufs2-30 + cp -a Documentation fs include $src + fi cd $src + # SliTaz db rm -rf slitaz 2> /dev/null mkdir slitaz echo "$WGET_URL" > slitaz/url cp ../stuff/gztazmod.sh ../stuff/list_modules.sh slitaz - # lzma and misc patches from pascal + # Misc patches from pascal while read patch_file; do echo "$patch_file" >> slitaz/patches cp ../stuff/$patch_file slitaz/$patch_file @@ -29,13 +36,16 @@ continue fi echo "Apply $patch_file" - patch -p1 < ../stuff/$patch_file || return 1 + patch -p1 < $patch_file || exit 1 touch done.$patch_file done <