wok annotate cookutils/receipt @ rev 20186

Up tcc (0.9.27) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 01 15:13:15 2018 +0100 (2018-02-01)
parents 027ff114948a
children cf687dbfb029
rev   line source
pankso@9812 1 # SliTaz package receipt.
pankso@9812 2
pankso@9812 3 PACKAGE="cookutils"
al@19823 4 VERSION="887"
pankso@9812 5 CATEGORY="base-system"
pankso@9812 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@9812 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13892 11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
pankso@9812 12 TAGS="slitaz"
pankso@12778 13 HOST_ARCH="i486 arm"
pascal@19787 14 CONFIG_FILES="/etc/slitaz/cook.site /etc/slitaz/cook.conf"
pankso@9812 15
al@18550 16 DEPENDS="sdft"
al@19252 17 SPLIT="cookutils-daemon"
pascal@14173 18
pankso@9812 19 # Rules to configure and make the package.
pankso@9812 20 compile_rules()
pankso@9812 21 {
pankso@9812 22 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
pankso@9812 23 make DESTDIR=$DESTDIR install
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 {
pankso@9812 29 mkdir -p $fs
pankso@9812 30 cp -a $install/* $fs
mojo@13856 31 #Symlink cooker to busybox httpd server root
mojo@13856 32 cd $fs/var/www
mojo@13856 33 ln -s cgi-bin/cooker
al@19161 34 # Daemon goes in cookutils-daemon
pankso@9826 35 rm -rf $fs/etc/init.d
pankso@9812 36 }
pascal@12966 37
pascal@12966 38 # Pre and post install commands for Tazpkg.
pascal@12966 39 post_install()
pascal@12966 40 {
pascal@18730 41 case "$(cat "$1/etc/hostname" 2> /dev/null)" in
pascal@12966 42 tank*)
pascal@18730 43 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
pascal@18730 44 tazpkg get-install aufs --root="$1/"
pascal@18730 45 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
pascal@12966 46 fi ;;
pascal@12966 47 esac
pascal@12966 48 }