wok-next view cookutils/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents efc1e4b02968
children 096b1a79310a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="1088"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages builder new generation"
7 MAINTAINER="devel@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="$PACKAGE-daemon"
16 compile_rules() {
17 make DESTDIR=$install install || return 1
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 }