wok-next view cookutils/receipt @ rev 19736

Up acl, babl, beecrypt, bind, bzip2, cookutils, openssl.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 29 11:14:00 2017 +0300 (2017-05-29)
parents b75a21e7b544
children 9a5b17ddcfcb
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="908"
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 }