slitaz-dev-tools rev 160

mirror-tools: Moved /etc files to slitaz-forge/mirror
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 17 15:23:38 2012 +0100 (2012-03-17)
parents 5f1d82daad41
children d8555182bb67
files mirror-tools/rootfs/etc/lighttpd/vhosts.conf mirror-tools/rootfs/etc/rsyncd.conf mirror-tools/rootfs/etc/rsyncd.motd mirror-tools/rootfs/etc/tazwok.conf.mirror
line diff
     1.1 --- a/mirror-tools/rootfs/etc/lighttpd/vhosts.conf	Wed Mar 14 19:02:31 2012 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,184 +0,0 @@
     1.4 -# /etc/lighttpd/vhosts.conf : Virtual hosts configuration file.
     1.5 -#
     1.6 -
     1.7 -# Example.org
     1.8 -#
     1.9 -#$HTTP["host"] =~ "(^|\.)example\.org$" {
    1.10 -  #server.document-root = "/var/www/vhost/exemple.com/html"
    1.11 -  #server.errorlog = "/var/log/lighttpd/example.org-error.log"
    1.12 -  #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
    1.13 -#}
    1.14 -
    1.15 -# mirror.slitaz.org (Server canonical hostname)
    1.16 -#
    1.17 -$HTTP["host"] =~ "^mirror([0-9]*)\.slitaz\.org$" {
    1.18 -  server.document-root = "/var/www/slitaz/mirror"
    1.19 -  server.errorlog = "/var/log/lighttpd/mirror.slitaz.org-error.log"
    1.20 -  accesslog.filename = "/var/log/lighttpd/mirror.slitaz.org-access.log"
    1.21 -  
    1.22 -  include "awstats.conf"
    1.23 -  
    1.24 -  alias.url += ( "/info" => "/var/www/mirror-info/" )
    1.25 -  
    1.26 -  alias.url += ( "/pizza" => "/var/www/pizza/" )
    1.27 -  
    1.28 -  alias.url += ( "/doc" => "/var/www/doc/" )
    1.29 -  var.dokudir = "/doc"
    1.30 -  # Rewrites for dokuwiki
    1.31 -  url.rewrite = (
    1.32 -    "^" + var.dokudir + "/lib/.*$"              => "$0",
    1.33 -     "^" + var.dokudir + "/_media/(.*)?\?(.*)$"  => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
    1.34 -     "^" + var.dokudir + "/_media/(.*)$"         => var.dokudir + "/lib/exe/fetch.php?media=$1",
    1.35 -     "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
    1.36 -     "^" + var.dokudir + "/_detail/(.*)?$"       => var.dokudir + "/lib/exe/detail.php?media=$1",
    1.37 -     "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
    1.38 -     "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
    1.39 -     "^" + var.dokudir + "/doku.php.*"           => "$0",
    1.40 -     "^" + var.dokudir + "/feed.php.*"           => "$0",
    1.41 -     "^" + var.dokudir + "/(.*)\?(.*)"           => var.dokudir + "/doku.php?id=$1&$2",
    1.42 -     "^" + var.dokudir + "/(.*)"                 => var.dokudir + "/doku.php?id=$1"
    1.43 -  )
    1.44 -
    1.45 -  alias.url += ( "/webboot" => "/var/www/boot/" )
    1.46 -
    1.47 -  alias.url += ( "/pkgs" => "/var/www/pkgs/" )
    1.48 -  index-file.names += ( "search.sh" )
    1.49 -  cgi.assign += (
    1.50 -    ".sh" => "/bin/sh"
    1.51 -  )
    1.52 -
    1.53 -  alias.url += ( "/hg" => "/var/www/hg/" )
    1.54 -###  url.rewrite-once = ( "/hg(.*)" => "/hg/hgwebdir.py$1" )
    1.55 -  index-file.names += ( "hgwebdir.py" )
    1.56 -  cgi.assign += (
    1.57 -    ".py" => "/usr/bin/python"
    1.58 -  )
    1.59 -
    1.60 -  alias.url += ( "/www" => "/home/slitaz/website" )
    1.61 -  
    1.62 -#  alias.url += ( "/tiny" => "/var/www/pizza/tiny/demos/192.168.0.6/var/www" )
    1.63 -#  index-file.names += ( "index.sh" )
    1.64 -  
    1.65 -  index-file.names += ( "index.html" )
    1.66 -  index-file.names += ( "index.php" )
    1.67 -  # Last but not least...
    1.68 -  index-file.names += ( "/dir-generator.php" )
    1.69 -}
    1.70 -
    1.71 -## info.mirror.slitaz.org
    1.72 -##
    1.73 -#$HTTP["host"] =~ "^info\.mirror\.slitaz\.org$" {
    1.74 -#  server.document-root = "/var/www/mirror-info/"
    1.75 -#  server.errorlog = "/var/log/lighttpd/info.mirror.slitaz.org-error.log"
    1.76 -#  accesslog.filename = "/var/log/lighttpd/info.mirror.slitaz.org-access.log"
    1.77 -#  include "awstats.conf"
    1.78 -#}
    1.79 -
    1.80 -$HTTP["host"] =~ "ajaxterm\.slitaz\.org$" {
    1.81 -  proxy.server = ( "/" => 
    1.82 -  	( ( "host" => "127.0.0.1", "port" => 8022 ) )
    1.83 -  )
    1.84 -}
    1.85 -
    1.86 -# pizza.slitaz.org (Server canonical hostname)
    1.87 -#
    1.88 -$HTTP["host"] =~ "^pizza\.slitaz\.org$" {
    1.89 -  server.document-root = "/var/www/pizza"
    1.90 -  server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log"
    1.91 -  accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log"
    1.92 -  include "awstats.conf"
    1.93 -  index-file.names += ( "index.php" )
    1.94 -}
    1.95 -
    1.96 -# slitaz.org
    1.97 -#
    1.98 -#$HTTP["host"] =~ "(^|www\.)slitaz\.org$" {
    1.99 -$HTTP["host"] =~ "www\.slitaz\.org$" {
   1.100 -  server.document-root = "/home/slitaz/website"
   1.101 -  server.errorlog = "/var/log/lighttpd/slitaz.org-error.log"
   1.102 -  accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log"
   1.103 -  include "awstats.conf"
   1.104 -  
   1.105 -###  index-file.names = ( "index.html" )
   1.106 -  index-file.names += ( "start.html" )
   1.107 -  
   1.108 -  
   1.109 -###  url.rewrite-once = (
   1.110 -###    "^/about" => "/fr/about",
   1.111 -###	"^/artwork" => "/fr/artwork",
   1.112 -###	"^/devel" => "/fr/devel",
   1.113 -###    "^/doc" => "/fr/doc",
   1.114 -###	"^/get" => "/fr/get",
   1.115 -###	"^/packages" => "/fr/packages"
   1.116 -###  )
   1.117 - 
   1.118 -}
   1.119 -
   1.120 -# doc.slitaz.org
   1.121 -#
   1.122 -$HTTP["host"] =~ "doc\.slitaz\.org$" {
   1.123 -  server.document-root = "/var/www/doc"
   1.124 -  server.errorlog = "/var/log/lighttpd/doc.slitaz.org-error.log"
   1.125 -  accesslog.filename = "/var/log/lighttpd/doc.slitaz.org-access.log"
   1.126 -  index-file.names = ("doku.php")
   1.127 -  var.dokudir = ""
   1.128 -  # Rewrites for dokuwiki
   1.129 -  url.rewrite = (
   1.130 -    "^" + var.dokudir + "/lib/.*$"              => "$0",
   1.131 -     "^" + var.dokudir + "/_media/(.*)?\?(.*)$"  => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
   1.132 -     "^" + var.dokudir + "/_media/(.*)$"         => var.dokudir + "/lib/exe/fetch.php?media=$1",
   1.133 -     "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
   1.134 -     "^" + var.dokudir + "/_detail/(.*)?$"       => var.dokudir + "/lib/exe/detail.php?media=$1",
   1.135 -     "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
   1.136 -     "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
   1.137 -     "^" + var.dokudir + "/doku.php.*"           => "$0",
   1.138 -     "^" + var.dokudir + "/feed.php.*"           => "$0",
   1.139 -     "^" + var.dokudir + "/(.*)\?(.*)"           => var.dokudir + "/doku.php?id=$1&$2",
   1.140 -     "^" + var.dokudir + "/(.*)"                 => var.dokudir + "/doku.php?id=$1"
   1.141 -  )
   1.142 -}
   1.143 -
   1.144 -# boot.slitaz.org
   1.145 -#
   1.146 -$HTTP["host"] =~ "boot\.slitaz\.org$" {
   1.147 -  server.document-root = "/var/www/boot"
   1.148 -  server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
   1.149 -  accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
   1.150 -}
   1.151 -
   1.152 -# pkgs.slitaz.org
   1.153 -#
   1.154 -$HTTP["host"] =~ "pkgs\.slitaz\.org$" {
   1.155 -  server.document-root = "/var/www/pkgs"
   1.156 -  server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
   1.157 -  accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
   1.158 -  index-file.names += ( "search.sh" )
   1.159 -  cgi.assign = (
   1.160 -    ".sh" => "/bin/sh"
   1.161 -  )
   1.162 -}
   1.163 -
   1.164 -# hg.slitaz.org (Mercurial repos)
   1.165 -#
   1.166 -$HTTP["host"] =~ "hg\.slitaz\.org" {
   1.167 -  cgi.assign = (
   1.168 -    ".py" => "/usr/bin/python"
   1.169 -  )
   1.170 -  server.document-root = "/var/www/hg"
   1.171 -#  url.rewrite-once = ( "(.*)" => "/hgwebdir.py$1" )
   1.172 -  index-file.names += ( "hgwebdir.py" )
   1.173 -}
   1.174 -
   1.175 -# scn.slitaz.org (SliTaz Community Network)
   1.176 -#
   1.177 -$HTTP["host"] =~ "scn\.slitaz\.org$" {
   1.178 -  server.document-root = "/var/www/scn"
   1.179 -  server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log"
   1.180 -  accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log"
   1.181 -  url.rewrite-final = (
   1.182 -    "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
   1.183 -    "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
   1.184 -    "^/([^.?]*)$" => "/index.php?q=$1",
   1.185 -    "^/rss.xml" => "/index.php?q=rss.xml"
   1.186 -  )
   1.187 -}
     2.1 --- a/mirror-tools/rootfs/etc/rsyncd.conf	Wed Mar 14 19:02:31 2012 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,25 +0,0 @@
     2.4 -# rsynd configuration for SliTaz mirror
     2.5 -#
     2.6 -motd file=/etc/rsyncd.motd
     2.7 -log file=/var/log/rsyncd
     2.8 -pid file=/var/run/rsyncd.pid
     2.9 -
    2.10 -
    2.11 -[slitaz]
    2.12 -
    2.13 -	comment = SliTaz GNU/Linux mirror
    2.14 -	path = /var/www/slitaz/mirror
    2.15 -	use chroot = yes
    2.16 -	max connections = 5
    2.17 -	lock file = /var/lock/rsyncd
    2.18 -	read only = yes
    2.19 -	list = yes
    2.20 -	uid = nobody
    2.21 -	gid = nogroup
    2.22 -	strict modes = yes
    2.23 -	ignore errors = no
    2.24 -	ignore nonreadable = yes
    2.25 -	transfer logging = no
    2.26 -	timeout = 600
    2.27 -	refuse options = checksum dry-run
    2.28 -	dont compress = *.gz *.tgz *.zip *.iso *.bz2 *.tazpkg
     3.1 --- a/mirror-tools/rootfs/etc/rsyncd.motd	Wed Mar 14 19:02:31 2012 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,12 +0,0 @@
     3.4 -===============================================================================
     3.5 -
     3.6 -	SliTaz GNU/Linux mirror - http://www.slitaz.org/
     3.7 -
     3.8 -===============================================================================
     3.9 -
    3.10 -modules: 
    3.11 -
    3.12 - * slitaz      		--> ISO, packages, boot... all stuff 
    3.13 -
    3.14 -===============================================================================
    3.15 -
     4.1 --- a/mirror-tools/rootfs/etc/tazwok.conf.mirror	Wed Mar 14 19:02:31 2012 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,45 +0,0 @@
     4.4 -# tazwok.conf: Tazwok configuration file.
     4.5 -#
     4.6 -
     4.7 -# Wok directory/tree to find receipts and build packages.
     4.8 -# By default on SliTaz the directory is /home/slitaz/wok.
     4.9 -WOK="/slitaz/home/slitaz/wok"
    4.10 -
    4.11 -# The path to the source tarballs of the binary packages.
    4.12 -SOURCES_REPOSITORY="/slitaz/home/slitaz/src"
    4.13 -
    4.14 -# This path sets the binary packages repository. It's where all
    4.15 -# the gen *.tazpkg will be stored when using a gen-repository command.
    4.16 -PACKAGES_REPOSITORY="/var/www/slitaz/mirror/packages/cooking"
    4.17 -
    4.18 -# Default build host.
    4.19 -BUILD_HOST=i486-pc-linux-gnu
    4.20 -
    4.21 -# Default tool prefix.
    4.22 -TOOLPREFIX="${BUILD_HOST}-"
    4.23 -
    4.24 -# Default arguments for GNU configure.
    4.25 -CONFIGURE_ARGS="--build=$BUILD_HOST --host=$BUILD_HOST"
    4.26 -
    4.27 -# Translation files to include in packages, note that you can specify
    4.28 -# several locales.
    4.29 -LOCALE="fr"
    4.30 -
    4.31 -# Mirrors URLs. To download sources near your location.
    4.32 -# GNU mirror :
    4.33 -#
    4.34 -GNU_MIRROR="http://ftpmirror.gnu.org" 
    4.35 -
    4.36 -# SourceForge mirror :
    4.37 -#
    4.38 -SF_MIRROR="http://prdownloads.sourceforge.net/sourceforge" 
    4.39 -
    4.40 -# Xorg mirror :
    4.41 -#
    4.42 -XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
    4.43 -
    4.44 -# FSH standards directories with init. Package generation will abort if
    4.45 -# a file is installed in a non-specified path. Note /vz is for OpenVZ.
    4.46 -FSH="bin boot dev etc home init lib media mnt proc root sbin share sys \
    4.47 -tmp usr var vz usr/bin usr/games usr/include usr/lib usr/local usr/sbin \
    4.48 -usr/share usr/src"