# HG changeset patch # User Christophe Lincoln # Date 1331994218 -3600 # Node ID e9cd3d0d6e6e5b6f3a04e48bd9c29fed887f591b # Parent 5f1d82daad41336410a8df4dbdf5eca15be38cd6 mirror-tools: Moved /etc files to slitaz-forge/mirror diff -r 5f1d82daad41 -r e9cd3d0d6e6e mirror-tools/rootfs/etc/lighttpd/vhosts.conf --- a/mirror-tools/rootfs/etc/lighttpd/vhosts.conf Wed Mar 14 19:02:31 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,184 +0,0 @@ -# /etc/lighttpd/vhosts.conf : Virtual hosts configuration file. -# - -# Example.org -# -#$HTTP["host"] =~ "(^|\.)example\.org$" { - #server.document-root = "/var/www/vhost/exemple.com/html" - #server.errorlog = "/var/log/lighttpd/example.org-error.log" - #accesslog.filename = "/var/log/lighttpd/example.org-access.log" -#} - -# mirror.slitaz.org (Server canonical hostname) -# -$HTTP["host"] =~ "^mirror([0-9]*)\.slitaz\.org$" { - server.document-root = "/var/www/slitaz/mirror" - server.errorlog = "/var/log/lighttpd/mirror.slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/mirror.slitaz.org-access.log" - - include "awstats.conf" - - alias.url += ( "/info" => "/var/www/mirror-info/" ) - - alias.url += ( "/pizza" => "/var/www/pizza/" ) - - alias.url += ( "/doc" => "/var/www/doc/" ) - var.dokudir = "/doc" - # Rewrites for dokuwiki - url.rewrite = ( - "^" + var.dokudir + "/lib/.*$" => "$0", - "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2", - "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1", - "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2", - "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1", - "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3", - "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2", - "^" + var.dokudir + "/doku.php.*" => "$0", - "^" + var.dokudir + "/feed.php.*" => "$0", - "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2", - "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1" - ) - - alias.url += ( "/webboot" => "/var/www/boot/" ) - - alias.url += ( "/pkgs" => "/var/www/pkgs/" ) - index-file.names += ( "search.sh" ) - cgi.assign += ( - ".sh" => "/bin/sh" - ) - - alias.url += ( "/hg" => "/var/www/hg/" ) -### url.rewrite-once = ( "/hg(.*)" => "/hg/hgwebdir.py$1" ) - index-file.names += ( "hgwebdir.py" ) - cgi.assign += ( - ".py" => "/usr/bin/python" - ) - - alias.url += ( "/www" => "/home/slitaz/website" ) - -# alias.url += ( "/tiny" => "/var/www/pizza/tiny/demos/192.168.0.6/var/www" ) -# index-file.names += ( "index.sh" ) - - index-file.names += ( "index.html" ) - index-file.names += ( "index.php" ) - # Last but not least... - index-file.names += ( "/dir-generator.php" ) -} - -## info.mirror.slitaz.org -## -#$HTTP["host"] =~ "^info\.mirror\.slitaz\.org$" { -# server.document-root = "/var/www/mirror-info/" -# server.errorlog = "/var/log/lighttpd/info.mirror.slitaz.org-error.log" -# accesslog.filename = "/var/log/lighttpd/info.mirror.slitaz.org-access.log" -# include "awstats.conf" -#} - -$HTTP["host"] =~ "ajaxterm\.slitaz\.org$" { - proxy.server = ( "/" => - ( ( "host" => "127.0.0.1", "port" => 8022 ) ) - ) -} - -# pizza.slitaz.org (Server canonical hostname) -# -$HTTP["host"] =~ "^pizza\.slitaz\.org$" { - server.document-root = "/var/www/pizza" - server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log" - include "awstats.conf" - index-file.names += ( "index.php" ) -} - -# slitaz.org -# -#$HTTP["host"] =~ "(^|www\.)slitaz\.org$" { -$HTTP["host"] =~ "www\.slitaz\.org$" { - server.document-root = "/home/slitaz/website" - server.errorlog = "/var/log/lighttpd/slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log" - include "awstats.conf" - -### index-file.names = ( "index.html" ) - index-file.names += ( "start.html" ) - - -### url.rewrite-once = ( -### "^/about" => "/fr/about", -### "^/artwork" => "/fr/artwork", -### "^/devel" => "/fr/devel", -### "^/doc" => "/fr/doc", -### "^/get" => "/fr/get", -### "^/packages" => "/fr/packages" -### ) - -} - -# doc.slitaz.org -# -$HTTP["host"] =~ "doc\.slitaz\.org$" { - server.document-root = "/var/www/doc" - server.errorlog = "/var/log/lighttpd/doc.slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/doc.slitaz.org-access.log" - index-file.names = ("doku.php") - var.dokudir = "" - # Rewrites for dokuwiki - url.rewrite = ( - "^" + var.dokudir + "/lib/.*$" => "$0", - "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2", - "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1", - "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2", - "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1", - "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3", - "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2", - "^" + var.dokudir + "/doku.php.*" => "$0", - "^" + var.dokudir + "/feed.php.*" => "$0", - "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2", - "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1" - ) -} - -# boot.slitaz.org -# -$HTTP["host"] =~ "boot\.slitaz\.org$" { - server.document-root = "/var/www/boot" - server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log" -} - -# pkgs.slitaz.org -# -$HTTP["host"] =~ "pkgs\.slitaz\.org$" { - server.document-root = "/var/www/pkgs" - server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log" - index-file.names += ( "search.sh" ) - cgi.assign = ( - ".sh" => "/bin/sh" - ) -} - -# hg.slitaz.org (Mercurial repos) -# -$HTTP["host"] =~ "hg\.slitaz\.org" { - cgi.assign = ( - ".py" => "/usr/bin/python" - ) - server.document-root = "/var/www/hg" -# url.rewrite-once = ( "(.*)" => "/hgwebdir.py$1" ) - index-file.names += ( "hgwebdir.py" ) -} - -# scn.slitaz.org (SliTaz Community Network) -# -$HTTP["host"] =~ "scn\.slitaz\.org$" { - server.document-root = "/var/www/scn" - server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log" - accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log" - url.rewrite-final = ( - "^/system/test/(.*)$" => "/index.php?q=system/test/$1", - "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2", - "^/([^.?]*)$" => "/index.php?q=$1", - "^/rss.xml" => "/index.php?q=rss.xml" - ) -} diff -r 5f1d82daad41 -r e9cd3d0d6e6e mirror-tools/rootfs/etc/rsyncd.conf --- a/mirror-tools/rootfs/etc/rsyncd.conf Wed Mar 14 19:02:31 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -# rsynd configuration for SliTaz mirror -# -motd file=/etc/rsyncd.motd -log file=/var/log/rsyncd -pid file=/var/run/rsyncd.pid - - -[slitaz] - - comment = SliTaz GNU/Linux mirror - path = /var/www/slitaz/mirror - use chroot = yes - max connections = 5 - lock file = /var/lock/rsyncd - read only = yes - list = yes - uid = nobody - gid = nogroup - strict modes = yes - ignore errors = no - ignore nonreadable = yes - transfer logging = no - timeout = 600 - refuse options = checksum dry-run - dont compress = *.gz *.tgz *.zip *.iso *.bz2 *.tazpkg diff -r 5f1d82daad41 -r e9cd3d0d6e6e mirror-tools/rootfs/etc/rsyncd.motd --- a/mirror-tools/rootfs/etc/rsyncd.motd Wed Mar 14 19:02:31 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -=============================================================================== - - SliTaz GNU/Linux mirror - http://www.slitaz.org/ - -=============================================================================== - -modules: - - * slitaz --> ISO, packages, boot... all stuff - -=============================================================================== - diff -r 5f1d82daad41 -r e9cd3d0d6e6e mirror-tools/rootfs/etc/tazwok.conf.mirror --- a/mirror-tools/rootfs/etc/tazwok.conf.mirror Wed Mar 14 19:02:31 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -# tazwok.conf: Tazwok configuration file. -# - -# Wok directory/tree to find receipts and build packages. -# By default on SliTaz the directory is /home/slitaz/wok. -WOK="/slitaz/home/slitaz/wok" - -# The path to the source tarballs of the binary packages. -SOURCES_REPOSITORY="/slitaz/home/slitaz/src" - -# This path sets the binary packages repository. It's where all -# the gen *.tazpkg will be stored when using a gen-repository command. -PACKAGES_REPOSITORY="/var/www/slitaz/mirror/packages/cooking" - -# Default build host. -BUILD_HOST=i486-pc-linux-gnu - -# Default tool prefix. -TOOLPREFIX="${BUILD_HOST}-" - -# Default arguments for GNU configure. -CONFIGURE_ARGS="--build=$BUILD_HOST --host=$BUILD_HOST" - -# Translation files to include in packages, note that you can specify -# several locales. -LOCALE="fr" - -# Mirrors URLs. To download sources near your location. -# GNU mirror : -# -GNU_MIRROR="http://ftpmirror.gnu.org" - -# SourceForge mirror : -# -SF_MIRROR="http://prdownloads.sourceforge.net/sourceforge" - -# Xorg mirror : -# -XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual" - -# FSH standards directories with init. Package generation will abort if -# a file is installed in a non-specified path. Note /vz is for OpenVZ. -FSH="bin boot dev etc home init lib media mnt proc root sbin share sys \ -tmp usr var vz usr/bin usr/games usr/include usr/lib usr/local usr/sbin \ -usr/share usr/src"