wok-stable diff linux/receipt @ rev 4269
linux: list_modules.sh should be bash compatible
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 25 20:04:15 2009 +0200 (2009-09-25) |
parents | 7589496c772c |
children | e8d2c0b1111b |
line diff
1.1 --- a/linux/receipt Wed Sep 09 23:20:53 2009 +0200 1.2 +++ b/linux/receipt Fri Sep 25 20:04:15 2009 +0200 1.3 @@ -5,7 +5,7 @@ 1.4 CATEGORY="base-system" 1.5 SHORT_DESC="The Linux kernel and modules." 1.6 DEPENDS="depmod" 1.7 -BUILD_DEPENDS="slitaz-toolchain perl" 1.8 +BUILD_DEPENDS="slitaz-toolchain perl git" 1.9 MAINTAINER="devel@slitaz.org" 1.10 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.11 WEB_SITE="http://www.kernel.org/" 1.12 @@ -15,12 +15,19 @@ 1.13 # Rules to configure and make the package. 1.14 compile_rules() 1.15 { 1.16 + # Aufs2 from git repository 1.17 + if [ ! -d aufs2 ]; then 1.18 + git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2 1.19 + cd aufs2 && git checkout origin/aufs2-30 1.20 + cp -a Documentation fs include $src 1.21 + fi 1.22 cd $src 1.23 + # SliTaz db 1.24 rm -rf slitaz 2> /dev/null 1.25 mkdir slitaz 1.26 echo "$WGET_URL" > slitaz/url 1.27 cp ../stuff/gztazmod.sh ../stuff/list_modules.sh slitaz 1.28 - # lzma and misc patches from pascal 1.29 + # Misc patches from pascal 1.30 while read patch_file; do 1.31 echo "$patch_file" >> slitaz/patches 1.32 cp ../stuff/$patch_file slitaz/$patch_file 1.33 @@ -29,13 +36,16 @@ 1.34 continue 1.35 fi 1.36 echo "Apply $patch_file" 1.37 - patch -p1 < ../stuff/$patch_file || return 1 1.38 + patch -p1 < $patch_file || exit 1 1.39 touch done.$patch_file 1.40 done <<EOT 1.41 -$PACKAGE-utf8-$VERSION.u 1.42 -$PACKAGE-diff-$VERSION.u 1.43 -$PACKAGE-freeinitrd-$VERSION.u 1.44 -$PACKAGE-unlzma-$VERSION.u 1.45 +../stuff/$PACKAGE-utf8-$VERSION.u 1.46 +../stuff/$PACKAGE-diff-$VERSION.u 1.47 +../stuff/$PACKAGE-freeinitrd-$VERSION.u 1.48 +../stuff/$PACKAGE-unlzma-$VERSION.u 1.49 +../aufs2/aufs2-base.patch 1.50 +../aufs2/aufs2-kbuild.patch 1.51 +../aufs2/aufs2-standalone.patch 1.52 EOT 1.53 make mrproper 1.54 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config 1.55 @@ -115,3 +125,8 @@ 1.56 EOT 1.57 fi 1.58 } 1.59 + 1.60 +clean_wok() 1.61 +{ 1.62 + rm -rf aufs2 1.63 +}