wok view linux-source/receipt @ rev 12210
syslinux: add md5sum.c32
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 31 14:27:35 2012 +0200 (2012-03-31) |
parents | 1d89aa1672da |
children | 6f536abe4f0b |
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 }
36 # Pre and post install commands for Tazpkg.
37 post_install()
38 {
39 cat <<EOT
40 Now you should get the linux kernel source files with :
42 # get-linux-source
43 EOT
44 }