.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH BACKPORT-DSC "1" "September 2023" "backport-dsc 0.2" "User Commands" .SH NAME backport-dsc \- backport Debian source packages .SH SYNOPSIS .B backport-dsc [\fI\,OPTIONS\/\fR] \fI\,\/\fR .SH DESCRIPTION Helper to aid backporting a Debian source package to an arbitrary distribution release. .PP backport\-dsc aids backporting by appropriately mangling the source package version, adjusting the maintainer of a package and compiling an informative changelog entry. Moreover, it supports distribution specific patches (plain, or for format 3.0 (quilt) source packages) and allow modification of debian/control via arbitrary 'sed' expressions. .PP Backport relevant patches can be embedded in source packages for use with backport\-dsc. The distribution name (see \fB\-\-target\-distribution\fR) serves as an identifier to search for patches in the source package that shall be applied for a particular distribution. For packages using format the 3.0 (quilt), backport\-dsc will look for debian/patches/series\- and append it to the main patch series. Moreover, backport\-dsc will also look for patches matching /debian/patches/\-dsc\-patch* and apply them to the source package. The latter patches, unlike the former quilt series, can also be used to modify the debian/ directory itself. .SH OPTIONS \fB\-d\fR , \fB\-\-target\-distribution\fR .IP Arbitrary distribution name (e.g. squeeze\-backports). This will be the target distribution used for the backport changelog entry. The distribution name also serves as an identifier to search for backport patches in the source package. .PP \fB\-h\fR, \fB\-\-help\fR .IP Print short description, usage summary and option list. .PP \fB\-\-maint\-email\fR .IP Specify the backport maintainer's email address. Alternatively, backport\-dsc will use the DEBEMAIL environment setting. .PP \fB\-\-maint\-name\fR .IP Specify the backport maintainer's real name. Alternatively, backport\-dsc will use the DEBFULLNAME environment setting. .PP \fB\-\-mod\-control\fR .IP sed expression to modify debian/control. The option can be given multiple times and all expressions will be passed to sed in the order of appearance. This can be used to, e.g. change build or runtime dependencies. .PP \fB\-\-no\-backport\-patches\fR .IP If set, potentially existing backport patches will not be applied/activated. .PP \fB\-\-no\-colored\fR .IP If set, backport\-dsc won't colorize its status and error messages. .PP \fB\-\-no\-maintainer\-update\fR .IP If set, the orginal maintainer is preserved in the backported source package. This should only be done if original maintainer and backporter are identical. Otherwise the porter should take responsibility for the source package backport and identify herself as the maintainer. .PP \fB\-s\fR , \fB\-\-version\-suffix\fR .IP Version suffix that will be appended to the original source package version, ideally indicating the backport target distribution. The resulting package version will follow this schema: .IP + .IP e.g.: 1.2.3\-4~bpo60+1 with default =~ .PP \fB\-p\fR , \fB\-\-version\-prefix\fR .TP Version prefix that will be prepended to the backport version. By default it .IP is ~ but want to be changed (e.g. to +) for forward\-porting to next releases. .PP \fB\-\-verbose\fR .IP Enable additional status messages. .PP \fB\-\-verbose\-help\fR .IP Print all available help. .PP \fB\-\-version\fR .IP Print version information and exit. .SH ENVIRONMENT backport\-dsc acknowledges the common environment variables DEBFULLNAME and DEBEMAIL to specify the maintainer. .SH FILES backport\-dsc reads configuration from two files: system\-wide from \fI\,/etc/backports\-dsc\/\fP and per user settings from $HOME/.backport\-dsc (in that order). Both files have to be valid bash scripts that will be sourced by backport\-dsc. The following variables (each shown with an example setting) can be used to pre\-configure backport\-dsc: .PP bp_distribution="squeeze\-backports" .IP Backport target distribution (see \fB\-\-backport\-distribution\fR) .PP bp_version_prefix="~" .IP Version prefix (see \fB\-\-version\-prefix\fR) .PP bp_version_suffix="bpo60" .IP Version suffix (see \fB\-\-version\-suffix\fR) .PP bp_maintainer_name="Unknown fellow" .IP Name of the backport maintainer (see \fB\-\-maint\-name\fR) .PP bp_maintainer_email="user@example.net" .IP Email address of backport maintainer (see \fB\-\-maint\-email\fR) .PP bp_apply_patches=1 .IP Whether or not to apply backport patches found in a source package. (see \fB\-\-no\-backport\-patches\fR) .PP bp_color_output=1 .IP Enable or disable colored status output (see \fB\-\-no\-color\fR) .PP bp_verbose=0 .IP Enable verbose status output (see \fB\-\-verbose\fR) .PP bp_mod_control="\-\-mod\-control 's/^Depends:.*$/&, mypackage/'" .IP sed expressions to modify debian/control, for example to add dependencies (see \fB\-\-mod\-control\fR) .PP bp_update_maintainer=1 .IP Whether or not to replace the original maintainer in the backported source package (see \fB\-\-no\-maintainer\-update\fR) .SH EXAMPLES backport\-dsc examplepkg_1.2.3\-4.dsc .IP Create backport suitable for backports.org .PP backport\-dsc \-d myown\-backports \-v mo2010 examplepkg_1.2.3\-4.dsc .IP Create backport for some custom distribution with custom version suffix. .PP backport\-dsc \-d ubuntu\-lucid \-v myppa \-\-mod\-control "\-e 's/iceweasel/firefox/g'" examplepkg_1.2.3\-4.dsc .IP Create a backport for a fake Ubuntu PPA repository, replacing all occurrences of iceweasel in debian/control with firefox. .SH AUTHOR Written by Michael Hanke for the NeuroDebian project. .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT Copyright \(co 2010\-2012 Michael Hanke .PP Licensed under GNU Public License version 2 or later. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.