wok diff tazbb/receipt @ rev 3512

Add Tazbb (SliTaz Build Bot)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 20 04:41:53 2009 +0200 (2009-06-20)
parents
children 300e77088e0f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tazbb/receipt	Sat Jun 20 04:41:53 2009 +0200
     1.3 @@ -0,0 +1,53 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="tazbb"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="SliTaz Build bot."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="tazpkg tazwok mercurial slitaz-toolchain"
    1.12 +WEB_SITE="http://labs.slitaz.org/wiki/distro/Bb"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p \
    1.18 +		$fs/usr/bin \
    1.19 +		$fs/etc/slitaz \
    1.20 +		$fs/var/lib/tazbb \
    1.21 +		$fs/var/lib/tazbb
    1.22 +	cp stuff/tazbb $fs/usr/bin
    1.23 +	cp stuff/tazbb.conf $fs/etc/slitaz
    1.24 +	cp -a stuff/web $fs/var/lib/tazbb
    1.25 +	chmod 755 $fs/usr/bin/*
    1.26 +	chown -R root.root $fs
    1.27 +}
    1.28 +
    1.29 +post_install()
    1.30 +{
    1.31 +	# On Tank we have bb.slitaz.org virtual host in: /home/slitaz/www
    1.32 +	if [ -d $1/home/slitaz/www/bb ]; then
    1.33 +		cp -a $1/var/lib/tazbb/web $1/home/slitaz/www
    1.34 +		chown www.www $1/home/slitaz/www
    1.35 +	else
    1.36 +	mkdir -p $1/var/www/vhosts
    1.37 +	ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb
    1.38 +cat << _EOT_
    1.39 +
    1.40 +To have Tazbb web interface on your local system you can add a vhost
    1.41 +to Lighttp (or Apache) and the hostname to /etc/hosts. Example for Lighty:
    1.42 +
    1.43 +$HTTP["host"] =~ "bb" {
    1.44 +  server.document-root = "/var/www/vhost/bb"
    1.45 +}
    1.46 +
    1.47 +Or run: browser http://localhost/vhosts/bb
    1.48 +
    1.49 +_EOT_
    1.50 +	fi
    1.51 +}
    1.52 +
    1.53 +post_remove()
    1.54 +{
    1.55 +	rm -rf /var/www/vhost/bb
    1.56 +}