wok-next view cookutils/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | 6d2b71cbba60 |
children | 250165915708 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="973"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages builder new generation"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
15 SPLIT="cookutils-daemon"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 make DESTDIR=$install install
22 #Symlink cooker to busybox httpd server root
23 ln -s cgi-bin/cooker $install/var/www/cooker
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 TAGS="slitaz"
30 case $PACKAGE in
31 cookutils)
32 copy '*/'; rm -r $fs/etc/init.d
33 DEPENDS="sdft lzma bzip2 tazpkg cacerts openssl"
34 ;;
35 cookutils-daemon)
36 COOKOPTS="!menus"
37 copy init.d/
38 CAT="system-tools|daemon script for build host"
39 ;;
40 esac
41 }
43 # Pre and post install commands for Tazpkg.
44 post_install_cookutils()
45 {
46 case "$(cat "$1/etc/hostname" 2>/dev/null)" in
47 tank*)
48 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
49 tazpkg get-install aufs --root="$1/"
50 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
51 fi
52 ;;
53 esac
54 }