wok-next view cookutils/receipt @ rev 20634
oxine: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 27 12:51:30 2018 +0200 (2018-04-27) |
parents | c6e3836bf8b4 |
children | ee171d0eb294 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="1050"
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 }