wok-next view cookutils/receipt @ rev 19600
Up cookutils (869)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 23 11:20:11 2017 +0200 (2017-01-23) |
parents | b19a1b511a74 |
children | 18c4d15a72df |
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="869"
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.gz"
14 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
16 DEPENDS="sdft lzma bzip2 tazpkg cacerts openssl"
17 SPLIT="cookutils-daemon"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 make DESTDIR=$install install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs
29 cp -a $install/* $fs
31 #Symlink cooker to busybox httpd server root
32 cd $fs/var/www
33 ln -s cgi-bin/cooker
35 # Daemon goes in cookutils-daemon
36 rm -rf $fs/etc/init.d
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
42 case "$(cat "$1/etc/hostname" 2>/dev/null)" in
43 tank*)
44 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
45 tazpkg get-install aufs --root="$1/"
46 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
47 fi
48 ;;
49 esac
50 }