wok annotate linux-libre-source/receipt @ rev 11880
perl-rrd-simple: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 28 08:42:35 2012 +0100 (2012-02-28) |
parents | |
children | 03a6791abff6 |
rev | line source |
---|---|
gokhlayeh@9257 | 1 # SliTaz package receipt. |
gokhlayeh@9257 | 2 |
gokhlayeh@9257 | 3 PACKAGE="linux-libre-source" |
gokhlayeh@9257 | 4 VERSION="2.6.37-libre" |
gokhlayeh@9257 | 5 CATEGORY="development" |
gokhlayeh@9257 | 6 SHORT_DESC="The Linux Libre kernel source files." |
gokhlayeh@9257 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
gokhlayeh@9257 | 8 PROVIDE="linux-source" |
gokhlayeh@9257 | 9 WANTED="linux-libre" |
gokhlayeh@9257 | 10 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
gokhlayeh@9257 | 11 DEPENDS="linux-libre slitaz-toolchain ncurses-dev perl" |
gokhlayeh@9257 | 12 |
gokhlayeh@9257 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@9257 | 14 genpkg_rules() |
gokhlayeh@9257 | 15 { |
gokhlayeh@9257 | 16 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
gokhlayeh@9257 | 17 local AUFSDIR="aufs-${_AUFSVER}" |
gokhlayeh@9257 | 18 mkdir -p $fs/usr/src/kernel-patches \ |
gokhlayeh@9257 | 19 $fs/lib/modules/$VERSION-slitaz \ |
gokhlayeh@9257 | 20 $fs/usr/bin |
gokhlayeh@9257 | 21 cp -a $WOK/$WANTED/slitaz $fs/usr/src/kernel-patches |
gokhlayeh@9257 | 22 cp -a stuff/buildtaz $fs/usr/src/kernel-patches/slitaz |
gokhlayeh@9257 | 23 cp -a stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz |
gokhlayeh@9257 | 24 cp -a stuff/get-linux-source $fs/usr/bin |
gokhlayeh@9257 | 25 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source |
gokhlayeh@9257 | 26 # Copy Aufs2 source files |
gokhlayeh@9257 | 27 if [ -d $WOK/$WANTED/$AUFSDIR ]; then |
gokhlayeh@9257 | 28 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2 |
gokhlayeh@9257 | 29 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \ |
gokhlayeh@9257 | 30 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \ |
gokhlayeh@9257 | 31 $fs/usr/src/kernel-patches/slitaz/aufs2 |
gokhlayeh@9257 | 32 fi |
gokhlayeh@9257 | 33 ln -s /usr/src/linux-$VERSION \ |
gokhlayeh@9257 | 34 $fs/lib/modules/$VERSION-slitaz/source |
gokhlayeh@9257 | 35 } |