wok annotate cookutils/receipt @ rev 13899
qutim: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 19 15:58:06 2013 +0100 (2013-01-19) |
parents | 3fef7584bca2 |
children | 21c4b58c334e |
rev | line source |
---|---|
pankso@9812 | 1 # SliTaz package receipt. |
pankso@9812 | 2 |
pankso@9812 | 3 PACKAGE="cookutils" |
erjo@13884 | 4 VERSION="3.0" |
pankso@9812 | 5 CATEGORY="base-system" |
pankso@9812 | 6 SHORT_DESC="SliTaz packages builder new generation." |
pankso@9812 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@9812 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@9812 | 9 WEB_SITE="http://www.slitaz.org/" |
pascal@13892 | 10 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@9812 | 11 TAGS="slitaz" |
pankso@12778 | 12 HOST_ARCH="i486 arm" |
pankso@9812 | 13 |
pankso@9812 | 14 # Rules to configure and make the package. |
pankso@9812 | 15 compile_rules() |
pankso@9812 | 16 { |
pankso@9812 | 17 cd $src |
pankso@9812 | 18 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz |
pankso@9812 | 19 make DESTDIR=$DESTDIR install |
pankso@9812 | 20 } |
pankso@9812 | 21 |
pankso@9812 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9812 | 23 genpkg_rules() |
pankso@9812 | 24 { |
pankso@9812 | 25 mkdir -p $fs |
pankso@9812 | 26 cp -a $install/* $fs |
mojo@13856 | 27 #Symlink cooker to busybox httpd server root |
mojo@13856 | 28 cd $fs/var/www |
mojo@13856 | 29 ln -s cgi-bin/cooker |
pankso@9826 | 30 # Daemon goes in cookutils-deamon |
pankso@9826 | 31 rm -rf $fs/etc/init.d |
pankso@9812 | 32 } |
pascal@12966 | 33 |
pascal@12966 | 34 # Pre and post install commands for Tazpkg. |
pascal@12966 | 35 post_install() |
pascal@12966 | 36 { |
pascal@12966 | 37 case "$(cat $1/etc/hostname)" in |
pascal@12966 | 38 tank*) |
pascal@12966 | 39 if ! chroot $1/ tazpkg list | grep -q aufs ; then |
pascal@12966 | 40 tazpkg get-install aufs --root=$1/ |
pascal@12966 | 41 sed -i 's/LOAD_MODULES="/&aufs /' $1/etc/rcS.conf |
pascal@12966 | 42 fi ;; |
pascal@12966 | 43 esac |
pascal@12966 | 44 } |