wok view cookutils/receipt @ rev 19617

Up SliTaz projects: cookutils(863), slitaz-base-files(319), slitaz-boot-scripts(436), slitaz-configs(299), slitaz-tools(1008), ssfs(108), tazbug(94), tazinst(86), tazirc(18), tazlito(445), tazpanel(610), tazpkg(932), tazusb(194), tazweb(174).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 10 14:28:40 2017 +0200 (2017-01-10)
parents 5d404602443f
children faf865f8822c
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="863"
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
12 TAGS="slitaz"
13 HOST_ARCH="i486 arm"
15 DEPENDS="sdft"
16 SPLIT="cookutils-daemon"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
22 make DESTDIR=$DESTDIR 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
30 #Symlink cooker to busybox httpd server root
31 cd $fs/var/www
32 ln -s cgi-bin/cooker
33 # Daemon goes in cookutils-daemon
34 rm -rf $fs/etc/init.d
35 }
37 # Pre and post install commands for Tazpkg.
38 post_install()
39 {
40 case "$(cat "$1/etc/hostname" 2> /dev/null)" in
41 tank*)
42 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
43 tazpkg get-install aufs --root="$1/"
44 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
45 fi ;;
46 esac
47 }