wok-4.x view tazbb/receipt @ rev 3568
tag rest of b* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Jun 25 10:49:46 2009 +0000 (2009-06-25) |
parents | 69d3f80c266e |
children | 28ce60b11e25 |
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 a Tazbb web interface on your local system, you can add a vhost
38 to Lighttpd (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 }