wok-current view tazbb/receipt @ rev 7501

Up: poppler to 0.14.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 04 04:11:44 2010 +0000 (2010-12-04)
parents c96e79a1ca3e
children 9140fe580c2b
line source
1 # SliTaz package receipt.
3 PACKAGE="tazbb"
4 VERSION="1.4"
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 }