# debian-dists runs mirror packages for
# one or more Debian binary distributions.
# For use with the mirror-master perl script.
# Version: 1.13 2001/09/21
#
# Copyright (C) 2001 Ian Maclaine-cross (i.maclaine-cross@unsw.edu.au)
# 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 a
# crontab line like:
# 5 1 * * * nice mirror-master /etc/mirror/mm/debian-dists
#
# On first installation /var/log/mirror/ and other local directories
# specified below in this file and /etc/mirror/packages/debian-dists
# 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.
# Add "ftpadm" to ftpd's etc/group and etc/passwd using ftpd documentation.
# 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 two package lines at a time to patch ls-lR's before use
# Theoretically debian-dists:debian could start before debian-dists:patch
# was finished but not with appropriate site='s in packages/debian-dists.
max=2

# mirror these if last mirroring was at least 5h ago
debian-dists:patch-non-US 5 5
debian-dists:patch 5 5

# mirror these if last mirroring was at least 20h ago
debian-dists:debian-security 20 20
debian-dists:debian-non-US 20 20
debian-dists:debian 20 20
