wok view cookutils/receipt @ rev 13962

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