wok-current annotate tazbb/receipt @ rev 4504
linux: add floppy boot support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 22 12:46:40 2009 +0100 (2009-11-22) |
parents | d5010a514900 |
children | 866fa2493b1b |
rev | line source |
---|---|
pankso@3512 | 1 # SliTaz package receipt. |
pankso@3512 | 2 |
pankso@3512 | 3 PACKAGE="tazbb" |
pankso@4110 | 4 VERSION="1.2" |
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 |
pascal@4447 | 35 mkdir -p $1/var/www/vhosts |
pascal@4447 | 36 ln -s $1/var/lib/tazbb/web $1/var/www/vhosts/bb |
pascal@4447 | 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 } |