wok-next view cookutils/receipt @ rev 13856
cookutils: symlink cooker to busybox httpd server root
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Jan 10 11:58:44 2013 +0000 (2013-01-10) |
parents | dfdb3fd470af |
children | 3fef7584bca2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="2.0"
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://mirror.slitaz.org/sources/$PACKAGE/$TARBALL"
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 }