wok-current rev 4251
Add: linux-aufs (aufs2 kernel module)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Sep 25 02:18:43 2009 +0200 (2009-09-25) |
parents | 9d341fda40fe |
children | cb80219b4f26 |
files | linux-aufs/receipt linux/receipt linux/stuff/linux-2.6.30.6-slitaz.config |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-aufs/receipt Fri Sep 25 02:18:43 2009 +0200 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-aufs" 1.7 +VERSION="2.6.30.6" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="The Linux kernel aufs2 module." 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +DEPENDS="linux" 1.12 +WANTED="linux" 1.13 +WEB_SITE="http://www.kernel.org/" 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 1.21 + export src 1.22 + export _pkg 1.23 + $src/slitaz/list_modules.sh fs/aufs | 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 +} 1.29 + 1.30 +# Post install/remove commands for Tazpkg. 1.31 +post_install() 1.32 +{ 1.33 + chroot "$1/" depmod -a $VERSION-slitaz 1.34 +} 1.35 + 1.36 +post_remove() 1.37 +{ 1.38 + depmod -a $VERSION-slitaz 1.39 +}
2.1 --- a/linux/receipt Fri Sep 25 02:17:07 2009 +0200 2.2 +++ b/linux/receipt Fri Sep 25 02:18:43 2009 +0200 2.3 @@ -5,7 +5,7 @@ 2.4 CATEGORY="base-system" 2.5 SHORT_DESC="The Linux kernel and modules." 2.6 DEPENDS="depmod" 2.7 -BUILD_DEPENDS="slitaz-toolchain perl" 2.8 +BUILD_DEPENDS="slitaz-toolchain perl git" 2.9 MAINTAINER="devel@slitaz.org" 2.10 TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.11 WEB_SITE="http://www.kernel.org/" 2.12 @@ -15,12 +15,19 @@ 2.13 # Rules to configure and make the package. 2.14 compile_rules() 2.15 { 2.16 + # Aufs2 from git repository 2.17 + if [ ! -d aufs2 ]; then 2.18 + git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2 2.19 + cd aufs2 && git checkout origin/aufs2-30 2.20 + cp -a Documentation fs include $src 2.21 + fi 2.22 cd $src 2.23 + # SliTaz db 2.24 rm -rf slitaz 2> /dev/null 2.25 mkdir slitaz 2.26 echo "$WGET_URL" > slitaz/url 2.27 cp ../stuff/gztazmod.sh ../stuff/list_modules.sh slitaz 2.28 - # lzma and misc patches from pascal 2.29 + # Misc patches from pascal 2.30 while read patch_file; do 2.31 echo "$patch_file" >> slitaz/patches 2.32 cp ../stuff/$patch_file slitaz/$patch_file 2.33 @@ -29,13 +36,16 @@ 2.34 continue 2.35 fi 2.36 echo "Apply $patch_file" 2.37 - patch -p1 < ../stuff/$patch_file || return 1 2.38 + patch -p1 < $patch_file || exit 1 2.39 touch done.$patch_file 2.40 done <<EOT 2.41 -$PACKAGE-utf8-$VERSION.u 2.42 -$PACKAGE-diff-$VERSION.u 2.43 -$PACKAGE-freeinitrd-$VERSION.u 2.44 -$PACKAGE-unlzma-$VERSION.u 2.45 +../stuff/$PACKAGE-utf8-$VERSION.u 2.46 +../stuff/$PACKAGE-diff-$VERSION.u 2.47 +../stuff/$PACKAGE-freeinitrd-$VERSION.u 2.48 +../stuff/$PACKAGE-unlzma-$VERSION.u 2.49 +../aufs2/aufs2-base.patch 2.50 +../aufs2/aufs2-kbuild.patch 2.51 +../aufs2/aufs2-standalone.patch 2.52 EOT 2.53 make mrproper 2.54 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config 2.55 @@ -115,3 +125,8 @@ 2.56 EOT 2.57 fi 2.58 } 2.59 + 2.60 +clean_wok() 2.61 +{ 2.62 + rm -rf aufs2 2.63 +}
3.1 --- a/linux/stuff/linux-2.6.30.6-slitaz.config Fri Sep 25 02:17:07 2009 +0200 3.2 +++ b/linux/stuff/linux-2.6.30.6-slitaz.config Fri Sep 25 02:18:43 2009 +0200 3.3 @@ -1,7 +1,7 @@ 3.4 # 3.5 # Automatically generated make config: don't edit 3.6 # Linux kernel version: 2.6.30.6 3.7 -# Wed Sep 9 22:11:48 2009 3.8 +# Fri Sep 25 01:17:11 2009 3.9 # 3.10 # CONFIG_64BIT is not set 3.11 CONFIG_X86_32=y 3.12 @@ -3006,6 +3006,19 @@ 3.13 # CONFIG_ROMFS_FS is not set 3.14 # CONFIG_SYSV_FS is not set 3.15 # CONFIG_UFS_FS is not set 3.16 +CONFIG_AUFS_FS=m 3.17 +CONFIG_AUFS_BRANCH_MAX_127=y 3.18 +# CONFIG_AUFS_BRANCH_MAX_511 is not set 3.19 +# CONFIG_AUFS_BRANCH_MAX_1023 is not set 3.20 +# CONFIG_AUFS_BRANCH_MAX_32767 is not set 3.21 +# CONFIG_AUFS_HINOTIFY is not set 3.22 +# CONFIG_AUFS_EXPORT is not set 3.23 +# CONFIG_AUFS_RDU is not set 3.24 +# CONFIG_AUFS_SHWH is not set 3.25 +# CONFIG_AUFS_BR_RAMFS is not set 3.26 +# CONFIG_AUFS_BR_FUSE is not set 3.27 +# CONFIG_AUFS_DEBUG is not set 3.28 +CONFIG_AUFS_BDEV_LOOP=y 3.29 # CONFIG_NILFS2_FS is not set 3.30 CONFIG_NETWORK_FILESYSTEMS=y 3.31 CONFIG_NFS_FS=y