--- /dev/null
+
+To only operate a mirror of packages.d.o, the following packages
+need to be installed:
+
+ liblocale-maketext-lexicon-perl
+ libi18n-acceptlanguage-perl
+ libnumber-format-perl
+ libcompress-zlib-perl
+ libhtml-parser-perl
+ libmldbm-perl
+ libtext-iconv-perl
+ libclass-accessor-perl
+ liburi-perl
+ libtemplate-perl
+ liblingua-stem-perl
+ libsearch-xapian-perl (bpo)
+
+ apache2-mpm-worker
+ libapache2-mod-perl2
+
+The following apache modules need to be active
+
+ rewrite
+ expires
+ perl
+ setenvif
+ alias
+ negotiation
+
--- /dev/null
+#!/bin/bash
+
+set -e
+
+topdir="$1"
+[ -n "$topdir" -a -d "$topdir" ] || exit 1
+mirror="$topdir/mirror"
+
+mkdir -p "$mirror"
+
+STAMP=$(date "+%Y%m%d%H%M")
+new="$mirror/$STAMP"
+mkdir $new
+
+if lockfile -! -r2 -300 "$mirror/mirror.lock"
+then
+ echo "couldn't aquire mirror.lock in due time"
+ exit 1;
+fi
+
+mkdir -p "$new/cache"
+chmod 777 "$new/cache"
+
+cd "$new"
+ln -f "$topdir/config.sh"
+ln -f "$topdir/README.Mirror"
+
+mkdir -p "$new/bin"
+cd "$new/bin"
+ln -f "$topdir/bin/mod_perl-startup"
+
+mkdir -p "$new/conf"
+cd "$new/conf"
+ln -f "$topdir/conf/apache.conf"
+
+mkdir -p "$new/cgi-bin"
+cd "$new/cgi-bin"
+ln -f "$topdir/cgi-bin/dispatcher.pl"
+
+for d in lib files templates po www
+do
+ mkdir -p "$new/$d"
+ rsync -avH --link-dest "$topdir/$d" \
+ --exclude '*.new' --exclude '*.sed.in' \
+ --exclude '*.slices' --exclude '*~' \
+ --exclude '*.lock' --exclude '*.ttc' --exclude 'logs/' \
+ --exclude 'packages/*/' --exclude 'changelogs.*' \
+ --exclude 'changelogs/**/log' \
+ --exclude "/auto" --exclude "/Search" --exclude "/perl" \
+ --delete-excluded --delete-after \
+ "$topdir/$d/" "$new/$d/"
+done
+
+ln -sfT $new $mirror/current
+find $mirror -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 \
+ | xargs --no-run-if-empty -0 rm -rf
+
+rm -f "$mirror/mirror.lock"
ServerAdmin webmaster@debian.org
DocumentRoot %TOPDIR%/www/
ServerName %SITE%
- ServerAlias newpackages.debian.org
+ ServerAlias packages-piatti.debian.org packages-powell.debian.org
ErrorLog /var/log/apache2/%SITE%-error.log
CustomLog /var/log/apache2/%SITE%-access.log combined