wok-6.x annotate tazbb/receipt @ rev 3525

tazbb: Fix path to tank vhosts
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jun 21 18:16:04 2009 +0200 (2009-06-21)
parents 300e77088e0f
children 87cd9284651c
rev   line source
pankso@3512 1 # SliTaz package receipt.
pankso@3512 2
pankso@3512 3 PACKAGE="tazbb"
pankso@3512 4 VERSION="1.0"
pankso@3512 5 CATEGORY="development"
pankso@3512 6 SHORT_DESC="SliTaz Build bot."
pankso@3512 7 MAINTAINER="pankso@slitaz.org"
pankso@3512 8 DEPENDS="tazpkg tazwok mercurial slitaz-toolchain"
pankso@3512 9 WEB_SITE="http://labs.slitaz.org/wiki/distro/Bb"
pankso@3512 10
pankso@3512 11 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3512 12 genpkg_rules()
pankso@3512 13 {
pankso@3512 14 mkdir -p \
pankso@3512 15 $fs/usr/bin \
pankso@3512 16 $fs/etc/slitaz \
pankso@3512 17 $fs/var/lib/tazbb \
pankso@3520 18 $fs/var/log/tazbb
pankso@3512 19 cp stuff/tazbb $fs/usr/bin
pankso@3512 20 cp stuff/tazbb.conf $fs/etc/slitaz
pankso@3512 21 cp -a stuff/web $fs/var/lib/tazbb
pankso@3512 22 chmod 755 $fs/usr/bin/*
pankso@3512 23 chown -R root.root $fs
pankso@3512 24 }
pankso@3512 25
pankso@3512 26 post_install()
pankso@3512 27 {
pankso@3512 28 # On Tank we have bb.slitaz.org virtual host in: /home/slitaz/www
pankso@3512 29 if [ -d $1/home/slitaz/www/bb ]; then
pankso@3525 30 cp -a $1/var/lib/tazbb/web/* $1/home/slitaz/www/bb
pankso@3520 31 chown www.www $1/home/slitaz/www/bb
pankso@3512 32 else
pankso@3512 33 mkdir -p $1/var/www/vhosts
pankso@3512 34 ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb
pankso@3512 35 cat << _EOT_
pankso@3512 36
pankso@3512 37 To have Tazbb web interface on your local system you can add a vhost
pankso@3512 38 to Lighttp (or Apache) and the hostname to /etc/hosts. Example for Lighty:
pankso@3512 39
pankso@3512 40 $HTTP["host"] =~ "bb" {
pankso@3512 41 server.document-root = "/var/www/vhost/bb"
pankso@3512 42 }
pankso@3512 43
pankso@3512 44 Or run: browser http://localhost/vhosts/bb
pankso@3512 45
pankso@3512 46 _EOT_
pankso@3512 47 fi
pankso@3512 48 }
pankso@3512 49
pankso@3512 50 post_remove()
pankso@3512 51 {
pankso@3512 52 rm -rf /var/www/vhost/bb
pankso@3512 53 }