wok-6.x view tazbb/receipt @ rev 7965
Up: dev86 0.2.1.29
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 17 17:24:02 2011 +0100 (2011-01-17) |
parents | 8c1a39e4682c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazbb"
4 VERSION="2.0"
5 CATEGORY="development"
6 SHORT_DESC="SliTaz Build Bot."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="tazpkg tazwok python mercurial"
9 SUGGESTED="slitaz-toolchain postfix"
10 WEB_SITE="http://labs.slitaz.org/wiki/distro/Bb"
11 TAGS="slitaz"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p \
17 $fs/usr/bin \
18 $fs/etc/slitaz \
19 $fs/var/lib/tazbb \
20 $fs/var/log/tazbb
21 cp stuff/tazbb $fs/usr/bin
22 cp stuff/tazbbmail $fs/usr/bin
23 cp stuff/tazbb.conf $fs/etc/slitaz
24 cp -a stuff/web $fs/var/lib/tazbb
25 chmod 755 $fs/usr/bin/*
26 chown -R root.root $fs
27 }
29 post_install()
30 {
31 # On Tank we have bb.slitaz.org virtual host in: /home/slitaz/www
32 if [ -d $1/home/slitaz/www/bb ]; then
33 cp -a $1/var/lib/tazbb/web/* $1/home/slitaz/www/bb
34 chown www.www $1/home/slitaz/www/bb
35 else
36 mkdir -p $1/var/www/vhosts
37 ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb
38 cat << _EOT_
40 To have a Tazbb web interface on your local system, you can add a vhost
41 to Lighttpd (or Apache) and the hostname to /etc/hosts. Example for Lighty:
43 $HTTP["host"] =~ "bb" {
44 server.document-root = "/var/www/vhost/bb"
45 }
47 Or run: browser http://localhost/vhosts/bb
49 _EOT_
50 fi
51 }
53 post_remove()
54 {
55 rm -rf /var/www/vhost/bb
56 }