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