wok-next view cookutils/receipt @ rev 19751
Up perl-xml-parser: we have perl-dev now...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jun 08 15:34:29 2017 +0300 (2017-06-08) |
parents | 2f73953f6cee |
children | 9610a0d739a2 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="919"
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 TAGS="slitaz"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
16 SPLIT="cookutils-daemon"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 make DESTDIR=$install install
23 #Symlink cooker to busybox httpd server root
24 ln -s cgi-bin/cooker $install/var/www/cooker
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
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 }