wok rev 1093
Add linux-source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 17 09:13:52 2008 +0000 (2008-07-17) |
parents | 201bec7c962f |
children | 05c1d9e27c1f |
files | linux-source/receipt linux/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-source/receipt Thu Jul 17 09:13:52 2008 +0000 1.3 @@ -0,0 +1,47 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-source" 1.7 +VERSION="2.6.25.5" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Linux kernel source files." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WANTED="linux" 1.12 +WEB_SITE="http://www.kernel.org/" 1.13 +DEPENDS="linux slitaz-toolchain" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + mkdir -p $fs/usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/ 1.19 + ln -s linux-$VERSION-slitaz $fs/usr/src/linux 1.20 + cp -a $src/slitaz $fs/usr/src/linux-$VERSION-slitaz 1.21 + ln -s /usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/source 1.22 + ln -s /usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/build 1.23 +} 1.24 + 1.25 +# Post install/remove commands for Tazpkg. 1.26 +post_install() 1.27 +{ 1.28 + local url 1.29 + local patch_file 1.30 + cd $1/usr/src/ 1.31 + url=$(cat linux-$VERSION-slitaz/slitaz/url) 1.32 + wget -c $url 1.33 + tar xjf $(basename $url) 1.34 + mv linux-$VERSION-slitaz/slitaz linux-$VERSION 1.35 + rmdir linux-$VERSION-slitaz 1.36 + mv linux-$VERSION linux-$VERSION-slitaz 1.37 + cd linux-$VERSION-slitaz 1.38 + while read patch_file; do 1.39 + echo "Apply $patch_file" 1.40 + patch -p1 < slitaz/$patch_file 1.41 + done < slitaz/patches 1.42 + cp slitaz/config .config 1.43 +} 1.44 + 1.45 +post_remove() 1.46 +{ 1.47 + rm $(basename $(cat /usr/src/linux-$VERSION-slitaz/slitaz/url)) 1.48 + rm -rf /usr/src/linux-$VERSION-slitaz 1.49 +} 1.50 +
2.1 --- a/linux/receipt Thu Jul 17 02:00:06 2008 +0200 2.2 +++ b/linux/receipt Thu Jul 17 09:13:52 2008 +0000 2.3 @@ -13,10 +13,15 @@ 2.4 compile_rules() 2.5 { 2.6 cd $src 2.7 + mkdir slitaz 2.8 + echo "$WGET_URL" > slitaz/url 2.9 + cp ../stuff/gztazmod.sh ../stuff/list_modules.sh slitaz 2.10 # lzma and misc patches from pascal 2.11 while read patch_file; do 2.12 echo "Apply $patch_file" 2.13 patch -p1 < ../stuff/$patch_file || return 1 2.14 + echo "$patch_file" >> slitaz/patches 2.15 + cp ../stuff/$patch_file slitaz/$patch_file 2.16 done <<EOT 2.17 $PACKAGE-lzma-$VERSION.u 2.18 $PACKAGE-utf8-$VERSION.u 2.19 @@ -26,6 +31,7 @@ 2.20 make mrproper 2.21 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config 2.22 make oldconfig 2.23 + ln .config slitaz/config 2.24 make bzImage 2.25 make modules 2.26 make INSTALL_MOD_PATH=$PWD/_pkg modules_install