wok-next view cookutils/receipt @ rev 19624

Fix some WANTED versions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 08 16:29:10 2017 +0100 (2017-02-08)
parents d441da4a124b
children a20b099066a4
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="874"
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 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 }