]> git.decadent.org.uk Git - dak.git/blob - tools/debianqueued-0.9/config
Merge mainline
[dak.git] / tools / debianqueued-0.9 / config
1 #
2 # example configuration file for debianqueued
3 #
4 # $Id: config,v 1.15 1999/07/07 16:19:32 ftplinux Exp $
5 #
6 # $Log: config,v $
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.
14 #
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.
18 #
19 # Revision 1.13  1998/04/23 10:56:53  ftplinux
20 # Added new config var $chmod_on_master.
21 #
22 # Revision 1.12  1998/02/17 10:57:21  ftplinux
23 # Added @test_binaries
24 #
25 # Revision 1.11  1997/12/09 13:51:46  ftplinux
26 # Implemented rejecting of nonus packages (new config var @nonus_packages)
27 #
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.
33 #
34 # Revision 1.9  1997/09/17 12:16:33  ftplinux
35 # Added writing summaries to a file
36 #
37 # Revision 1.8  1997/08/18 13:07:14  ftplinux
38 # Implemented summary mails
39 #
40 # Revision 1.7  1997/08/11 12:49:09  ftplinux
41 # Implemented logfile rotating
42 #
43 # Revision 1.6  1997/08/07 09:25:21  ftplinux
44 # Added timeout for remote operations
45 #
46 # Revision 1.5  1997/07/09 10:14:58  ftplinux
47 # Change RCS Header: to Id:
48 #
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.
53 #
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.
57 #
58 # Revision 1.2  1997/07/03 13:06:48  ftplinux
59 # Little last changes before beta release
60 #
61 # Revision 1.1.1.1  1997/07/03 12:54:59  ftplinux
62 # Import initial sources
63 #
64
65 # set to != 0 for debugging output (to log file)
66 $debug = 0;
67
68 # various programs:
69 # -----------------
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!
79 $gzip      = "/bin/gzip";
80 $ar        = "/usr/bin/ar"; # must support p option, optional
81 $ls        = "/bin/ls";
82 $cp        = "/bin/cp";
83 $chmod     = "/bin/chmod";
84
85 # binaries which existance should be tested before each queue run
86 #@test_binaries = ();
87
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'";
92
93 # ssh key file to use for connects to master (empty: default ~/.ssh/identity)
94 $ssh_key_file = "";
95
96 # the incoming dir we live in
97 $incoming = "/srv/queued/UploadQueue";
98
99 # files not to delete in $incoming (regexp)
100 $keep_files = '(status|\.message|README)$';
101
102 # file patterns that aren't deleted right away
103 $valid_files = '(\.changes|\.tar\.gz|\.dsc|\.u?deb|diff\.gz|\.sh)$';
104
105 # Change files to mode 644 locally (after md5 check) or only on master?
106 $chmod_on_target = 0;
107
108 # name of the status file or named pipe in the incoming dir
109 $statusfile = "$incoming/status";
110
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
113 $statusdelay = 30;
114
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" );
119
120 # our log file
121 $logfile = "$queued_dir/log";
122
123 # our pid file
124 $pidfile = "$queued_dir/pid";
125
126 # upload method (ssh, copy, ftp)
127 $upload_method = "copy";
128
129 # name of target host (ignored on copy method)
130 $target = "localhost";
131
132 # login name on target host (for ssh, always 'ftp' for ftp, ignored for copy)
133 $targetlogin = "queue";
134
135 # incoming on target host
136 $targetdir = "/srv/ftp.debian.org/queue/unchecked/";
137
138 # select FTP debugging
139 #$ftpdebug = 0;
140
141 # FTP timeout
142 $ftptimeout = 900;
143
144 # max. number of tries to upload
145 $max_upload_retries = 8;
146
147 # delay after first failed upload
148 $upload_delay_1 = 30*60; # 30 min.
149
150 # delay between successive failed uploads
151 $upload_delay_2 = 4*60*60; # 4 hours
152
153 # packages that must go to nonus.debian.org and thus are rejected here
154 #@nonus_packages = qw(gpg-rsaidea);
155
156 # timings:
157 # --------
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
172
173 # mail address of maintainer
174 $maintainer_mail = "james\@nocrew.org";
175
176
177 # logfile rotating:
178 # -----------------
179 #    how often to rotate (in days)
180 $log_age = 7;
181 #    how much old logs to keep
182 $log_keep = 4;
183 #    send summary mail when rotating logs?
184 $mail_summary = 1;
185 #    write summary to file when rotating logs? (no if name empty)
186 $summary_file = "$queued_dir/summary";
187
188 # don't remove this, Perl needs it!
189 1;