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