wok-next view cookutils/receipt @ rev 20902

brotli: up (1.0.5); compton: re-version (0.1_beta2+87 -> 20170907); cookutils: up (1087); curl: up (7.61.0); file: up (5.33); gnutls: up (3.5.19); gvfs: up (1.36.2); meson: up (0.47.1); webkit2gtk: update bdeps; add libgdata and uhttpmock
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 28 15:39:37 2018 +0300 (2018-07-28)
parents c200abf4e57f
children efc1e4b02968
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="1087"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
14 SPLIT="cookutils-daemon"
16 compile_rules() {
17 make DESTDIR=$install install
19 # Set correct architecture
20 sed -i "/^ARCH=/ s|.*|ARCH=\"$ARCH\"|" $install/etc/slitaz/cook.conf
21 # FIXME: is 'thunk-extern' supported?
22 sed -i 's|thunk-extern|thunk|' $install/etc/slitaz/cook.conf
24 #Symlink cooker to busybox httpd server root
25 ln -s cgi-bin/cooker $install/var/www/cooker
26 }
28 genpkg_rules() {
29 TAGS="slitaz"
30 case $PACKAGE in
31 cookutils)
32 copy '*/'; rm -r $fs/etc/init.d
33 DEPENDS="sdft xz 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 NO_post_install_cookutils() {
44 case "$(cat "$1/etc/hostname" 2>/dev/null)" in
45 tank*)
46 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
47 tazpkg get-install aufs --root="$1/"
48 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
49 fi
50 ;;
51 esac
52 }