wok view linux-libre-source/receipt @ rev 10888

ntop: fix init script
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jul 04 22:49:16 2011 +0200 (2011-07-04)
parents
children 03a6791abff6
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-source"
4 VERSION="2.6.37-libre"
5 CATEGORY="development"
6 SHORT_DESC="The Linux Libre kernel source files."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 PROVIDE="linux-source"
9 WANTED="linux-libre"
10 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
11 DEPENDS="linux-libre slitaz-toolchain ncurses-dev perl"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
17 local AUFSDIR="aufs-${_AUFSVER}"
18 mkdir -p $fs/usr/src/kernel-patches \
19 $fs/lib/modules/$VERSION-slitaz \
20 $fs/usr/bin
21 cp -a $WOK/$WANTED/slitaz $fs/usr/src/kernel-patches
22 cp -a stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
23 cp -a stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
24 cp -a stuff/get-linux-source $fs/usr/bin
25 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
26 # Copy Aufs2 source files
27 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
28 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
29 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
30 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
31 $fs/usr/src/kernel-patches/slitaz/aufs2
32 fi
33 ln -s /usr/src/linux-$VERSION \
34 $fs/lib/modules/$VERSION-slitaz/source
35 }