wok-undigest rev 1136

Up: cookutils (3.4.2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 06 23:59:10 2015 +0200 (2015-01-06)
parents fe3f85a9ece3
children 4cfdbade6128
files cookutils/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cookutils/receipt	Tue Jan 06 23:59:10 2015 +0200
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="cookutils"
     1.7 +VERSION="3.4.2"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="SliTaz packages builder new generation."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL3"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.slitaz.org/"
    1.14 +WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
    1.15 +TAGS="slitaz"
    1.16 +HOST_ARCH="i486 arm"
    1.17 +
    1.18 +DEPENDS=""
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
    1.24 +	make DESTDIR=$DESTDIR install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs
    1.31 +	cp -a $install/* $fs
    1.32 +	#Symlink cooker to busybox httpd server root
    1.33 +	cd $fs/var/www
    1.34 +	ln -s cgi-bin/cooker
    1.35 +	# Daemon goes in cookutils-deamon
    1.36 +	rm -rf $fs/etc/init.d
    1.37 +}
    1.38 +
    1.39 +# Pre and post install commands for Tazpkg.
    1.40 +post_install()
    1.41 +{
    1.42 +	case "$(cat $1/etc/hostname)" in
    1.43 +	tank*)
    1.44 +		if ! chroot $1/ tazpkg list | grep -q aufs ; then
    1.45 +			tazpkg get-install aufs --root=$1/
    1.46 +			sed -i 's/LOAD_MODULES="/&aufs /' $1/etc/rcS.conf
    1.47 +		fi ;;
    1.48 +	esac
    1.49 +}