wok-stable annotate tazbb/receipt @ rev 3678

Add pgadmin
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jul 11 17:13:21 2009 +0200 (2009-07-11)
parents 87cd9284651c
children d5010a514900
rev   line source
pankso@3512 1 # SliTaz package receipt.
pankso@3512 2
pankso@3512 3 PACKAGE="tazbb"
pankso@3590 4 VERSION="1.1"
pankso@3512 5 CATEGORY="development"
pankso@3590 6 SHORT_DESC="SliTaz Build Bot."
pankso@3512 7 MAINTAINER="pankso@slitaz.org"
pankso@3590 8 DEPENDS="tazpkg tazwok python mercurial"
pankso@3590 9 SUGGESTED="slitaz-toolchain postfix"
pankso@3512 10 WEB_SITE="http://labs.slitaz.org/wiki/distro/Bb"
pankso@3512 11
pankso@3512 12 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3512 13 genpkg_rules()
pankso@3512 14 {
pankso@3512 15 mkdir -p \
pankso@3512 16 $fs/usr/bin \
pankso@3512 17 $fs/etc/slitaz \
pankso@3512 18 $fs/var/lib/tazbb \
pankso@3520 19 $fs/var/log/tazbb
pankso@3512 20 cp stuff/tazbb $fs/usr/bin
pankso@3590 21 cp stuff/tazbbmail $fs/usr/bin
pankso@3512 22 cp stuff/tazbb.conf $fs/etc/slitaz
pankso@3512 23 cp -a stuff/web $fs/var/lib/tazbb
pankso@3512 24 chmod 755 $fs/usr/bin/*
pankso@3512 25 chown -R root.root $fs
pankso@3512 26 }
pankso@3512 27
pankso@3512 28 post_install()
pankso@3512 29 {
pankso@3512 30 # On Tank we have bb.slitaz.org virtual host in: /home/slitaz/www
pankso@3512 31 if [ -d $1/home/slitaz/www/bb ]; then
pankso@3525 32 cp -a $1/var/lib/tazbb/web/* $1/home/slitaz/www/bb
pankso@3520 33 chown www.www $1/home/slitaz/www/bb
pankso@3512 34 else
pankso@3512 35 mkdir -p $1/var/www/vhosts
pankso@3512 36 ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb
pankso@3512 37 cat << _EOT_
pankso@3512 38
paul@3527 39 To have a Tazbb web interface on your local system, you can add a vhost
paul@3527 40 to Lighttpd (or Apache) and the hostname to /etc/hosts. Example for Lighty:
pankso@3512 41
pankso@3512 42 $HTTP["host"] =~ "bb" {
pankso@3512 43 server.document-root = "/var/www/vhost/bb"
pankso@3512 44 }
pankso@3512 45
pankso@3512 46 Or run: browser http://localhost/vhosts/bb
pankso@3512 47
pankso@3512 48 _EOT_
pankso@3512 49 fi
pankso@3512 50 }
pankso@3512 51
pankso@3512 52 post_remove()
pankso@3512 53 {
pankso@3512 54 rm -rf /var/www/vhost/bb
pankso@3512 55 }