wok annotate linux-source/receipt @ rev 12239
ocsinventory-agent: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 09 15:13:59 2012 +0200 (2012-04-09) |
parents | 1d89aa1672da |
children | 6f536abe4f0b |
rev | line source |
---|---|
pascal@1093 | 1 # SliTaz package receipt. |
pascal@1093 | 2 |
pascal@1093 | 3 PACKAGE="linux-source" |
slaxemulator@8085 | 4 VERSION="2.6.37" |
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 { |
slaxemulator@7297 | 15 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
slaxemulator@7297 | 16 local AUFSDIR="aufs-${_AUFSVER}" |
slaxemulator@6977 | 17 mkdir -p $fs/usr/src/kernel-patches \ |
slaxemulator@6978 | 18 $fs/lib/modules/$VERSION-slitaz \ |
slaxemulator@6978 | 19 $fs/usr/bin |
slaxemulator@8681 | 20 cp -a $WOK/$WANTED/slitaz $fs/usr/src/kernel-patches |
slaxemulator@6975 | 21 cp -a stuff/buildtaz $fs/usr/src/kernel-patches/slitaz |
slaxemulator@6975 | 22 cp -a stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz |
slaxemulator@6975 | 23 cp -a stuff/get-linux-source $fs/usr/bin |
slaxemulator@6979 | 24 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source |
pascal@4630 | 25 # Copy Aufs2 source files |
slaxemulator@7202 | 26 if [ -d $WOK/$WANTED/$AUFSDIR ]; then |
slaxemulator@6975 | 27 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2 |
slaxemulator@7202 | 28 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \ |
slaxemulator@7202 | 29 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \ |
slaxemulator@6975 | 30 $fs/usr/src/kernel-patches/slitaz/aufs2 |
pascal@4630 | 31 fi |
slaxemulator@6977 | 32 ln -s /usr/src/linux-$VERSION \ |
pascal@4630 | 33 $fs/lib/modules/$VERSION-slitaz/source |
pascal@1093 | 34 } |
pascal@12112 | 35 |
pascal@12112 | 36 # Pre and post install commands for Tazpkg. |
pascal@12112 | 37 post_install() |
pascal@12112 | 38 { |
pascal@12112 | 39 cat <<EOT |
pascal@12112 | 40 Now you should get the linux kernel source files with : |
pascal@12112 | 41 |
pascal@12112 | 42 # get-linux-source |
pascal@12112 | 43 EOT |
pascal@12112 | 44 } |