SYNOPSIS

dupload [options] [changes_file | dir] ...

DESCRIPTION

dupload is a tool that enables Debian developers to easily upload their packages to the Debian archive. At least for chiark the upload procedure is somewhat error prone (upload to Incoming/, move it to queue/).

dupload checks each non-option argument to find readable files or directories. It parses the files as .changes files, or tries to find such files in the given directories.

dupload will warn if the name of the file doesn't end with \*(L".changes\*(R". Further processing is done chdir'ed into the directories of the changes files.

dupload tests the available checksums and size for each file listed in the .changes file, and fails if it finds a mismatch. If all this goes well, dupload checks if there is an .upload file with the basename of the .changes file. If the file to be uploaded is recorded to have already been uploaded to the specified host, it is skipped.

dupload will stop and verify if it sees you try to upload a package with a non-US Section field to a host that is neither non-us.debian.org, security.debian.org nor has the \*(L"nonus\*(R" option set to 1.

After the list of files to upload is finished, dupload tries to connect to the server and upload. Each successfully uploaded file is recorded in the .upload log file.

If all files of a package are processed, the .changes file is mailed to the announcement address specified in the configuration file. If files with package.announce, package_UPSTREAMVER.announce, or package_UPSTREAMVER-DEBIANREV.announce exist, these files get prepended to the announcement. \s-1UPSTREAMVER\s0 and \s-1DEBIANREV\s0 are to be replaced with actual version numbers. For example, if your package is called foobar, has upstream version 3.14, and Debian revision 2:

If you only want the announcement to be made with only \s-1ONE\s0 upload, you name it foobar_3.14-2.announce.

If you want it to be made with every upload of a particular upstream version, name it foobar_3.14.announce.

If you want it made with every upload of a given package, name it foobar.announce.

Please note: Some mail readers (like elm w/ \s-1PGP\s0 extensions) don't show mail contents outside of the signed part of a message.

Login and password

If no login (username) is defined in the configuration file, \*(L"anonymous\*(R" is used. The password is derived from your login name and your hostname, which is common for anonymous \s-1FTP\s0 logins. For anonymous logins only, you can provide the \*(L"password\*(R" in the configuration file.

For logins other than \*(L"anonymous\*(R", you're asked for the password. For security reasons there's no way to supply it via the commandline or the environment.

\s-1FTP\s0 / scp / rsync

The default transfer method is \s-1FTP\s0. Alternative methods are scp/SSH and rsync/SSH. For scp and rsync, the default login is taken from your local user name.

The scp/SSH method only works properly if no password is required (see ssh(1)). When you use scp, it is recommended to set the \*(L"method\*(R" keyword to \*(L"scpb\*(R", which will transfer all files in a batch.

If you are using an upload queue, use \s-1FTP\s0 because it's fast. If you are using an authenticated host, always use scp or rsync via \s-1SSH\s0, because \s-1FTP\s0 transmits the password in clear text.

OPTIONS

-d --debug [level]

Enable more verbose output from the \s-1FTP\s0 module.

-f --force

Upload regardless of the transfers logged as already completed.

-k --keep

Keep going, skipping packages whose checksums don't match.

-c --configfile

Read the file ./dupload.conf (if it exists). Warning: this is a security risk if you are in a directory where other people can write. That's why it is not the default (unlike the previous versions).

--no

Dry run, no files are changed, no upload is attempted, only tell what we would do.

--nomail

Supress 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 \*(L"dinstall_runs\*(R" option set to 1.

--mailonly

Acts as if --no has been specified and but sends the announcements, unconditionally.

--noarchive

Adds a \*(L"X-No-Archive: yes\*(R" header so that the announcement will not be archived. You can use the per-host \*(L"archive\*(R" option in the configuration file.

-p --print

Print the \*(L"database\*(R" as read from the config files and exit. If a host is specified via option --to, only this host's entry is displayed.

-q --quiet

Be quiet, i.e. supress normal output.

-t --to nickname optional

Upload to nickname'd host. nickname is the key for doing lookups in the config file. You can use the \*(L"default_host\*(R" configuration option to specify a host without --to.

-V --Version

Prints version and exits.

FILES

Configuration

The configuration files are searched as follows (and read in this order, overriding each other):

        /etc/dupload.conf
        ~/.dupload.conf

Other

Various Debian package files are used by dupload: .dsc, .changes, .deb, .orig.tar.gz, .diff.gz

dupload itself writes the log file package_version-debian.upload, and the additional announcement files package.announce, package_upstreamver.announce, and package_upstreamver-debianrev.announce.

Announcement addresses

By default, the announcement addresses are unset because dinstall sends mails instead.

BUGS

dupload is tested on Debian systems only. It shouldn't require too much effort to make it run under others systems, though, it's written in Perl.

AUTHOR/COPYRIGHT

Copyright 1996 Heiko Schlittermann, 1999 Stephane Bortzmeyer

dupload is free software; see the \s-1GNU\s0 General Public Licence version 2 or later for copying conditions. There is no warranty.

RELATED TO dupload…