2 # example configuration file for debianqueued
4 # $Id: config,v 1.15 1999/07/07 16:19:32 ftplinux Exp $
7 # Revision 1.15 1999/07/07 16:19:32 ftplinux
8 # New variables for upload methods: $upload_method, $ftptimeout,
9 # $ftpdebug, $ls, $cp, $chmod.
10 # New variables for GnuPG checking: $gpg, $gpg_keyring,
11 # $gpg_keyring_archive_name.
12 # Renamed "master" in vars to "target".
13 # Updated list of non-US packages.
15 # Revision 1.14 1998/07/06 14:25:46 ftplinux
16 # Make $keyring_archive_name use a wildcard, newer debian keyring tarball
17 # contain a dir with a date.
19 # Revision 1.13 1998/04/23 10:56:53 ftplinux
20 # Added new config var $chmod_on_master.
22 # Revision 1.12 1998/02/17 10:57:21 ftplinux
23 # Added @test_binaries
25 # Revision 1.11 1997/12/09 13:51:46 ftplinux
26 # Implemented rejecting of nonus packages (new config var @nonus_packages)
28 # Revision 1.10 1997/10/30 11:32:39 ftplinux
29 # Implemented warning mails for incomplete uploads that miss a .changes
30 # file. Maintainer address can be extracted from *.deb, *.diff.gz,
31 # *.dsc, or *.tar.gz files with help of new utility functions
32 # is_debian_file, get_maintainer, and debian_file_stem.
34 # Revision 1.9 1997/09/17 12:16:33 ftplinux
35 # Added writing summaries to a file
37 # Revision 1.8 1997/08/18 13:07:14 ftplinux
38 # Implemented summary mails
40 # Revision 1.7 1997/08/11 12:49:09 ftplinux
41 # Implemented logfile rotating
43 # Revision 1.6 1997/08/07 09:25:21 ftplinux
44 # Added timeout for remote operations
46 # Revision 1.5 1997/07/09 10:14:58 ftplinux
47 # Change RCS Header: to Id:
49 # Revision 1.4 1997/07/09 10:13:51 ftplinux
50 # Alternative implementation of status file as plain file (not FIFO), because
51 # standard wu-ftpd doesn't allow retrieval of non-regular files. New config
52 # option $statusdelay for this.
54 # Revision 1.3 1997/07/08 08:34:14 ftplinux
55 # If dqueued-watcher runs as cron job, $PATH might not contain gzip. Use extra
56 # --use-compress-program option to tar, and new config var $gzip.
58 # Revision 1.2 1997/07/03 13:06:48 ftplinux
59 # Little last changes before beta release
61 # Revision 1.1.1.1 1997/07/03 12:54:59 ftplinux
62 # Import initial sources
65 # set to != 0 for debugging output (to log file)
70 $gpg = "/usr/bin/gpg";
71 $ssh = "/usr/bin/ssh";
72 $scp = "/usr/bin/scp";
73 $ssh_agent = "/usr/bin/ssh-agent";
74 $ssh_add = "/usr/bin/ssh-add";
75 $md5sum = "/usr/bin/md5sum";
76 $mail = "/usr/bin/mail";
77 $mkfifo = "/usr/bin/mkfifo";
78 $tar = "/bin/tar"; # must be GNU tar!
80 $ar = "/usr/bin/ar"; # must support p option, optional
83 $chmod = "/bin/chmod";
85 # binaries which existance should be tested before each queue run
88 # general options to ssh/scp
89 $ssh_options = "-o'BatchMode yes' -o'FallBackToRsh no' ".
90 "-o'ForwardAgent no' -o'ForwardX11 no' ".
91 "-o'PasswordAuthentication no' -o'StrictHostKeyChecking yes'";
93 # ssh key file to use for connects to master (empty: default ~/.ssh/identity)
96 # the incoming dir we live in
97 $incoming = "/srv/queued/UploadQueue";
99 # files not to delete in $incoming (regexp)
100 $keep_files = '(status|\.message|README)$';
102 # file patterns that aren't deleted right away
103 $valid_files = '(\.changes|\.tar\.gz|\.dsc|\.u?deb|diff\.gz|\.sh)$';
105 # Change files to mode 644 locally (after md5 check) or only on master?
106 $chmod_on_target = 0;
108 # name of the status file or named pipe in the incoming dir
109 $statusfile = "$incoming/status";
111 # if 0, status file implemented as FIFO; if > 0, status file is plain
112 # file and updated with a delay of this many seconds
115 # names of the keyring files
116 @keyrings = ( "/srv/keyring.debian.org/keyrings/debian-keyring.gpg",
117 "/srv/keyring.debian.org/keyrings/debian-keyring.pgp",
118 "/srv/ftp.debian.org/keyrings/debian-maintainers.gpg" );
121 $logfile = "$queued_dir/log";
124 $pidfile = "$queued_dir/pid";
126 # upload method (ssh, copy, ftp)
127 $upload_method = "copy";
129 # name of target host (ignored on copy method)
130 $target = "localhost";
132 # login name on target host (for ssh, always 'ftp' for ftp, ignored for copy)
133 $targetlogin = "queue";
135 # incoming on target host
136 $targetdir = "/srv/ftp.debian.org/queue/unchecked/";
138 # select FTP debugging
144 # max. number of tries to upload
145 $max_upload_retries = 8;
147 # delay after first failed upload
148 $upload_delay_1 = 30*60; # 30 min.
150 # delay between successive failed uploads
151 $upload_delay_2 = 4*60*60; # 4 hours
153 # packages that must go to nonus.debian.org and thus are rejected here
154 #@nonus_packages = qw(gpg-rsaidea);
158 # time between two queue checks
159 $queue_delay = 5*60; # 5 min.
160 # when are stray files deleted?
161 $stray_remove_timeout = 24*60*60; # 1 day
162 # delay before reporting problems with a .changes file (not
163 # immediately for to-be-continued uploads)
164 $problem_report_timeout = 30*60; # 30 min.
165 # delay before reporting that a .changes file is missing (not
166 # immediately for to-be-continued uploads)
167 $no_changes_timeout = 30*60; # 30 min.
168 # when are .changes with persistent problems removed?
169 $bad_changes_timeout = 2*24*60*60; # 2 days
170 # how long may a remote operation (ssh/scp) take?
171 $remote_timeout = 3*60*60; # 3 hours
173 # mail address of maintainer
174 $maintainer_mail = "james\@nocrew.org";
179 # how often to rotate (in days)
181 # how much old logs to keep
183 # send summary mail when rotating logs?
185 # write summary to file when rotating logs? (no if name empty)
186 $summary_file = "$queued_dir/summary";
188 # don't remove this, Perl needs it!