wok-stable annotate tazbb/receipt @ rev 5280
Up: libart_lgpl
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Apr 16 12:54:42 2010 -0400 (2010-04-16) |
parents | c96e79a1ca3e |
children | 9140fe580c2b |
rev | line source |
---|---|
pankso@3512 | 1 # SliTaz package receipt. |
pankso@3512 | 2 |
pankso@3512 | 3 PACKAGE="tazbb" |
pankso@5132 | 4 VERSION="1.4" |
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" |
jozee@4973 | 11 TAGS="slitaz" |
pankso@3512 | 12 |
pankso@3512 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3512 | 14 genpkg_rules() |
pankso@3512 | 15 { |
pankso@3512 | 16 mkdir -p \ |
pankso@3512 | 17 $fs/usr/bin \ |
pankso@3512 | 18 $fs/etc/slitaz \ |
pankso@3512 | 19 $fs/var/lib/tazbb \ |
pankso@3520 | 20 $fs/var/log/tazbb |
pankso@3512 | 21 cp stuff/tazbb $fs/usr/bin |
pankso@3590 | 22 cp stuff/tazbbmail $fs/usr/bin |
pankso@3512 | 23 cp stuff/tazbb.conf $fs/etc/slitaz |
pankso@3512 | 24 cp -a stuff/web $fs/var/lib/tazbb |
pankso@3512 | 25 chmod 755 $fs/usr/bin/* |
pankso@3512 | 26 chown -R root.root $fs |
pankso@3512 | 27 } |
pankso@3512 | 28 |
pankso@3512 | 29 post_install() |
pankso@3512 | 30 { |
pankso@3512 | 31 # On Tank we have bb.slitaz.org virtual host in: /home/slitaz/www |
pankso@3512 | 32 if [ -d $1/home/slitaz/www/bb ]; then |
pankso@3525 | 33 cp -a $1/var/lib/tazbb/web/* $1/home/slitaz/www/bb |
pankso@3520 | 34 chown www.www $1/home/slitaz/www/bb |
pankso@3512 | 35 else |
pascal@4447 | 36 mkdir -p $1/var/www/vhosts |
pascal@4447 | 37 ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb |
pascal@4447 | 38 cat << _EOT_ |
pankso@3512 | 39 |
paul@3527 | 40 To have a Tazbb web interface on your local system, you can add a vhost |
paul@3527 | 41 to Lighttpd (or Apache) and the hostname to /etc/hosts. Example for Lighty: |
pankso@3512 | 42 |
pankso@3512 | 43 $HTTP["host"] =~ "bb" { |
pankso@3512 | 44 server.document-root = "/var/www/vhost/bb" |
pankso@3512 | 45 } |
pankso@3512 | 46 |
pankso@3512 | 47 Or run: browser http://localhost/vhosts/bb |
pankso@3512 | 48 |
pankso@3512 | 49 _EOT_ |
pankso@3512 | 50 fi |
pankso@3512 | 51 } |
pankso@3512 | 52 |
pankso@3512 | 53 post_remove() |
pankso@3512 | 54 { |
pankso@3512 | 55 rm -rf /var/www/vhost/bb |
pankso@3512 | 56 } |