wok-next annotate linux-source/receipt @ rev 6651
Added libgomp to blender depends. Its needed to run blender.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 10 21:19:42 2010 +0000 (2010-10-10) |
parents | 63937e3b2979 |
children | a1cd19a9e269 |
rev | line source |
---|---|
pascal@1093 | 1 # SliTaz package receipt. |
pascal@1093 | 2 |
pascal@1093 | 3 PACKAGE="linux-source" |
pankso@5640 | 4 VERSION="2.6.34" |
pascal@1093 | 5 CATEGORY="development" |
pascal@1093 | 6 SHORT_DESC="The Linux kernel source files." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@1093 | 8 WANTED="linux" |
pascal@1093 | 9 WEB_SITE="http://www.kernel.org/" |
MikeDSmith25@1128 | 10 DEPENDS="linux slitaz-toolchain ncurses-dev perl" |
pascal@1093 | 11 |
pascal@1093 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1093 | 13 genpkg_rules() |
pascal@1093 | 14 { |
pascal@4630 | 15 mkdir -p $fs/usr/src/linux-$VERSION-slitaz \ |
pascal@4630 | 16 $fs/lib/modules/$VERSION-slitaz/ |
pascal@4630 | 17 ln -s linux-$VERSION-slitaz $fs/usr/src/linux |
pascal@5951 | 18 cp -a $src/Module.symvers $fs/usr/src/linux-$VERSION-slitaz |
pascal@4630 | 19 cp -a $src/slitaz $fs/usr/src/linux-$VERSION-slitaz |
erjo@4639 | 20 cp -a stuff/buildtaz $fs/usr/src/linux-$VERSION-slitaz/slitaz |
erjo@4639 | 21 cp -a stuff/make-tazpkg.u $fs/usr/src/linux-$VERSION-slitaz/slitaz |
pascal@4630 | 22 # Copy Aufs2 source files |
pascal@4630 | 23 if [ -d $WOK/$WANTED/aufs2 ]; then |
pascal@4630 | 24 mkdir $fs/usr/src/linux-$VERSION-slitaz/slitaz/aufs2 |
pascal@4630 | 25 cp -a $WOK/$WANTED/aufs2/Documentation \ |
pascal@4630 | 26 $WOK/$WANTED/aufs2/fs $WOK/$WANTED/aufs2/include \ |
pascal@4630 | 27 $fs/usr/src/linux-$VERSION-slitaz/slitaz/aufs2 |
pascal@4630 | 28 fi |
pascal@4630 | 29 ln -s /usr/src/linux-$VERSION-slitaz \ |
pascal@4630 | 30 $fs/lib/modules/$VERSION-slitaz/source |
pascal@4630 | 31 ln -s /usr/src/linux-$VERSION-slitaz \ |
pascal@4630 | 32 $fs/lib/modules/$VERSION-slitaz/build |
pascal@1093 | 33 } |
pascal@1093 | 34 |
pascal@1093 | 35 # Post install/remove commands for Tazpkg. |
pascal@1093 | 36 post_install() |
pascal@1093 | 37 { |
pascal@1093 | 38 local url |
pascal@1093 | 39 local patch_file |
pascal@1093 | 40 cd $1/usr/src/ |
pascal@1093 | 41 url=$(cat linux-$VERSION-slitaz/slitaz/url) |
pascal@1093 | 42 wget -c $url |
pascal@1093 | 43 tar xjf $(basename $url) |
pascal@1093 | 44 mv linux-$VERSION-slitaz/slitaz linux-$VERSION |
pascal@1127 | 45 rm -rf linux-$VERSION-slitaz |
pascal@1093 | 46 mv linux-$VERSION linux-$VERSION-slitaz |
pascal@1093 | 47 cd linux-$VERSION-slitaz |
pascal@4630 | 48 cp -pa slitaz/aufs2/* . |
erjo@4639 | 49 # Add tazpkg support |
erjo@4639 | 50 if [ -d "scripts/package" ]; then |
erjo@4639 | 51 cp -pa slitaz/buildtaz scripts/package |
erjo@4639 | 52 patch -p1 -i slitaz/make-tazpkg.u |
erjo@4639 | 53 fi |
erjo@4639 | 54 |
pascal@1093 | 55 while read patch_file; do |
pascal@1093 | 56 echo "Apply $patch_file" |
pascal@1093 | 57 patch -p1 < slitaz/$patch_file |
pascal@1093 | 58 done < slitaz/patches |
pascal@3074 | 59 [ ! -f System.map ] && cp slitaz/config .config && |
pascal@4630 | 60 make oldconfig && make modules_prepare |
pascal@1127 | 61 cat <<EOT |
pascal@1127 | 62 ---- |
pascal@1127 | 63 To modify the kernel configuration: |
pascal@1127 | 64 $ cd /usr/src/linux-$VERSION-slitaz |
pascal@1127 | 65 $ make menuconfig |
pascal@1127 | 66 |
pascal@1127 | 67 To build the kernel and the modules: |
pascal@1127 | 68 $ cd /usr/src/linux-$VERSION-slitaz |
pascal@1127 | 69 $ make bzImage && make modules |
pascal@1127 | 70 |
pascal@1127 | 71 To install the new kernel and the modules: |
pascal@1127 | 72 $ make modules_install |
pascal@1127 | 73 $ cp -a arch/x86/boot/bzImage /boot/vmlinuz-$VERSION-slitaz |
pascal@1127 | 74 |
erjo@4639 | 75 To make a Slitaz package with the new kernel and the modules: |
erjo@4639 | 76 $ make tazpkg |
erjo@4639 | 77 |
pascal@1127 | 78 See /usr/src/linux-$VERSION-slitaz/README |
pascal@1127 | 79 ---- |
pascal@1127 | 80 EOT |
pascal@1093 | 81 } |
pascal@1093 | 82 |
pascal@1094 | 83 pre_remove() |
pascal@1094 | 84 { |
pascal@1127 | 85 rm $(basename $(cat /usr/src/linux-$VERSION-slitaz/slitaz/url)) 2> /dev/null || true |
pascal@1094 | 86 } |
pascal@1094 | 87 |
pascal@1093 | 88 post_remove() |
pascal@1093 | 89 { |
pascal@1093 | 90 rm -rf /usr/src/linux-$VERSION-slitaz |
pascal@1093 | 91 } |
pascal@1093 | 92 |
erjo@4639 | 93 |