Merge branch 'master' into distorted
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 May 2012 01:16:25 +0000 (02:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 May 2012 01:16:25 +0000 (02:16 +0100)
* master:
  bin/debian-excludes: Use rsync program configured in RSYNC variable.

.userv/rc
bin/run-mirrors
etc/ftpsync-common.conf
etc/ftpsync-debian-security.conf
etc/ftpsync-debian.conf
etc/logrotate.conf
etc/mirror.packages
etc/mirrors.d/50-debian [new file with mode: 0755]
etc/mirrors.d/50-mirror [new file with mode: 0755]
etc/mirrors.d/50-rfc [new file with mode: 0755]

index b86f0c0..daff920 100644 (file)
--- a/.userv/rc
+++ b/.userv/rc
@@ -1,7 +1,9 @@
 ### -*-conf-*-
 
 if ( glob service run
-   & glob calling-group ftpadmin
+   & ( glob calling-group ftpadmin
+     | glob calling-user root
+     )
    )
        no-suppress-args
        execute bin/run-mirrors
index ef7f92c..d13619a 100755 (executable)
@@ -9,7 +9,7 @@ case $(id -un) in
 esac
 
 ## Set up a plausible environment.
-HOME=/var/lib/mirror-admin; export HOME; cd
+HOME=/var/lib/mirror; export HOME; cd
 PATH=$HOME/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin
 export PATH
 umask 002
index 61712f4..1081b8a 100644 (file)
 ## CAREFUL, this directory will contain the mirror. Everything else that
 ## might have happened to be in there WILL BE GONE after the mirror sync!
 : ${LABEL="debian"}
-: ${TO="/mnt/mirror/$LABEL/"}
+: ${TO="/mnt/ftp/pub/mirrors/$LABEL/"}
 
 ## The upstream name of the rsync share.
 : ${RSYNC_PATH="$LABEL"}
 
 ## The host we mirror from
-: ${RSYNC_HOST=ftp.de.debian.org}
+: ${RSYNC_HOST=ftp.uk.debian.org}
 
 ## In case we need a user to access the rsync share at our upstream host
 : ${RSYNC_USER=}
@@ -83,7 +83,6 @@
 ## want.  Crazy, no?
 ARCH_EXCLUDE=$(
        bin/debian-excludes $RSYNC_HOST $RSYNC_PATH $WANT_ARCH $SEARCH_DISTS
-       echo source
 )
 
 ## Do we have leaf mirror to signal we are done and they should sync?
index 17aaf8d..7069fa8 100644 (file)
@@ -5,7 +5,7 @@
 LABEL=debian-security
 RSYNC_HOST=security.debian.org
 SEARCH_DISTS=$(
-       for i in oldstable stable testing; do
+       for i in stable testing; do
          echo $i/updates
        done
 )
index 3417c94..db7a9fd 100644 (file)
@@ -3,7 +3,7 @@
 ### ftpsync configuration for the Debian main archive.
 
 LABEL=debian
-RSYNC_HOST=ftp.de.debian.org
-SEARCH_DISTS="oldstable stable testing unstable experimental"
+RSYNC_HOST=ftp.uk.debian.org
+SEARCH_DISTS="stable testing unstable experimental"
 
 . etc/ftpsync-common.conf
index a67d4a2..7294f61 100644 (file)
@@ -7,5 +7,5 @@ rotate 31
 minsize 4194304
 daily
 
-/var/lib/mirror-admin/log/*.log {
+/var/lib/mirror/log/*.log {
 }
index a790722..a3c951c 100644 (file)
@@ -24,4 +24,14 @@ package=defaults
        do_deletes=true
        max_delete_files=80%
 
+###--------------------------------------------------------------------------
+### Nelson Beebe's BibTeX database archive.
+
+package=utah-bib
+       site=ftp.math.utah.edu
+       remote_dir=/pub/tex/bib/
+       local_dir=utah-bib
+       recursive=false
+       get_patt=\.bib$
+
 ###----- That's all, folks --------------------------------------------------
diff --git a/etc/mirrors.d/50-debian b/etc/mirrors.d/50-debian
new file mode 100755 (executable)
index 0000000..7f65d0d
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh -e
+###
+### Mirror Debian archives.
+
+for archive in debian-security debian; do
+  bin/ftpsync sync:all sync:archive:$archive
+done
diff --git a/etc/mirrors.d/50-mirror b/etc/mirrors.d/50-mirror
new file mode 100755 (executable)
index 0000000..da23848
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh -e
+###
+### Lee MacLoughlin's mirror scripts.
+
+here=$(pwd)
+cd /mnt/ftp/pub/mirrors
+mirror -d "$@" "$here"/etc/mirror.packages
diff --git a/etc/mirrors.d/50-rfc b/etc/mirrors.d/50-rfc
new file mode 100755 (executable)
index 0000000..0c7200c
--- /dev/null
@@ -0,0 +1,14 @@
+#! /bin/sh -e
+###
+### Mirror RFCs and Internet Drafts from mirrorservice.org
+
+. lib/functions.sh
+standard_rsync "$@" \
+  --exclude /ien/scanned/ \
+  --exclude /tar/ \
+  --exclude /internet-drafts/ \
+  www.ietf.org::everything-ftp/rfc/ \
+  /mnt/ftp/pub/mirrors/rfc/
+standard_rsync "$@" \
+  rsync.mirrorservice.org::ftp.isi.edu/internet-drafts/ \
+  /mnt/ftp/pub/mirrors/internet-drafts/