Debian Codegraph @

doc/man/dput.cf.5

raw
1 .ds command dput
2 .ds format dput.cf
3 .ds FORMAT DPUT.CF
4 .\" ==========
5 .TH "\*[FORMAT]" 5 "2022-06-22" "Debian"
6 .
7 .\" ==========
8 .SH NAME
9 .B \*[format]
10 \- Debian package upload tool configuration file
11 .
12 .\" ==========
13 .SH DESCRIPTION
14 This manpage gives a brief overview of \*[command]'s configuration file and the
15 available options in it.
16 \fB\*[command]\fP is a tool to upload Debian packages to the archive.
17 .PP
18 .
19 .\" ==========
20 .SH FORMAT
21 .
22 .P
23 .B \*[format]
24 consists of different groups of configuration options, one for each
25 host where you want to be able to upload packages. Hosts are defined
26 using an identifier header with a short name for the host, enclosed in
27 square brackets.
28 .
29 For example, a section named
30 .B foo.example.org
31 is introduced with the header:
32 .EX
33 .B [foo.example.org]
34 .EE
35 .
36 .P
37 Note that if multiple section names in the configuration match the
38 specified hostname, only the last matching section is considered. This
39 is done to avoid confusion when overriding a global configuration file
40 with a user-specific one.
41 .
42 .P
43 A special section name,
44 .BR DEFAULT ,
45 holds default parameters for all the hosts. The defaults can be
46 overridden by redefining them again in each host section.
47 .
48 .P
49 The available parameters are listed below.
50 .
51 .TP
52 .BI "fqdn = " "DOMAIN\f[R][\f[]\f[B]:\f[]\f[I]PORT\f[]\f[R]]\f[]"
53 Connect to the remote host using the fully-qualified domain
54 .IR DOMAIN ,
55 connecting on port
56 .IR PORT .
57 .
58 The port is only relevant for HTTP or FTP protocols.
59 .
60 .TP
61 .BI "login = " USERNAME
62 Authenticate to this host with the username
63 .IR USERNAME .
64 .
65 If
66 .I USERNAME
67 is a single asterisk \fB*\fR, the
68 .B scp
69 and
70 .B rsync
71 methods will not supply a login name when invoking the
72 .BR ssh ,
73 .BR scp ,
74 and
75 .BR rsync
76 commands.
77 .
78 If
79 .I USERNAME
80 is the value \fBusername\fR, instead use the system username for the current
81 running process.
82 .
83 .TP
84 .BI "incoming = " PATH
85 Upload files to the filesystem path
86 .I PATH
87 on this host.
88 .
89 .TP
90 .BI "method = " METHOD
91 Use the file transfer method
92 .I METHOD
93 for uploading files to this host.
94 .
95 Currently,
96 .B \*[command]
97 accepts the following values for
98 .IR METHOD :
99 .
100 .RS
101 .
102 .TP
103 .B ftp
104 The package will be uploaded via FTP, either anonymously or using a
105 login and password.
106 .
107 Note that FTP is unencrypted so you should not use password
108 authentication with this.
109 .
110 .TP
111 .B http
112 .TQ
113 .B https
114 The package will be uploaded via HTTP or HTTPS using the PUT method
115 as specified in WebDAV.
116 .
117 The upload method will prompt for a password if necessary.
118 .
119 .TP
120 .B scp
121 The package will be uploaded using SSH's
122 .BR scp .
123 .
124 This transfers files using a secure SSH tunnel, and needs
125 authentication credentials on the remote machine.
126 .
127 .TP
128 .B rsync
129 The package will be uploaded using
130 .B rsync
131 over the SSH protocol.
132 .
133 This is similar to
134 .BR scp ,
135 but can save some bandwidth if the destination file already exists on
136 the remote server. It also needs authentication credentials for the
137 remote machine as it uses SSH.
138 .
139 .TP
140 .B local
141 The package will be "uploaded" locally using
142 .BR /usr/bin/install .
143 .
144 This transfers files to a local incoming directory, and needs
145 appropriate permissions set on that directory.
146 .
147 .RE
148 .
149 .TP
150 .BI "hash = " ALGORITHM
151 Use the hash algorithm
152 .I ALGORITHM
153 to compute the checksum of all files before the upload. If any hash
154 does not match the value specified in the
155 .IR CHANGESFILE ,
156 the upload does not happen.
157 .
158 Currently,
159 .B \*[command]
160 accepts the following values for
161 .IR ALGORITHM :
162 .
163 .RS
164 .
165 .TP
166 .B md5
167 The MD5 algorithm.
168 .
169 .TP
170 .B sha
171 The SHA-1 algorithm.
172 .
173 .RE
174 .
175 .TP
176 .BI "allow_unsigned_uploads = " FLAG
177 If
178 .I FLAG
179 is true,
180 .B \*[command]
181 may upload files without a GnuPG signature.
182 .
183 .TP
184 .BI "allow_dcut = " FLAG
185 If
186 .I FLAG
187 is true,
188 .B dcut
189 may upload a queue commands file to remove or move files in the queue
190 on this host.
191 .
192 .TP
193 .BI "distributions = " NAMES
194 If defined,
195 .I NAMES
196 is a comma-separated list of distributions that this host accepts.
197 .
198 This is used to guess the host to use when none is specified on the
199 command line.
200 .
201 .TP
202 .BI "allowed_distributions = " PATTERN
203 If defined,
204 .B \*[command]
205 will refuse the upload if the distribution field does not match
206 .I REGEX
207 using Python's \f[B]re\f[] syntax.
208 .
209 .TP
210 .BI "delayed = " DAYS
211 An integer giving the “days” parameter for delayed uploads to this host.
212 .
213 If defined,
214 .B \*[command]
215 will upload to the queue named
216 .BI DELAYED/ DAYS
217 (i.e. uploads to this host will be delayed the specified number of
218 days). Defaults to the empty string, meaning no delay.
219 .
220 This only works with hosts that support delayed uploads.
221 .
222 .TP
223 .BI "run_lintian = " FLAG
224 If
225 .I FLAG
226 is true,
227 .B \*[command]
228 will run
229 .BR lintian (1)
230 on the
231 .I CHANGESFILE
232 before uploading. If the package is not Lintian clean, the upload will
233 not happen.
234 .
235 .TP
236 .BI "run_dinstall = " FLAG
237 If
238 .I FLAG
239 is true,
240 .B \*[command]
241 will run
242 .B "dinstall \-n"
243 after the package has been uploaded.
244 .
245 This is an easy way to test if your package would be installed into
246 the archive or not.
247 .
248 .TP
249 .BI "check_version = " FLAG
250 If this option is true, \*[command] will check whether the package is installed,
251 and if it is not installed, exit with error.
252 .
253 .TP
254 .BI "passive_ftp = " FLAG
255 This option defines if \*[command] should use passive ftp or active
256 ftp for uploading a package to one of the upload queues.
257 .
258 By default, \*[command] uses passive ftp connections. If you need to
259 use active ftp connections, set passive_ftp to 0.
260 .
261 .TP
262 .BI "progress_indicator = " STYLE
263 Display a progress indicator using style
264 .I STYLE
265 for uploads to this host.
266 .
267 (Currently implemented for \f[B]ftp\f[] method only.)
268 .
269 .IP ""
270 Supported values for
271 .IR STYLE :
272 .
273 .RS
274 .
275 .TP
276 .B 0
277 (default) No progress indicator.
278 .
279 .TP
280 .B 1
281 Rotating progress indicator.
282 .
283 .TP
284 .B 2
285 Kilobyte counter.
286 .
287 .RE
288 .
289 .TP
290 .BI "scp_compress = " FLAG
291 If
292 .I FLAG
293 is true and the
294 .I METHOD
295 is
296 .BR scp ,
297 enable SSH compression for uploads to this host.
298 .
299 This parameter has been found to decrease upload time for slow links,
300 and increase upload times for faster links.
301 .
302 .TP
303 .BI "ssh_config_options = " OPTIONS
304 Specify the command-line options (text) to pass to all automatic
305 invocations of
306 .B ssh
307 and
308 .BR scp .
309 .
310 The
311 .I OPTIONS
312 should be SSH client configuration options, as documented in
313 .BR ssh_config (5).
314 .
315 Note that you can define multiline (dput) configuration options by
316 indenting the second line with whitespace (i.e. similar to RFC822
317 header continuations).
318 .
319 .TP
320 .BI "post_upload_command = " COMMAND
321 If defined,
322 .B \*[command]
323 will invoke the command
324 .I COMMAND
325 after a successful upload.
326 .
327 .TP
328 .BI "pre_upload_command = " COMMAND
329 If defined,
330 .B \*[command]
331 will invoke the command
332 .I COMMAND
333 before attempting an upload.
334 .
335 .TP
336 .BI "default_host_main = " HOSTNAME
337 Specify to use the
338 .B \*[format]
339 section named
340 .I HOSTNAME
341 for packages that are allowed to be uploaded to the main archive.
342 .
343 This variable is used when guessing the host to upload to.
344 .
345 .\" ==========
346 .SH FILES
347 .
348 .TP
349 .B /etc/dput.cf
350 Global configuration file.
351 .
352 .TP
353 .BR $XDG_CONFIG_HOME/dput/dput.cf " (XDG standard)"
354 .TQ
355 .BR $HOME/.dput.cf " (legacy)"
356 Per-user configuration file.
357 If the file at the XDG standard path can be opened, the legacy path is ignored.
358 .
359 .\" ==========
360 .SH SEE ALSO
361 .
362 .BR dput (1)
363 .
364 .P
365 .UR file:///usr/share/doc/dput/
366 \[oq]dput\[cq] package documentation
367 .UE .
368 .
369 .\" Copyright © 2016–2026 Ben Finney <[email protected]>
370 .
371 .\" This is free software: you may copy, modify, and/or distribute this work
372 .\" under the terms of the GNU General Public License as published by the
373 .\" Free Software Foundation; version 3 of that license or any later version.
374 .\" No warranty expressed or implied. See the file ‘LICENSE.GPL-3’ for details.
375 .
376 .\" Local variables:
377 .\" coding: utf-8
378 .\" mode: nroff
379 .\" End:
380 .\" vim: fileencoding=utf-8 filetype=nroff :