wok-next annotate 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 |
rev | line source |
---|---|
al@19734 | 1 # SliTaz package receipt v2. |
pankso@9812 | 2 |
pankso@9812 | 3 PACKAGE="cookutils" |
al@20910 | 4 VERSION="1088" |
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" |
pascal@14173 | 15 |
al@20408 | 16 compile_rules() { |
al@21020 | 17 make DESTDIR=$install install || return 1 |
al@19734 | 18 |
al@20443 | 19 # Set correct architecture |
al@20443 | 20 sed -i "/^ARCH=/ s|.*|ARCH=\"$ARCH\"|" $install/etc/slitaz/cook.conf |
al@20443 | 21 # FIXME: is 'thunk-extern' supported? |
al@20443 | 22 sed -i 's|thunk-extern|thunk|' $install/etc/slitaz/cook.conf |
al@20443 | 23 |
al@19734 | 24 #Symlink cooker to busybox httpd server root |
al@19734 | 25 ln -s cgi-bin/cooker $install/var/www/cooker |
pankso@9812 | 26 } |
pankso@9812 | 27 |
al@20408 | 28 genpkg_rules() { |
al@19828 | 29 TAGS="slitaz" |
al@19734 | 30 case $PACKAGE in |
al@19734 | 31 cookutils) |
al@19734 | 32 copy '*/'; rm -r $fs/etc/init.d |
al@20443 | 33 DEPENDS="sdft xz bzip2 tazpkg cacerts openssl" |
al@19734 | 34 ;; |
al@19734 | 35 cookutils-daemon) |
al@19734 | 36 COOKOPTS="!menus" |
al@19734 | 37 copy init.d/ |
al@19734 | 38 CAT="system-tools|daemon script for build host" |
al@19734 | 39 ;; |
al@19734 | 40 esac |
pankso@9812 | 41 } |
pascal@12966 | 42 |
al@20504 | 43 NO_post_install_cookutils() { |
al@19583 | 44 case "$(cat "$1/etc/hostname" 2>/dev/null)" in |
al@19583 | 45 tank*) |
al@21020 | 46 if ! chroot "$1/" tazpkg list | grep -q aufs; then |
al@19583 | 47 tazpkg get-install aufs --root="$1/" |
al@19583 | 48 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf" |
al@19583 | 49 fi |
al@19583 | 50 ;; |
pascal@12966 | 51 esac |
pascal@12966 | 52 } |