evobackup/debian
David Prevot bc9ea030d9 Document Debian packaging workflow
Generic parts may be better suited in a proper documentation, and also
help providing guidelines for proper CI/CD.
2022-05-04 10:03:28 +02:00
..
source Convert to non native package 2017-08-05 15:54:23 -04:00
bkctld.default Adapt packaging to new upstream layout 2022-05-03 16:45:02 +02:00
changelog Update changelog for 22.04-1 release 2022-05-03 17:09:35 +02:00
control debian/control: Update Standards-Version to 4.5.1 2022-05-03 17:09:35 +02:00
copyright debian/copyright: Update 2022-05-03 17:09:35 +02:00
docs debian/{docs,install}: Install doc as such 2022-05-03 17:09:35 +02:00
gbp.conf Improve and document upstream import 2022-05-03 16:39:36 +02:00
install debian/{docs,install}: Install doc as such 2022-05-03 17:09:35 +02:00
manpages Adapt packaging to new upstream layout 2022-05-03 16:45:02 +02:00
postinst debian/postinst: Add #DEBHELPER# token 2022-05-03 17:09:35 +02:00
README.source Document Debian packaging workflow 2022-05-04 10:03:28 +02:00
rules Adapt packaging to new upstream layout 2022-05-03 16:45:02 +02:00
watch Improve and document upstream import 2022-05-03 16:39:36 +02:00

## New upstream version
#
# Once the package has been tagged (using server/$version format), the
# last upstream version can be imported using the following command.
#
# Note: the git branches master, upstream/latest, and the current debian
# one have to be checked out first.

gbp import-orig --uscan

## Update Debian changelog
#
# One can then edit the Debian changelog with the proper version, e.g.
# using the following command.

gbp dch -R --multimaint-merge --commit

## Build
#
# Then, the package can be build using e.g. the following command.
#
# The resulting package should then be available in /tmp/bkctld.

gbp buildpackage

## Lint and checks
#
# Lintian may help verify that nothing bad got introduced.

lintian -EI --pedantic /tmp/bkctld/bkctld_*_amd64.changes

# debdiff(1) is useful to check that no files has been removed or added
# by mistake.

debdiff /tmp/bkctld_{$oldVersion,$newVersion}_all.deb

# diffoscope(1) can go further and show the exact differences.

diffoscope --new-file /tmp/bkctld_{$oldVersion,$newVersion}_all.deb