.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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 .\" ======================================================================== .\" .IX Title "dupload 1" .TH dupload 1 2024-04-08 2.11.2 "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 \- Debian package upload tool .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBdupload\fR [\fIoptions\fR...] [\fIchanges-file\fR|\fIdirectory\fR...] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBdupload\fR is a tool that enables people maintaining Debian packages to easily upload them to a Debian repository. .PP \&\fBdupload\fR checks each non-option argument to find readable files or directories. It parses the files as \fI.changes\fR files, or tries to find such files in the given directories. .PP \&\fBdupload\fR will warn if the name of the file does not end with \&\fI.changes\fR. Further processing is done changing into the directories of the changes files. .PP \&\fBdupload\fR tests the available checksums and size for each file listed in the \fI.changes\fR file, and fails if it finds a mismatch. If all this goes well, \fBdupload\fR checks if there is an \fI.upload\fR file with the basename of the \fI.changes\fR file. If the file to be uploaded is recorded to have already been uploaded to the specified host, it is skipped. .PP After the list of files to upload is finished, \fBdupload\fR tries to connect to the server and upload. Each successfully uploaded file is recorded in the \&\fI.upload\fR log file. .PP If all files of a package are processed, the \fI.changes\fR file is mailed to the announcement address specified in the configuration file, see the Announcement section for more details. .SS "Upload methods" .IX Subsection "Upload methods" The default transfer method is \fBftp\fR. Alternative methods are \fBhttp\fR, \fBhttps\fR, \fBscp\fR/SSH, \fBscpb\fR/SSH, \&\fBrsync\fR/SSH and \fBcopy\fR. .PP If you are using an upload queue, use \fBftp\fR because it is fast. If you are using an authenticated host, \fBalways\fR use \fBhttps\fR, or one of \&\fBscp\fR or \fBrsync\fR via SSH, because \fBftp\fR transmits the password in clear text. .IP \fBftp\fR 2 .IX Item "ftp" If no login (username) is defined in the configuration file, \&\fBanonymous\fR is used. The password is derived from your login name and your hostname, which is common for anonymous FTP logins. For anonymous logins only, you can provide the "password" in the configuration file. .Sp For logins other than \fBanonymous\fR, you are asked for the password. For security reasons there is no way to supply it via the command-line or the environment. .IP "\fBhttp\fR (since 2.9.9) / \fBhttps\fR (since 2.9.9)" 2 .IX Item "http (since 2.9.9) / https (since 2.9.9)" There is no default login nor password. If you specify a login, a password will be fetched from \fBpasswordcmd\fR or if that is not defined via the Secret Service interface, otherwise it will be prompted. .IP "\fBscp\fR (since 1.8) / \fBscpb\fR (since 1.17)" 2 .IX Item "scp (since 1.8) / scpb (since 1.17)" The default login is delegated to SSH and its own configuration. .Sp The \fBscp\fR/SSH method only works properly if no password is required (see \fBssh\fR(1)). When you use \fBscp\fR, it is recommended to set the "method" keyword to \&\fBscpb\fR, which will transfer all files in a batch. .IP "\fBrsync\fR (since 2.4.1)" 2 .IX Item "rsync (since 2.4.1)" The default login is delegated to SSH and its own configuration. .IP "\fBcopy\fR (since 2.9.0)" 2 .IX Item "copy (since 2.9.0)" The \fBcopy\fR method works by simply copying the files to another directory in the local filesystem. .SS Announcement .IX Subsection "Announcement" If the host has been configured to send announcement mails, the \fI.changes\fR file will be sent to the specified addresses. .PP The contents of all the following files are prepended to the announcement mail body, if present: .IP \fIpackage\fR\fB.announce\fR 4 .IX Item "package.announce" .PD 0 .IP \fIpackage\fR\fB_\fR\fIupstream-version\fR\fB.announce\fR 4 .IX Item "package_upstream-version.announce" .IP \fIpackage\fR\fB_\fR\fIupstream-version\fR\fB\-\fR\fIrevision\fR\fB.announce\fR 4 .IX Item "package_upstream-version-revision.announce" .PD .PP Where \fIupstream-version\fR and \fIrevision\fR are to be replaced with actual version numbers. For example, if your package is called \fBfoobar\fR, has upstream version 3.14, and Debian revision 2: .IP \(bu 2 If you only want the announcement to be made with only ONE upload, you name it \fIfoobar_3.14\-2.announce\fR. .IP \(bu 2 If you want it to be made with every upload of a particular upstream version, name it \fIfoobar_3.14.announce\fR. .IP \(bu 2 If you want it made with \fBevery\fR upload of a given package, name it \&\fIfoobar.announce\fR. .PP By default, the announcement addresses are unset because dinstall sends mails instead. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-t\fR, \fB\-\-to\fR \fInickname\fR" 12 .IX Item "-t, --to nickname" Upload to \fInickname\fR'd host. \fInickname\fR is the key for doing lookups in the config file. You can use the \fBdefault_host\fR configuration option to specify a host without \fB\-\-to\fR. .IP "\fB\-c\fR, \fB\-\-configfile\fR \fIfilename\fR" 12 .IX Item "-c, --configfile filename" Read the file \fIfilename\fR as a configuration file, in addition to the global configuration file. .IP "\fB\-f\fR, \fB\-\-force\fR" 12 .IX Item "-f, --force" Upload regardless of the transfers logged as already completed. .IP "\fB\-k\fR, \fB\-\-keep\fR" 12 .IX Item "-k, --keep" Keep going, skipping packages whose checksums does not match. .IP "\fB\-q\fR, \fB\-\-quiet\fR" 12 .IX Item "-q, --quiet" Be quiet, i.e., suppress normal output and progress bars. .IP "\fB\-d\fR, \fB\-\-debug\fR [\fIlevel\fR]" 12 .IX Item "-d, --debug [level]" Enable more verbose output from the \fBftp\fR, \fBscp\fR and \fBscpb\fR methods. .Sp For \fBscp\fR and \fBscpb\fR (since 2.10.2) a \fB\-v\fR per \fIlevel\fR is passed to the \fBscp\fR command. .IP \fB\-\-no\fR 12 .IX Item "--no" Dry run, no files are changed, no upload is attempted, only tell what we would do. .IP \fB\-\-nostats\fR 12 .IX Item "--nostats" Suppress printing download statistics. .Sp Since version 2.10.2. .IP "\fB\-\-mta\fR \fIpathname\fR" 12 .IX Item "--mta pathname" Use \fIpathname\fR as the sendmail compatible MTA. The MTA specified must support the \fB\-f\fR option to set the envelope sender address, and the \fB\-F\fR option to set the sender's full name. The default is \fI/usr/sbin/sendmail\fR. .Sp Since version 2.9.8. .IP \fB\-\-nomail\fR 12 .IX Item "--nomail" Suppress announcement for this run. You can send it later by just calling dupload again w/o this option. Note that this option is by default implied for all hosts with the \fBdinstall_runs\fR option set to 1. .IP \fB\-\-mailonly\fR 12 .IX Item "--mailonly" Acts as if \fB\-\-no\fR has been specified, but sends the announcements, unconditionally. .IP \fB\-\-noarchive\fR 12 .IX Item "--noarchive" Adds an \fBX\-No-Archive: yes\fR header so that the announcement will not be archived. You can use the per-host \fBarchive\fR option in the configuration file. .IP "\fB\-\-skip\-hooks\fR \fIhook\fR[,...]" 12 .IX Item "--skip-hooks hook[,...]" Skip running the comma-separated list of hooks. The hook names can be the filename or the absolute pathname for the hook command, excluding any argument. This option can be specified multiple times. .Sp Since version 2.11.0. .IP "\fB\-p\fR, \fB\-\-print\fR" 12 .IX Item "-p, --print" Print the "database" as read from the config files and exit. If a host is specified via option \fB\-\-to\fR, only this host's entry is displayed. .IP \fB\-\-help\fR 12 .IX Item "--help" Prints the program usage message and exits. .IP "\fB\-V\fR, \fB\-\-Version\fR" 12 .IX Item "-V, --Version" Prints version and exits. .SH FILES .IX Header "FILES" .IP \fI/etc/dupload.conf\fR 4 .IX Item "/etc/dupload.conf" .PD 0 .IP \fI~/.dupload.conf\fR 4 .IX Item "~/.dupload.conf" .IP "\fB\-\-configfile\fR \fIconfig-file\fR" 4 .IX Item "--configfile config-file" .PD The configuration files are loaded if available in the order listed, overriding previous files. .IP \fIpackage\fR\fB.announce\fR 4 .IX Item "package.announce" .PD 0 .IP \fIpackage\fR\fB_\fR\fIupstream-version\fR\fB.announce\fR 4 .IX Item "package_upstream-version.announce" .IP \fIpackage\fR\fB_\fR\fIupstream-version\fR\fB\-\fR\fIrevision\fR\fB.announce\fR 4 .IX Item "package_upstream-version-revision.announce" .PD If present, they will all be read to prepend to the announcement mail. .IP \fI.changes\fR 4 .IX Item ".changes" .PD 0 .IP \fI.dsc\fR 4 .IX Item ".dsc" .IP \fI.orig.tar.*\fR 4 .IX Item ".orig.tar.*" .IP \fI.debian.tar.*\fR 4 .IX Item ".debian.tar.*" .IP \fI.diff.*\fR 4 .IX Item ".diff.*" .IP \fI.deb\fR 4 .IX Item ".deb" .PD The \fI.changes\fR file to upload and all of its referenced files. .IP \fIpackage\fR\fB_\fR\fIversion\fR\fB_\fR\fIarch\fR.upload 4 .IX Item "package_version_arch.upload" The file where \fBdupload\fR writes the upload log. .SH ENVIRONMENT .IX Header "ENVIRONMENT" .IP \fBDUPLOAD_SKIP_HOOKS\fR 2 .IX Item "DUPLOAD_SKIP_HOOKS" A comma-separated list of hooks to skip running. The \fB\-\-skip\-hooks\fR option overrides this setting. .Sp Since version 2.11.0. .SH BUGS .IX Header "BUGS" \&\fBdupload\fR is tested on \fBDebian\fR systems only. It should not require too much effort to make it run under others systems, though. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdupload.conf\fR(5)