slitaz-modular rev 151

local-mirror: Add man-html and linuxgazette support.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Dec 18 14:06:44 2011 +0000 (2011-12-18)
parents 74ae03ca4c23
children 57cf41687409
files initramfs/etc/lighttpd/vhosts-local-tank.conf initramfs/etc/local-mirror.conf initramfs/usr/bin/local-mirror
line diff
     1.1 --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf	Sun Dec 18 14:02:06 2011 +0000
     1.2 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf	Sun Dec 18 14:06:44 2011 +0000
     1.3 @@ -275,3 +275,17 @@
     1.4    server.errorlog = "/var/log/lighttpd/gimp.fr.slitaz.org-error.log"
     1.5    accesslog.filename = "/var/log/lighttpd/gimp.fr.slitaz.org-access.log"
     1.6  }
     1.7 +
     1.8 +# man-html.slitaz.org
     1.9 +#
    1.10 +$HTTP["host"] =~ "man-html\.slitaz\.org$" {
    1.11 +  server.document-root = "/home/slitaz/www/man-html"
    1.12 +  server.errorlog = "/var/log/lighttpd/man-html.slitaz.org-error.log"
    1.13 +  accesslog.filename = "/var/log/lighttpd/man-html.slitaz.org-access.log"
    1.14 +}
    1.15 +
    1.16 +$HTTP["host"] =~ "lg\.slitaz\.org$" {
    1.17 +  server.document-root = "/home/slitaz/www/linuxgazette"
    1.18 +  server.errorlog = "/var/log/lighttpd/lg.slitaz.org-error.log"
    1.19 +  accesslog.filename = "/var/log/lighttpd/lg.slitaz.org-access.log"
    1.20 +}
     2.1 --- a/initramfs/etc/local-mirror.conf	Sun Dec 18 14:02:06 2011 +0000
     2.2 +++ b/initramfs/etc/local-mirror.conf	Sun Dec 18 14:06:44 2011 +0000
     2.3 @@ -5,14 +5,14 @@
     2.4   tazwok slitaz-dev-tools website wok wok-stable wok-tiny \
     2.5   wok-undigest wok-tank my-cookutils"
     2.6  WWW="website people doc pizza cook pkgs mirror boot tank hg \
     2.7 -lfs absguide hgbook gimp.en gimp.fr gimp.es"
     2.8 +lfs absguide man-html hgbook gimp.en gimp.fr gimp.es linuxgazette"
     2.9  IP_ADDR="127.0.0.1"
    2.10  ROUTER_IP="192.168.1.1"
    2.11  ADDRESS="www.slitaz.org pizza.slitaz.org boot.slitaz.org \
    2.12  mirror.slitaz.org tank.slitaz.org doc.slitaz.org \
    2.13 -pkgs.slitaz.org hg.slitaz.org cook.slitaz.org \
    2.14 +pkgs.slitaz.org hg.slitaz.org cook.slitaz.org man-html.slitaz.org \
    2.15  people.slitaz.org lfs.slitaz.org absguide.slitaz.org hgbook.slitaz.org \
    2.16 -gimp.en.slitaz.org gimp.es.slitaz.org gimp.fr.slitaz.org"
    2.17 +gimp.en.slitaz.org gimp.es.slitaz.org gimp.fr.slitaz.org lg.slitaz.org"
    2.18  VHOST_FILE="/etc/lighttpd/vhosts-local.conf"
    2.19  VHOST_MIRROR_FILE="/etc/lighttpd/vhosts-local-mirror.conf"
    2.20  VHOST_TANK_FILE="/etc/lighttpd/vhosts-local-tank.conf"
     3.1 --- a/initramfs/usr/bin/local-mirror	Sun Dec 18 14:02:06 2011 +0000
     3.2 +++ b/initramfs/usr/bin/local-mirror	Sun Dec 18 14:06:44 2011 +0000
     3.3 @@ -287,6 +287,10 @@
     3.4  			if [ -d /usr/share/absguide ]; then
     3.5  				[ -d $MAIN_WWW_DIR/absguide ] || ln -sf /usr/share/absguide $MAIN_WWW_DIR/absguide
     3.6  			fi ;;
     3.7 +		man-html)
     3.8 +			if [ -d /usr/share/man-html ]; then
     3.9 +				[ -d $MAIN_WWW_DIR/man-html ] || ln -sf /usr/share/man-html $MAIN_WWW_DIR/man-html
    3.10 +			fi ;;
    3.11  		gimp.en)
    3.12  			if [ -d /usr/share/gimp/2.0/help/en ]; then
    3.13  				[ -d $MAIN_WWW_DIR/gimp_en ] || ln -sf /usr/share/gimp/2.0/help/en $MAIN_WWW_DIR/gimp_en
    3.14 @@ -299,6 +303,10 @@
    3.15  			if [ -d /usr/share/gimp/2.0/help/es ]; then
    3.16  				[ -d $MAIN_WWW_DIR/gimp_es ] || ln -sf /usr/share/gimp/2.0/help/es $MAIN_WWW_DIR/gimp_es
    3.17  			fi ;;
    3.18 +		linuxgazette)
    3.19 +			if [ -d /repos/linuxgazette ]; then
    3.20 +				[ -d $MAIN_WWW_DIR/linuxgazette ] || ln -sf /repos/linuxgazette $MAIN_WWW_DIR/linuxgazette
    3.21 +			fi ;;
    3.22  	esac
    3.23  }
    3.24