wok-6.x view tazbb/receipt @ rev 3817

Add lockdis (tiny screen locker)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Aug 06 14:21:20 2009 +0200 (2009-08-06)
parents 87cd9284651c
children d5010a514900
line source
1 # SliTaz package receipt.
3 PACKAGE="tazbb"
4 VERSION="1.1"
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"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p \
16 $fs/usr/bin \
17 $fs/etc/slitaz \
18 $fs/var/lib/tazbb \
19 $fs/var/log/tazbb
20 cp stuff/tazbb $fs/usr/bin
21 cp stuff/tazbbmail $fs/usr/bin
22 cp stuff/tazbb.conf $fs/etc/slitaz
23 cp -a stuff/web $fs/var/lib/tazbb
24 chmod 755 $fs/usr/bin/*
25 chown -R root.root $fs
26 }
28 post_install()
29 {
30 # On Tank we have bb.slitaz.org virtual host in: /home/slitaz/www
31 if [ -d $1/home/slitaz/www/bb ]; then
32 cp -a $1/var/lib/tazbb/web/* $1/home/slitaz/www/bb
33 chown www.www $1/home/slitaz/www/bb
34 else
35 mkdir -p $1/var/www/vhosts
36 ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb
37 cat << _EOT_
39 To have a Tazbb web interface on your local system, you can add a vhost
40 to Lighttpd (or Apache) and the hostname to /etc/hosts. Example for Lighty:
42 $HTTP["host"] =~ "bb" {
43 server.document-root = "/var/www/vhost/bb"
44 }
46 Or run: browser http://localhost/vhosts/bb
48 _EOT_
49 fi
50 }
52 post_remove()
53 {
54 rm -rf /var/www/vhost/bb
55 }