wok-next view cookutils/receipt @ rev 21045
Up cookutils (1094)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 26 12:14:47 2018 +0200 (2018-11-26) |
parents | d5aab818505e |
children | b3d14098cded |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cookutils"
4 VERSION="1094"
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"
15 COOKOPTS="force-arch" # arch-dependent settings in /etc/slitaz/cook.conf
17 compile_rules() {
18 make DESTDIR=$install install || return 1
20 # Set correct architecture
21 sed -i "/^ARCH=/ s|.*|ARCH=\"$ARCH\"|" $install/etc/slitaz/cook.conf
22 # FIXME: is 'thunk-extern' supported?
23 sed -i 's|thunk-extern|thunk|' $install/etc/slitaz/cook.conf
25 #Symlink cooker to busybox httpd server root
26 ln -s cgi-bin/cooker $install/var/www/cooker
27 }
29 genpkg_rules() {
30 TAGS="slitaz"
31 case $PACKAGE in
32 cookutils)
33 copy '*/'; rm -r $fs/etc/init.d
34 DEPENDS="sdft xz bzip2 tazpkg cacerts openssl"
35 ;;
36 cookutils-daemon)
37 COOKOPTS="!menus"
38 copy init.d/
39 CAT="system-tools|daemon script for build host"
40 ;;
41 esac
42 }
44 NO_post_install_cookutils() {
45 case "$(cat "$1/etc/hostname" 2>/dev/null)" in
46 tank*)
47 if ! chroot "$1/" tazpkg list | grep -q aufs; then
48 tazpkg get-install aufs --root="$1/"
49 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
50 fi
51 ;;
52 esac
53 }