wok-next view linux-source/receipt @ rev 19583
Up: cookutils, tazpkg, aufs, kmod, lguest, linux, linux64.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 02 07:42:47 2017 +0200 (2017-01-02) |
parents | 08cf996a2307 |
children | 960a052d15d3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-source"
4 VERSION="4.9.0"
5 CATEGORY="development"
6 SHORT_DESC="The Linux Kernel source files"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kernel.org/"
11 WANTED="linux"
12 DEPENDS="linux slitaz-toolchain ncurses-dev perl xz lzma patch busybox-boot"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 local _AUFSVER=$(grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g')
18 local AUFSDIR="aufs-${_AUFSVER}"
19 mkdir -p $fs/usr/src/kernel-patches \
20 $fs/lib/modules/$VERSION-slitaz \
21 $fs/usr/bin $fs/usr/sbin
22 cp -a $WOK/$WANTED/source/slitaz $fs/usr/src/kernel-patches
23 cp -a $stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
24 cp -a $stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
25 cp -a $stuff/get-linux-source $fs/usr/bin
26 cp -a $stuff/rdev $fs/usr/sbin
27 ln -s rdev $fs/usr/sbin/rootflags
28 ln -s rdev $fs/usr/sbin/ramsize
29 ln -s rdev $fs/usr/sbin/vidmode
30 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
32 # Copy Aufs4 source files
33 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
34 mkdir $fs/usr/src/kernel-patches/slitaz/aufs4
35 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
36 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
37 $fs/usr/src/kernel-patches/slitaz/aufs4
38 fi
40 ln -s /usr/src/linux-$VERSION \
41 $fs/lib/modules/$VERSION-slitaz/source
42 }