wok view linux-source/receipt @ rev 10905
Add lxc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 21 12:00:26 2011 +0200 (2011-07-21) |
parents | 03d4663c81fa |
children | fe50a214f0c8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-source"
4 VERSION="2.6.37"
5 CATEGORY="development"
6 SHORT_DESC="The Linux kernel source files."
7 MAINTAINER="devel@slitaz.org"
8 WANTED="linux"
9 WEB_SITE="http://www.kernel.org/"
10 DEPENDS="linux slitaz-toolchain ncurses-dev perl"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
16 local AUFSDIR="aufs-${_AUFSVER}"
17 mkdir -p $fs/usr/src/kernel-patches \
18 $fs/lib/modules/$VERSION-slitaz \
19 $fs/usr/bin
20 cp -a $WOK/$WANTED/slitaz $fs/usr/src/kernel-patches
21 cp -a stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
22 cp -a stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
23 cp -a stuff/get-linux-source $fs/usr/bin
24 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
25 # Copy Aufs2 source files
26 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
27 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
28 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
29 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
30 $fs/usr/src/kernel-patches/slitaz/aufs2
31 fi
32 ln -s /usr/src/linux-$VERSION \
33 $fs/lib/modules/$VERSION-slitaz/source
34 }