wok-next annotate cookutils/receipt @ rev 21047

Up tazpkg (971), cookutils (1095)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 26 21:15:05 2018 +0200 (2018-11-26)
parents 096b1a79310a
children e7e7475e84c9
rev   line source
al@19734 1 # SliTaz package receipt v2.
pankso@9812 2
pankso@9812 3 PACKAGE="cookutils"
al@21047 4 VERSION="1095"
pankso@9812 5 CATEGORY="base-system"
al@19734 6 SHORT_DESC="SliTaz packages builder new generation"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15022 8 LICENSE="GPL3"
al@19252 9 WEB_SITE="http://www.slitaz.org/"
pankso@9812 10
al@19603 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19603 12 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
al@19583 13
al@21020 14 SPLIT="$PACKAGE-daemon"
al@21045 15 COOKOPTS="force-arch" # arch-dependent settings in /etc/slitaz/cook.conf
pascal@14173 16
al@20408 17 compile_rules() {
al@21020 18 make DESTDIR=$install install || return 1
al@19734 19
al@20443 20 # Set correct architecture
al@20443 21 sed -i "/^ARCH=/ s|.*|ARCH=\"$ARCH\"|" $install/etc/slitaz/cook.conf
al@20443 22 # FIXME: is 'thunk-extern' supported?
al@20443 23 sed -i 's|thunk-extern|thunk|' $install/etc/slitaz/cook.conf
al@20443 24
al@19734 25 #Symlink cooker to busybox httpd server root
al@19734 26 ln -s cgi-bin/cooker $install/var/www/cooker
pankso@9812 27 }
pankso@9812 28
al@20408 29 genpkg_rules() {
al@19828 30 TAGS="slitaz"
al@19734 31 case $PACKAGE in
al@19734 32 cookutils)
al@19734 33 copy '*/'; rm -r $fs/etc/init.d
al@20443 34 DEPENDS="sdft xz bzip2 tazpkg cacerts openssl"
al@19734 35 ;;
al@19734 36 cookutils-daemon)
al@19734 37 COOKOPTS="!menus"
al@19734 38 copy init.d/
al@19734 39 CAT="system-tools|daemon script for build host"
al@19734 40 ;;
al@19734 41 esac
pankso@9812 42 }
pascal@12966 43
al@20504 44 NO_post_install_cookutils() {
al@19583 45 case "$(cat "$1/etc/hostname" 2>/dev/null)" in
al@19583 46 tank*)
al@21020 47 if ! chroot "$1/" tazpkg list | grep -q aufs; then
al@19583 48 tazpkg get-install aufs --root="$1/"
al@19583 49 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
al@19583 50 fi
al@19583 51 ;;
pascal@12966 52 esac
pascal@12966 53 }