#
# example configuration file for debianqueued
#
# $Id: config,v 1.13 1998/04/23 10:56:53 ftplinux Exp $
#
# $Log: config,v $
# Revision 1.13  1998/04/23 10:56:53  ftplinux
# Added new config var $chmod_on_master.
#
# Revision 1.12  1998/02/17 10:57:21  ftplinux
# Added @test_binaries
#
# Revision 1.11  1997/12/09 13:51:46  ftplinux
# Implemented rejecting of nonus packages (new config var @nonus_packages)
#
# Revision 1.10  1997/10/30 11:32:39  ftplinux
# Implemented warning mails for incomplete uploads that miss a .changes
# file. Maintainer address can be extracted from *.deb, *.diff.gz,
# *.dsc, or *.tar.gz files with help of new utility functions
# is_debian_file, get_maintainer, and debian_file_stem.
#
# Revision 1.9  1997/09/17 12:16:33  ftplinux
# Added writing summaries to a file
#
# Revision 1.8  1997/08/18 13:07:14  ftplinux
# Implemented summary mails
#
# Revision 1.7  1997/08/11 12:49:09  ftplinux
# Implemented logfile rotating
#
# Revision 1.6  1997/08/07 09:25:21  ftplinux
# Added timeout for remote operations
#
# Revision 1.5  1997/07/09 10:14:58  ftplinux
# Change RCS Header: to Id:
#
# Revision 1.4  1997/07/09 10:13:51  ftplinux
# Alternative implementation of status file as plain file (not FIFO), because
# standard wu-ftpd doesn't allow retrieval of non-regular files. New config
# option $statusdelay for this.
#
# Revision 1.3  1997/07/08 08:34:14  ftplinux
# If dqueued-watcher runs as cron job, $PATH might not contain gzip. Use extra
# --use-compress-program option to tar, and new config var $gzip.
#
# Revision 1.2  1997/07/03 13:06:48  ftplinux
# Little last changes before beta release
#
# Revision 1.1.1.1  1997/07/03 12:54:59  ftplinux
# Import initial sources
#

# set to != 0 for debugging output (to log file)
$debug = 0;

# various programs:
# -----------------
$pgp       = "/usr/bin/pgp";
$ssh       = "/usr/bin/ssh";
$scp       = "/usr/bin/scp";
$ssh_agent = "/usr/bin/ssh-agent";
$ssh_add   = "/usr/bin/ssh-add";
$md5sum    = "/usr/bin/md5sum";
$mail      = "/usr/bin/mail";
$mkfifo    = "/usr/bin/mkfifo";
$tar       = "/bin/tar"; # must be GNU tar!
$gzip      = "/bin/gzip";
$ar        = "/usr/bin/ar"; # must support p option, optional

# binaries which existance should be tested before each queue run
#@test_binaries = ();

# general options to ssh/scp
$ssh_options = "-o'BatchMode yes' -o'FallBackToRsh no' ".
               "-o'ForwardAgent no' -o'ForwardX11 no' ".
               "-o'PasswordAuthentication no' -o'StrictHostKeyChecking yes'";

# ssh key file to use for connects to master (empty: default ~/.ssh/identity)
$ssh_key_file = "";

# the incoming dir we live in
$incoming = "/home/ftp/pub/Debian/UploadQueue";

# files not to delete in $incoming (regexp)
$keep_files = '(status|\.message|README)$';

# Change files to mode 644 locally (after md5 check) or only on master?
$chmod_on_master = 0;

# name of the status file or named pipe in the incoming dir
$statusfile = "$incoming/status";

# if 0, status file implemented as FIFO; if > 0, status file is plain
# file and updated with a delay of this many seconds
$statusdelay = 0;

# name of Debian keyring file
# ($queued_dir defined in debianqueued and dqueued-watcher!)
$keyring = "$queued_dir/debian-keyring.pgp";

# archive (e.g. inside Debian mirror) that contains the keyring
$keyring_archive = "/usr/doc/debian/debian-keyring.tar.gz";

# path of keyring inside that archive (relative)
$keyring_archive_name = "debian-keyring/debian-keyring.pgp";

# our log file
$logfile = "$queued_dir/log";

# our pid file
$pidfile = "$queued_dir/pid";

# name of master
$master = "master.debian.org";

# login name on master
$masterlogin = "queue";

# incoming on master
$masterdir = "/home/Debian/ftp/private/project/Incoming";

# max. number of tries to upload
$max_upload_retries = 8;

# delay after first failed upload
$upload_delay_1 = 30*60; # 30 min.

# delay between successive failed uploads
$upload_delay_2 = 4*60*60; # 4 hours

# packages that must go to nonus.debian.org and thus are rejected here
@nonus_packages = qw( apache-ssl bzip cfs crypt++el des-solnet pgp
                      rsaref sambades speak-freely ssh ssleay
                      ssltelnet unzip-crypt zip-crypt );

# timings:
# --------
#   time between two queue checks
$queue_delay = 10*60; # 10 min.
#   when are stray files deleted?
$stray_remove_timeout = 24*60*60; # 1 day
#   delay before reporting problems with a .changes file (not
#   immediately for to-be-continued uploads)
$problem_report_timeout = 30*60; # 30 min.
#   delay before reporting that a .changes file is missing (not
#   immediately for to-be-continued uploads)
$no_changes_timeout = 30*60; # 30 min.
#   when are .changes with persistent problems removed?
$bad_changes_timeout = 2*24*60*60; # 2 days
#   how long may a remote operation (ssh/scp) take?
$remote_timeout = 3*60*60; # 3 hours

# mail address of maintainer
$maintainer_mail = "Roman.Hodek\@informatik.uni-erlangen.de";


# logfile rotating:
# -----------------
#    how often to rotate (in days)
$log_age = 7;
#    how much old logs to keep
$log_keep = 4;
#    send summary mail when rotating logs?
$mail_summary = 1;
#    write summary to file when rotating logs? (no if name empty)
$summary_file = "$queued_dir/summary";

# don't remove this, Perl needs it!
1;
