wok-4.x view 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 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/lib/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
31 chown www.www $1/home/slitaz/www
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 }