wok-next annotate cookutils/receipt @ rev 19828
Add LibreOffice (with langpacks); up compton, cookutils, cppunit.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Aug 02 20:14:13 2017 +0300 (2017-08-02) |
parents | 35faee9ea669 |
children | f4faceee705c |
rev | line source |
---|---|
al@19734 | 1 # SliTaz package receipt v2. |
pankso@9812 | 2 |
pankso@9812 | 3 PACKAGE="cookutils" |
al@19828 | 4 VERSION="954" |
pankso@9812 | 5 CATEGORY="base-system" |
al@19734 | 6 SHORT_DESC="SliTaz packages builder new generation" |
pankso@9812 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="GPL3" |
al@19252 | 9 WEB_SITE="http://www.slitaz.org/" |
pankso@12778 | 10 HOST_ARCH="i486 arm" |
pankso@9812 | 11 |
al@19603 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19603 | 13 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2" |
al@19583 | 14 |
al@19252 | 15 SPLIT="cookutils-daemon" |
pascal@14173 | 16 |
pankso@9812 | 17 # Rules to configure and make the package. |
pankso@9812 | 18 compile_rules() |
pankso@9812 | 19 { |
al@19583 | 20 make DESTDIR=$install install |
al@19734 | 21 |
al@19734 | 22 #Symlink cooker to busybox httpd server root |
al@19734 | 23 ln -s cgi-bin/cooker $install/var/www/cooker |
pankso@9812 | 24 } |
pankso@9812 | 25 |
pankso@9812 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9812 | 27 genpkg_rules() |
pankso@9812 | 28 { |
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@19734 | 33 DEPENDS="sdft lzma 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 |
pascal@12966 | 43 # Pre and post install commands for Tazpkg. |
al@19734 | 44 post_install_cookutils() |
pascal@12966 | 45 { |
al@19583 | 46 case "$(cat "$1/etc/hostname" 2>/dev/null)" in |
al@19583 | 47 tank*) |
al@19583 | 48 if ! chroot "$1/" tazpkg list | grep -q aufs ; then |
al@19583 | 49 tazpkg get-install aufs --root="$1/" |
al@19583 | 50 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf" |
al@19583 | 51 fi |
al@19583 | 52 ;; |
pascal@12966 | 53 esac |
pascal@12966 | 54 } |