wok-current annotate linux-source/receipt @ rev 12802
linux-source: fix path to url file
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri May 18 11:48:52 2012 +0000 (2012-05-18) |
parents | 6f536abe4f0b |
children | 593cb33c57e1 |
rev | line source |
---|---|
pascal@1093 | 1 # SliTaz package receipt. |
pascal@1093 | 2 |
pascal@1093 | 3 PACKAGE="linux-source" |
pankso@12285 | 4 VERSION="3.2.14" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@1093 | 6 CATEGORY="development" |
pascal@1093 | 7 SHORT_DESC="The Linux kernel source files." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@1093 | 9 WANTED="linux" |
pascal@1093 | 10 WEB_SITE="http://www.kernel.org/" |
MikeDSmith25@1128 | 11 DEPENDS="linux slitaz-toolchain ncurses-dev perl" |
pascal@1093 | 12 |
pascal@1093 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1093 | 14 genpkg_rules() |
pascal@1093 | 15 { |
slaxemulator@7297 | 16 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
slaxemulator@7297 | 17 local AUFSDIR="aufs-${_AUFSVER}" |
slaxemulator@6977 | 18 mkdir -p $fs/usr/src/kernel-patches \ |
pankso@12285 | 19 $fs/lib/modules/$BASEVER-slitaz \ |
slaxemulator@6978 | 20 $fs/usr/bin |
mojo@12802 | 21 cp -a $WOK/$WANTED/source/slitaz $fs/usr/src/kernel-patches |
pankso@12285 | 22 cp -a $stuff/buildtaz $fs/usr/src/kernel-patches/slitaz |
pankso@12285 | 23 cp -a $stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz |
pankso@12285 | 24 cp -a $stuff/get-linux-source $fs/usr/bin |
slaxemulator@6979 | 25 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source |
pascal@4630 | 26 # Copy Aufs2 source files |
slaxemulator@7202 | 27 if [ -d $WOK/$WANTED/$AUFSDIR ]; then |
slaxemulator@6975 | 28 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2 |
slaxemulator@7202 | 29 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \ |
slaxemulator@7202 | 30 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \ |
slaxemulator@6975 | 31 $fs/usr/src/kernel-patches/slitaz/aufs2 |
pascal@4630 | 32 fi |
slaxemulator@6977 | 33 ln -s /usr/src/linux-$VERSION \ |
pankso@12285 | 34 $fs/lib/modules/$BASEVER-slitaz/source |
pascal@1093 | 35 } |