.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "dupload.conf 5" .TH dupload.conf 5 "2019-02-27" "2.9.4" "Debian Project" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dupload.conf \- configuration file for dupload .SH "DESCRIPTION" .IX Header "DESCRIPTION" The configuration file is rather straight forward Perl code as it is included by the \fBdupload\fR script via \f(CW\*(C`do $config\*(C'\fR. \fIThe config file is read as Perl code!\fR .PP Any \fBdupload.conf\fR must begin with \f(CW\*(C`package config;\*(C'\fR because \f(CW\*(C`config\*(C'\fR is the namespace expected by \fBdupload\fR. .PP For examples of the configuration please refer to the global configuration file \fI/etc/dupload.conf\fR. .PP It contains associative arrays, each indexed by the nickname (see \fB\-\-to\fR option of \fBdupload\fR), for the following items: .IP "\fBfqdn\fR [required]" 4 .IX Item "fqdn [required]" The fully qualified domain name (\s-1FQDN\s0) of the nickname. .Sp For the \fBcopy\fR method, this option is ignored and the local \&\s-1FQDN\s0 will be used instead. .IP "\fBmethod\fR [optional]" 4 .IX Item "method [optional]" The transfer method. The available methods are: \fBftp\fR (which is the default), \fBscp\fR, \fBscpb\fR, \fBrsync\fR (over \s-1SSH\s0) and \&\fBcopy\fR (local filesystem). .Sp If you are using an upload queue, use \fBftp\fR because it is fast. If you are using an authenticated host, \fBalways\fR use \fBscp\fR or \fBrsync\fR via \s-1SSH,\s0 because \fBftp\fR transmits the password in clear text. .Sp For \fBscp\fR and \fBrsync\fR to work properly, you have to setup the remote and local host to establish a ssh/slogin connection using \fI.shosts/.rhosts\fR or the files in \fI~/.ssh/\fR. If you do not want or cannot do that, you may find the \fBscpb\fR more convenient since it uploads in batch, reducing the number of password prompts. .Sp The only major caveat of the \fBrsync\fR and \fBscpb\fR options is that the files are processed in a batch mode, i.e. not separately, so in case of an error \&\fBdupload\fR will not be able to detect which part of the transfer failed, and just delete the \fB.upload\fR file completely. .IP "\fBlogin\fR [optional]" 4 .IX Item "login [optional]" The account name used to log into the remote host. For \fBftp\fR the default is \fBanonymous\fR, which should work with firewall logins too. For \fBscp\fR, \fBscpb\fR and \fBrsync\fR the default is delegated to \s-1SSH\s0 and its own configuration. .IP "\fBpassword\fR [optional]" 4 .IX Item "password [optional]" The \s-1FTP\s0 password for anonymous logins. .IP "\fBfilemode\fR [optional]" 4 .IX Item "filemode [optional]" The destination files mode, in octal. If the value is \fBundef\fR, the mode will not be modified. The default is \fB0644\fR. .IP "\fBincoming\fR [required]" 4 .IX Item "incoming [required]" Incoming directory, the directory we try to upload to. .IP "\fBqueuedir\fR [optional]" 4 .IX Item "queuedir [optional]" The directory we move the uploaded files to (after successful upload to \&\fIincoming\fR. Usually necessary only with some special upload queues. .IP "\fBdistwhitelist\fR [optional]" 4 .IX Item "distwhitelist [optional]" The regex of the distributions allowed for this host. This check is done against the \fBDistribution\fR field in the \fI.changes\fR file. .IP "\fBdistblacklist\fR [optional]" 4 .IX Item "distblacklist [optional]" The regex of the distributions disallowed for this host. This check is done against the \fBDistribution\fR field in the \fI.changes\fR file. .IP "\fBmailto\fR [optional]" 4 .IX Item "mailto [optional]" Email address where the announcement about stable packages is sent. .IP "\fBmailtx\fR [optional]" 4 .IX Item "mailtx [optional]" Email address where the announcement about unstable and experimental packages is sent. .IP "\fBcc\fR [optional]" 4 .IX Item "cc [optional]" Email address where to send a copy address of the announcement. .IP "\fBfullname\fR [optional]" 4 .IX Item "fullname [optional]" Your full name, one that should appear in the announcement; .Sp If you leave this setting empty, the default will depend on your mail system. Usually the full name will be copied from the \s-1GCOS\s0 field in \&\fI/etc/passwd\fR. .IP "\fBvisibleuser\fR [optional]" 4 .IX Item "visibleuser [optional]" Your username that should appear in the announcement. Defaults to \&\f(CW\*(C`getlogin()\*(C'\fR. .IP "\fBvisiblename\fR [optional]" 4 .IX Item "visiblename [optional]" The host/domain name that appears as the part to the right of the \fB@\fR character in the \fIfrom\fR\-part of the announcement. Defaults to the value your local \s-1MTA\s0 likes. .IP "\fBpassive\fR [optional]" 4 .IX Item "passive [optional]" Set the passive mode for \s-1FTP\s0 transfers. Since \fBdupload\fR uses Net::FTP, you can also use the environment variable \fB\s-1FTP_PASSIVE\s0\fR. .IP "\fBoptions\fR [optional]" 4 .IX Item "options [optional]" String that will be added verbatim to the command line of any \&\fBscp\fR or \fBrsync\fR calls done. .IP "\fBdinstall_runs\fR [optional]" 4 .IX Item "dinstall_runs [optional]" Tells \fBdupload\fR that the remote host runs dinstall (or equivalent) so that \fBdupload\fR will not send a duplicate announcement mail. The default is 0 (false), set it to 1 to enable it. .IP "\fBarchive\fR [optional]" 4 .IX Item "archive [optional]" If set to 0 (false), adds a \fBX\-No-Archive: yes\fR header in the announcement. The default is 1 (true). .PP The configuration files also contain the following global variables: .IP "\fBdefault_host\fR [optional]" 4 .IX Item "default_host [optional]" The default host to upload to. The default value of this variable is set depending on the current vendor, but if there is no configuration for that vendor it will be left unset. .IP "\fBno_parentheses_to_fullname\fR [optional]" 4 .IX Item "no_parentheses_to_fullname [optional]" Prevents \fBdupload\fR to add parentheses around the full name when making mail announcements. Default is 0 (false), set it to 1 to enable it. .SH "HOOKS" .IX Header "HOOKS" Hooks are a powerful way to add actions which will be run before or after a dupload (like the preinst and postinst script of \fBdpkg\fR). .PP You have two sort of hooks: pre-upload and post-upload. Both are simple shell commands (executed by \f(CW\*(C`sh \-c\*(C'\fR so you can use any shell tricks). Pre-uploads are always run (even in dry mode) and stop \fBdupload\fR if they fail (failure being measured by the hook's exit status). Post-uploads are only run when you are not in dry mode and only if the uploading succeeded. .PP Both sorts of hooks are run for a given category: \fBchanges\fR, \fBsourcepackage\fR, \&\fBpackage\fR, \fBfile\fR or \fBdeb\fR. .IP "changes" 4 .IX Item "changes" This hook is run once per \fIchanges\fR file (given as an argument to \fBdupload\fR) with the filename as its parameter. .IP "sourcepackage" 4 .IX Item "sourcepackage" This hook is run once per \fIchanges\fR file with the source package name and its version as its two parameters. .IP "package" 4 .IX Item "package" This hook is run once per binary package (a \fIdeb\fR file) with the package name and its version as its two parameters. .IP "file" 4 .IX Item "file" This hook is run once per uploaded file, with the file name as its parameter. .IP "deb" 4 .IX Item "deb" This hook is run once per binary package (a \fIdeb\fR file) with the filename as its parameter. .SS "Syntax" .IX Subsection "Syntax" Hooks are defined in two Perl hashes, \f(CW%preupload\fR and \f(CW%postupload\fR, each indexed by category. In addition to the global hashes, each host entry has two fields with the same names, for the host-specific hooks. .PP The shell command will be substituted first: \f(CW%1\fR will be replace by the first argument, etc. .SS "Per-host or global hooks" .IX Subsection "Per-host or global hooks" A hook can be global (for all the hosts) or it can be for a specific host. Host specific hooks override the global ones for each category. .SS "Examples" .IX Subsection "Examples" This one runs \fBlintian\fR before uploading. It is global and guarantee that you will always upload lintian-clean packages (thanks to \fBlintian\fR return status). .PP .Vb 1 \& $preupload{\*(Aqdeb\*(Aq} = \*(Aqlintian \-v \-i %1\*(Aq; .Ve .PP This one just display the name and versions of successfully uploaded packages. .PP .Vb 1 \& $postupload{\*(Aqpackage\*(Aq} = \*(Aqecho PACKAGE %1 %2 uploaded\*(Aq; .Ve .PP Unlike the two others, this one is specific to one host, master, and overrides the default global hook in charge of checking the OpenPGP signatures: .PP .Vb 1 \& $cfg{master}{preupload}{\*(Aqchanges\*(Aq} = "echo Uploading %1"; .Ve .SH "FILES" .IX Header "FILES" The configuration is searched as following: .PP .Vb 2 \& /etc/dupload.conf \& ~/.dupload.conf .Ve .PP The latest entries override the former. .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" Those of Net::FTP for the \s-1FTP\s0 method: .PP .Vb 2 \& FTP_FIREWALL \& FTP_PASSIVE .Ve