wok-next annotate linux-source/receipt @ rev 15405
Up: dmsetup (2.02.98)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 21:29:23 2013 +0100 (2013-11-02) |
parents | 416fab3c90c0 |
children | eb689de65d7e |
rev | line source |
---|---|
pascal@1093 | 1 # SliTaz package receipt. |
pascal@1093 | 2 |
pascal@1093 | 3 PACKAGE="linux-source" |
pascal@14175 | 4 VERSION="3.2.40" |
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@14657 | 9 LICENSE="GPL2" |
pascal@1093 | 10 WANTED="linux" |
pascal@1093 | 11 WEB_SITE="http://www.kernel.org/" |
MikeDSmith25@1128 | 12 DEPENDS="linux slitaz-toolchain ncurses-dev perl" |
pascal@1093 | 13 |
pascal@1093 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1093 | 15 genpkg_rules() |
pascal@1093 | 16 { |
slaxemulator@7297 | 17 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
slaxemulator@7297 | 18 local AUFSDIR="aufs-${_AUFSVER}" |
slaxemulator@6977 | 19 mkdir -p $fs/usr/src/kernel-patches \ |
pankso@12285 | 20 $fs/lib/modules/$BASEVER-slitaz \ |
pascal@13194 | 21 $fs/usr/bin $fs/usr/sbin |
mojo@12802 | 22 cp -a $WOK/$WANTED/source/slitaz $fs/usr/src/kernel-patches |
pankso@12285 | 23 cp -a $stuff/buildtaz $fs/usr/src/kernel-patches/slitaz |
pankso@12285 | 24 cp -a $stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz |
pankso@12285 | 25 cp -a $stuff/get-linux-source $fs/usr/bin |
pascal@13194 | 26 cp -a $stuff/rdev $fs/usr/sbin |
pascal@13194 | 27 ln -s rdev $fs/usr/sbin/rootflags |
pascal@13194 | 28 ln -s rdev $fs/usr/sbin/ramsize |
pascal@13194 | 29 ln -s rdev $fs/usr/sbin/vidmode |
slaxemulator@6979 | 30 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source |
pascal@4630 | 31 # Copy Aufs2 source files |
slaxemulator@7202 | 32 if [ -d $WOK/$WANTED/$AUFSDIR ]; then |
slaxemulator@6975 | 33 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2 |
slaxemulator@7202 | 34 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \ |
slaxemulator@7202 | 35 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \ |
slaxemulator@6975 | 36 $fs/usr/src/kernel-patches/slitaz/aufs2 |
pascal@4630 | 37 fi |
slaxemulator@6977 | 38 ln -s /usr/src/linux-$VERSION \ |
pankso@12285 | 39 $fs/lib/modules/$BASEVER-slitaz/source |
pascal@1093 | 40 } |