slitaz-modular rev 131
local-mirror: Add support for more doc urls. New urls are: hgbook.slitaz.org, absguide.slitaz.org, gimp.en.slitaz.org, gimp.es.slitaz.org, and gimp.fr.slitaz.org.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Aug 27 18:34:37 2011 +0000 (2011-08-27) |
parents | 2d0d25925042 |
children | 8d1e18c4e499 |
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 Sat Aug 27 18:30:55 2011 +0000 1.2 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf Sat Aug 27 18:34:37 2011 +0000 1.3 @@ -231,3 +231,43 @@ 1.4 server.errorlog = "/var/log/lighttpd/lfs.slitaz.org-error.log" 1.5 accesslog.filename = "/var/log/lighttpd/lfs.slitaz.org-access.log" 1.6 } 1.7 + 1.8 +# absguide.slitaz.org (Advanced Bash-Scripting Guide docs) 1.9 +# 1.10 +$HTTP["host"] =~ "absguide\.slitaz\.org$" { 1.11 + server.document-root = "/home/slitaz/www/absguide" 1.12 + server.errorlog = "/var/log/lighttpd/absguide.slitaz.org-error.log" 1.13 + accesslog.filename = "/var/log/lighttpd/absguide.slitaz.org-access.log" 1.14 +} 1.15 + 1.16 +# hgbook.slitaz.org (Mercurial: The Definitve Guide docs) 1.17 +# 1.18 +$HTTP["host"] =~ "hgbook\.slitaz\.org$" { 1.19 + server.document-root = "/home/slitaz/www/hgbook" 1.20 + server.errorlog = "/var/log/lighttpd/hgbook.slitaz.org-error.log" 1.21 + accesslog.filename = "/var/log/lighttpd/hgbook.slitaz.org-access.log" 1.22 +} 1.23 + 1.24 +# gimp.en.slitaz.org (gimp English docs) 1.25 +# 1.26 +$HTTP["host"] =~ "gimp\.en\.slitaz\.org$" { 1.27 + server.document-root = "/home/slitaz/www/gimp_en" 1.28 + server.errorlog = "/var/log/lighttpd/gimp.en.slitaz.org-error.log" 1.29 + accesslog.filename = "/var/log/lighttpd/gimp.en.slitaz.org-access.log" 1.30 +} 1.31 + 1.32 +# gimp.es.slitaz.org (gimp Spanish docs) 1.33 +# 1.34 +$HTTP["host"] =~ "gimp\.es\.slitaz\.org$" { 1.35 + server.document-root = "/home/slitaz/www/gimp_es" 1.36 + server.errorlog = "/var/log/lighttpd/gimp.es.slitaz.org-error.log" 1.37 + accesslog.filename = "/var/log/lighttpd/gimp.es.slitaz.org-access.log" 1.38 +} 1.39 + 1.40 +# gimp.fr.slitaz.org (gimp French docs) 1.41 +# 1.42 +$HTTP["host"] =~ "gimp\.fr\.slitaz\.org$" { 1.43 + server.document-root = "/home/slitaz/www/gimp_fr" 1.44 + server.errorlog = "/var/log/lighttpd/gimp.fr.slitaz.org-error.log" 1.45 + accesslog.filename = "/var/log/lighttpd/gimp.fr.slitaz.org-access.log" 1.46 +}
2.1 --- a/initramfs/etc/local-mirror.conf Sat Aug 27 18:30:55 2011 +0000 2.2 +++ b/initramfs/etc/local-mirror.conf Sat Aug 27 18:34:37 2011 +0000 2.3 @@ -4,12 +4,15 @@ 2.4 slitaz-tools slitaz-vz ssfs tazlito tazpanel tazpkg tazusb \ 2.5 tazwok slitaz-dev-tools website wok wok-stable wok-tiny \ 2.6 wok-undigest wok-tank my-cookutils" 2.7 -WWW="website people doc pizza cook pkgs mirror boot tank hg lfs" 2.8 +WWW="website people doc pizza cook pkgs mirror boot tank hg \ 2.9 +lfs absguide hgbook gimp.en gimp.fr gimp.es" 2.10 IP_ADDR="127.0.0.1" 2.11 ROUTER_IP="192.168.1.1" 2.12 ADDRESS="www.slitaz.org pizza.slitaz.org boot.slitaz.org \ 2.13 mirror.slitaz.org tank.slitaz.org doc.slitaz.org \ 2.14 -pkgs.slitaz.org hg.slitaz.org cook.slitaz.org people.slitaz.org lfs.slitaz.org" 2.15 +pkgs.slitaz.org hg.slitaz.org cook.slitaz.org \ 2.16 +people.slitaz.org lfs.slitaz.org absguide.slitaz.org hgbook.slitaz.org \ 2.17 +gimp.en.slitaz.org gimp.es.slitaz.org gimp.fr.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 Sat Aug 27 18:30:55 2011 +0000 3.2 +++ b/initramfs/usr/bin/local-mirror Sat Aug 27 18:34:37 2011 +0000 3.3 @@ -255,8 +255,27 @@ 3.4 #[ -f /etc/mercurial/hgweb.conf ] && sed -i 's|style = slitaz|style = gitweb|g' /etc/mercurial/hgweb.config 3.5 ;; 3.6 lfs) 3.7 - [ -d $MAIN_WWW_DIR/lfs ] || ln -sf /usr/share/doc/lfs-book $MAIN_WWW_DIR/lfs 3.8 - ;; 3.9 + [ -d $MAIN_WWW_DIR/lfs ] || ln -sf /usr/share/doc/lfs-book $MAIN_WWW_DIR/lfs ;; 3.10 + hgbook) 3.11 + if [ -d /usr/share/hgbook ]; then 3.12 + [ -d $MAIN_WWW_DIR/hgbook ] || ln -sf /usr/share/hgbook $MAIN_WWW_DIR/hgbook 3.13 + fi ;; 3.14 + absguide) 3.15 + if [ -d /usr/share/absguide ]; then 3.16 + [ -d $MAIN_WWW_DIR/absguide ] || ln -sf /usr/share/absguide $MAIN_WWW_DIR/absguide 3.17 + fi ;; 3.18 + gimp.en) 3.19 + if [ -d /usr/share/gimp/2.0/help/en ]; then 3.20 + [ -d $MAIN_WWW_DIR/gimp_en ] || ln -sf /usr/share/gimp/2.0/help/en $MAIN_WWW_DIR/gimp_en 3.21 + fi ;; 3.22 + gimp.fr) 3.23 + if [ -d /usr/share/gimp/2.0/help/fr ]; then 3.24 + [ -d $MAIN_WWW_DIR/gimp_fr ] || ln -sf /usr/share/gimp/2.0/help/fr $MAIN_WWW_DIR/gimp_fr 3.25 + fi ;; 3.26 + gimp.es) 3.27 + if [ -d /usr/share/gimp/2.0/help/es ]; then 3.28 + [ -d $MAIN_WWW_DIR/gimp_es ] || ln -sf /usr/share/gimp/2.0/help/es $MAIN_WWW_DIR/gimp_es 3.29 + fi ;; 3.30 esac 3.31 } 3.32