wok-current diff linux-source/receipt @ 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 | |
children | 05c1d9e27c1f |
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 +