BACKPORT-DSC(1) | User Commands | BACKPORT-DSC(1) |
backport-dsc - backport Debian source packages
backport-dsc [OPTIONS] <dsc-file>
Helper to aid backporting a Debian source package to an arbitrary distribution release.
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.
Backport relevant patches can be embedded in source packages for use with backport-dsc. The distribution name (see --target-distribution) 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-<distname> and append it to the main patch series. Moreover, backport-dsc will also look for patches matching /debian/patches/<distname>-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.
-d <distname>, --target-distribution <distname>
-h, --help
--maint-email <email>
--maint-name <name>
--mod-control <expression>
--no-backport-patches
--no-colored
--no-maintainer-update
-s <string>, --version-suffix <string>
-p <string>, --version-prefix <string>
--verbose
--verbose-help
--version
backport-dsc acknowledges the common environment variables DEBFULLNAME and DEBEMAIL to specify the maintainer.
backport-dsc reads configuration from two files: system-wide from /etc/backports-dsc 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:
bp_distribution="squeeze-backports"
bp_version_prefix="~"
bp_version_suffix="bpo60"
bp_maintainer_name="Unknown fellow"
bp_maintainer_email="user@example.net"
bp_apply_patches=1
bp_color_output=1
bp_verbose=0
bp_mod_control="--mod-control 's/^Depends:.*$/&, mypackage/'"
bp_update_maintainer=1
backport-dsc examplepkg_1.2.3-4.dsc
backport-dsc -d myown-backports -v mo2010 examplepkg_1.2.3-4.dsc
backport-dsc -d ubuntu-lucid -v myppa --mod-control "-e 's/iceweasel/firefox/g'" examplepkg_1.2.3-4.dsc
Written by Michael Hanke for the NeuroDebian project.
Report bugs to <michael.hanke@gmail.com>.
Copyright © 2010-2012 Michael Hanke <michael.hanke@gmail.com>
Licensed under GNU Public License version 2 or later.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
February 2023 | backport-dsc 0.2 |