wok-next view cookutils/receipt @ rev 20891

cookutils: up (1085); syslinux: remove docs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 19 18:27:17 2018 +0300 (2018-07-19)
parents 4e6503d7a19f
children c200abf4e57f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="1085"
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 }