]> git.decadent.org.uk Git - dak.git/blob - docs/README.config
LOCAL: Remove replay check
[dak.git] / docs / README.config
1 ///////////////////////////////////////////////////////////
2 // Example annotated configuration file for dak
3 ///////////////////////////////////////////////////////////
4
5 ///////////////////////////////////////////////////////////
6 // Common settings
7 ///////////////////////////////////////////////////////////
8 Common
9 {
10     //// ThreadCount (optional):  Maximum number of threads to use.  Defaults to 1
11     ThreadCount 1;
12 };
13
14 ///////////////////////////////////////////////////////////
15 // Essential.  List of database details.
16 ///////////////////////////////////////////////////////////
17 DB
18 {
19     //// Name (required): The name of the PostgreSQL database which has been
20     //// created for dak.
21     Name "projectb";
22
23     //// Host (optional): The name of the host on which the database is located.
24     //// Not necessary if the the database is local.
25     //Host "";
26
27     //// Port (optional): The port of the database if it is remote.  If the port
28     //// is the default value (5432), this option can be set to -1.
29     //Port -1;
30
31     //// PoolSize (optional): should be at least ThreadCount + 1
32     PoolSize 5;
33
34     //// MaxOverflow (optional): shouldn't exceed postgresql.conf's
35     //// max_connections - PoolSize
36     MaxOverflow 13;
37
38     //// Unicode (optional but seriously suggested).  Should be false for
39     //// encoding == SQL_ASCII which is highly recommended.  Do not set this to
40     //// anything else unless you really know what you're doing.
41     Unicode "false";
42 };
43
44 ///////////////////////////////////////////////////////////
45 // Dinstall general settings
46 ///////////////////////////////////////////////////////////
47 Dinstall
48 {
49     //// SigningKeyring (optional): this is the private keyring used by
50     //// 'dak generate-releases'.
51     SigningKeyring "/srv/dak/s3kr1t/dot-gnupg/secring.gpg";
52
53     //// SigningPubKeyring (optional): this is the public keyring used by
54     //// 'dak generate-releases'.
55     SigningPubKeyring "/srv/dak/s3kr1t/dot-gnupg/pubring.gpg";
56
57     //// Options::No-Mail (optional): Highly recommended.  This prevents dak
58     //// from spamming people you didn't mean it to.  If you're not using this,
59     //// you almost certainly want to use the MailWhiteList option
60     Options::No-Mail "true";
61
62     //// MailWhiteList (optional).  If you're not using No-Mail, this provides
63     //// a list of email addresses or regular expressions, one per line which
64     //// dak is allowed to email.  Regular expressions need to be prefixed by "RE:".
65     //// Examples: "jane.doe@domain.com" or "RE:jane[^@]@domain.com", where the first will
66     //// only allow to mail jane.doe@domain.com while the second will mail all of jane*@domain.com
67     //// MailWhiteList "/some/path/to/a/file";
68
69     //// SendmailCommand (required unless No-Mail is set): command to call the MTA.
70     // SendmailCommand "/usr/sbin/sendmail -oi -t";
71
72     //// MyEmailAddress (required): this is used as the From: line for sending mails
73     //// as a script/daemon.
74     MyEmailAddress "FTP Masters <ftpmaster@example.org>";
75
76     //// MyAdminAddress (required): used as a contact address in mails.
77     MyAdminAddress "ftpmaster@example.org";
78
79     //// MyDistribution (required): this variable is used in emails sent out by
80     //// dak and others.  It should indicate the name of the distribution.
81     MyDistribution "MyDistro";
82
83     //// BugServer (optional): is used by 'dak process-upload' and 'dak rm'
84     //// when closing bugs.
85     // BugServer "bugs.example.org";
86
87     //// CloseBugs (optional): a boolean (default: no); if true the automated bug
88     //// closing feature of dinstall is activated.  Must have BugServer set
89     //// for this to work.
90     CloseBugs "true";
91
92     //// PackagesServer (optional): used by 'dak rm' and 'dak override' when
93     //// carbon-copying a bug close mail to a package maintainer.
94     // PackagesServer "packages.example.org";
95
96     //// TrackingServer (optional): used by 'dak process-upload' and 'dak
97     //// rm' to send messages for the maintainer also to an alias for people
98     //// tracking a specific source package.
99     // TrackingServer "packages.qa.example.org";
100
101     //// All sent mail is blind carbon copied to the email address in Bcc if it's
102     //// not blank.
103     // Bcc "archive@example.org";
104
105     //// BXANotify (optional): a boolean (default: false); if true (Debian-specific)
106     //// BXA notification is sent.  The template for the BXA notification is located
107     //// in Dir::Templates/process-new.bxa_notification and should be changed if this
108     //// option is set.
109     // BXANotify "true";
110
111     //// FutureTimeTravelGrace (optional): specifies how many seconds into the
112     //// future timestamps are allowed to be inside a deb before being rejected.
113     //// Defaults to 86400 (24 hours) if not specified.
114     FutureTimeTravelGrace 86400;
115
116     //// PastCutoffYear (optional): specifies the cut-off year which is used when
117     //// deciding whether or not to reject packages based on the file timestamp.
118     //// Defaults to "1975" if not specified.
119     PastCutoffYear "1975";
120
121     //// SkipTime (required): an integer value which is the number of seconds
122     //// that a file must be older than (via it's last modified timestamp)
123     //// before dak process-upload will REJECT rather than SKIP the package.
124     SkipTime 300;
125
126     //// OverrideDisparityCheck (optional): a boolean (default: false); if true,
127     //// dak process-upload compares an uploads section/priority with the overrides and whines
128     //// at the maintainer if they differ.
129     OverrideDisparityCheck "false";
130
131     //// OverrideMaintainer (optional): be used to globally override the
132     //// __MAINTAINER_TO__ and __MAINTAINER_FROM__ variables in template mails.
133     //// Use with caution.
134     // OverrideMaintainer "";
135
136     //// DefaultSuite (optional): which suite to default to where one isn't
137     //// specified.  Defaults to "unstable" if not set.
138     // DefaultSuite "unstable";
139
140     //// LintianTags (optional): A set of lintian tags on which to reject
141     //// packages at upload time.  Format is a YAML file; see the ftp-master
142     //// version for an example.
143     // LintianTags "/srv/dak/dak/config/debian/lintian.tags";
144
145     //// ReleaseTransitions (optional): YAML File for blocking uploads to unstable
146     // ReleaseTransitions "/srv/dak/web/transitions.yaml";
147
148     //// KeyAutoFetch (optional): boolean (default: false), which if set (and
149     //// not overridden by explicit argument to check_signature()) will enable
150     //// auto key retrieval.  Requires KeyServer variable be
151     //// set.  NB: you should only enable this variable on production systems
152     //// if you have strict control of your upload queue.
153     // KeyAutoFetch "false";
154
155     //// KeyServer (optional): keyserver used for key auto-retrieval
156     //// (c.f. KeyAutoFetch).
157     // KeyServer "wwwkeys.eu.pgp.net";
158 };
159
160
161 ///////////////////////////////////////////////////////////
162 // Dir (mandatory).  List of directory locations, e.g.
163 ///////////////////////////////////////////////////////////
164 Dir
165 {
166     //// Root (required): Specifies the path of the root of the FTP archive.
167     Root "/srv/dak/ftp/";
168
169     //// Pool (required): This variable specifies the path of the pool
170     //// directory.  Debian packages will be placed in the pool by
171     //// 'dak process-upload'
172     Pool "/srv/dak/ftp/pool/";
173
174     //// Templates (required): dak sends various mails and uses templates from
175     //// this directory.
176     Templates "/srv/dak/dak/templates/";
177
178     //// Override (optional): This directory optionally stores override files (used
179     //// by 'dak make-overrides').
180     // Override "/src/dak/scripts/override/";
181
182     //// Lists (optional): This directory holds file lists used by apt-ftparchive to
183     //// generate Packages and Sources files (used by 'dak make-suite-file-list').
184     //// Deprecated in favour of use of generate-packages-sources2
185     // Lists "/srv/dak/database/dists/";
186
187     //// Log (required): Directory to store dak logs in
188     Log "/srv/dak/log/";
189
190     //// Lock directory (required): Directory to store dak locks in
191     Lock "/srv/dak/lock/";
192
193     //// Morgue (required): Removed files are moved there.  The morgue has various
194     //// sub-directories, including (optionally) those defined by
195     //// Clean-Queues::MorgueSubDir and Clean-Suites::MorgueSubDir.
196     Morgue "/srv/dak/morgue/";
197
198     //// UrgencyLog (optional): If this directory is specified, 'dak
199     //// process-upload' will store the urgency value of each upload.  This
200     //// is mainly used for britney (the testing script).
201     // UrgencyLog "/srv/dak/testing/urgencies/";
202
203     //// Done (required): Directory in which to store processed .changes files
204     Done "/srv/dak/queue/done/";
205
206     //// BTSVersionTrack (optional): this directory holds the DebBugs
207     //// Version Tracking support files.
208     // BTSVersionTrack "/srv/dak/btsversiontrack";
209
210     //// Queue (required): This sub-tree defines important directories for the
211     //// incoming queue.  The following variables have to be set: Byhand, New
212     //// NewStage, Reject, Unchecked.  An explanation of the function of
213     //// these directories can be found in README.new-incoming.
214     Queue
215     {  
216         Byhand "/srv/dak/queue/byhand/";
217         New "/srv/dak/queue/new/";
218         NewStage "/srv/dak/queue/newstage/";
219         Reject "/srv/dak/queue/reject/";
220         Unchecked "/srv/dak/queue/unchecked/";
221     };
222 };
223
224 ///////////////////////////////////////////////////////////
225 // SuiteMappings: (optional).  List of mappings for the Distribution file in a
226 // .changes file, e.g.:
227 ///////////////////////////////////////////////////////////
228
229 // There are three mapping types:
230 //
231 // (1) map <source> <dest>
232 // Any target suite of '<source>' is unconditionally overridden to '<dest>'.
233 // (2) map-unreleased <source> <dest>
234 // Any upload targeted for suite '<source>' will be mapped to '<dest>' iff it
235 // contains uploads for an architecture that is not part of '<source>'.
236 // (3) ignore <suite>
237 // Any target suite of '<suite>' is unconditionally removed from the list of
238 // target suites.  NB: if the upload had only one target suite this will lead
239 // to rejection.
240
241 SuiteMappings
242 {
243    "map stable proposed-updates";
244    "map frozen unstable";
245    "map-unreleased stable unstable";
246    "map-unreleased proposed-updates unstable";
247    "ignore testing";
248 };
249
250 ///////////////////////////////////////////////////////////
251 // Urgency (mandatory) This defines the valid and default urgency of an upload.
252 // If a package is uploaded with an urgency not listed here, it will be
253 // rejected.
254 ///////////////////////////////////////////////////////////
255
256 Urgency
257 {
258   Default "low";
259   Valid
260   {
261     low;
262     medium;
263     high;
264     emergency;
265     critical;
266   };
267 };
268