# debian-dist runs mirror packages for
# one or more Debian binary distributions.
# For use with the mirror-master perl script.
# Version: 1.20 2003/02/21

# Copyright (C) 2001-2003 Ian Maclaine-cross <iml@debian.org>
# You may use this only under the conditions of the General Public
# License in file GPL.

# Please see /usr/share/doc/mirror/README.quick for beginner's
# instructions on using this file. "man mirror-master" and
# /usr/share/doc/mirror/mm.html describe syntax and
# parameters. Usually run daily by cron using two crontab lines like:
# 3 13 * * * nice mirror-master /etc/mirror/mm/debian-dist &>/dev/null
# 3 1 * * * nice mirror-master -t /etc/mirror/mm/debian-dist
# The patch packages run twice daily to avoid missing a ls-lR.patch.gz. 

# On first installation /var/log/mirror/ and other local directories
# specified below in this file and /etc/mirror/packages/debian-dist
# are owned by root. Only root can use mirror-master with these files
# unmodified.  Any user can copy these parameter files and change the
# directories in these files to ones writable by the user.

# For safe system use create a normal user say "ftpadm" for running
# mirror and mirror-master.  Use chown -R on the directories
# /var/log/mirror/, /var/lib/mirror/, /etc/mirror/ and /home/ftp/pub/
# to allow this user to operate mirror and mirror-master.  Servers
# with more than one archivist may have an "ftpadm" group.

# Put the mirror-master logs here.
home=/var/log/mirror

# add a  -n  for testing as usual
mirror=exec mirror -p$package /etc/mirror/packages/$site 2>&1 >$site:$package

# Mirror only one package lines at a time to patch ls-lR's before use
# and minimize memory use.
max=1

# mirror patch if last mirroring was at least 5h ago and rest if 20h ago
debian-dist:patch-non-US 5 5
debian-dist:debian-non-US 20 20
debian-dist:debian-non-US-pool 20 20
debian-dist:debian-security 20 20
debian-dist:debian-security-pool 20 20
debian-dist:patch 5 5
debian-dist:debian 20 20
debian-dist:debian-pool 20 20
