Commit e00cdfc8 authored by Marco Nenciarini's avatar Marco Nenciarini

Restructure packages

- Add python3-barman and barman-cli binaries
- Build with python3
parent 0ed44b44
......@@ -2,7 +2,11 @@ Source: barman
Section: database
Priority: optional
Maintainer: Marco Nenciarini <mnencia@debian.org>
Build-Depends: debhelper (>= 9), python, python-setuptools (>= 0.6b3~), dh-python, bash-completion
Build-Depends: debhelper (>= 9),
dh-python,
python3-all,
python3-setuptools (>= 0.6b3~),
bash-completion,
Standards-Version: 4.3.0
Homepage: http://www.pgbarman.org
Vcs-Git: https://salsa.debian.org/postgresql/barman.git
......@@ -10,17 +14,67 @@ Vcs-Browser: https://salsa.debian.org/postgresql/barman
Package: barman
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, adduser, rsync (>= 3.0.4~)
Depends: python3-barman (=${binary:Version}),
python3-pkg-resources,
adduser,
rsync (>= 3.0.4~),
${misc:Depends},
${python3:Depends},
Recommends: openssh-server, openssh-client, postgresql-client
Suggests: barman-cli, repmgr (>= 3.2.0)
Suggests: barman-cli, repmgr
Description: Backup and Recovery Manager for PostgreSQL
Barman (Backup and Recovery Manager) is an open-source
administration tool for disaster recovery of PostgreSQL
servers written in Python.
.
It allows your organisation to perform remote backups of
It allows your organization to perform remote backups of
multiple servers in business critical environments to
reduce risk and help DBAs during the recovery phase.
.
Barman is distributed under GNU GPL 3 and maintained
by 2ndQuadrant.
.
This package provides barman binary.
Package: barman-cli
Architecture: all
Depends: python3-barman (=${binary:Version}),
python3-pkg-resources,
rsync (>= 3.0.4~),
${misc:Depends},
${python3:Depends},
Recommends: openssh-client
Description: Client utilities for the integration of Barman in PostgreSQL clusters
Barman (Backup and Recovery Manager) is an open-source administration
tool for disaster recovery of PostgreSQL servers written in Python.
.
It allows your organization to perform remote backups of multiple
servers in business critical environments to reduce risk and help
DBAs during the recovery phase.
.
The barman-cli package contains client utilities for the integration
of Barman in PostgreSQL clusters.
.
Barman is distributed under GNU GPL 3 and maintained by 2ndQuadrant.
Package: python3-barman
Section: python
Architecture: all
Depends: ${misc:Depends},
${python3:Depends},
Replaces: barman (<< 2.8~~), barman-cli (<< 2.8~~)
Breaks: barman (<< 2.8~~), barman-cli (<< 2.8~~)
Description: Backup and Recovery Manager for PostgreSQL - Python modules
Barman (Backup and Recovery Manager) is an open-source
administration tool for disaster recovery of PostgreSQL
servers written in Python.
.
It allows your organization to perform remote backups of
multiple servers in business critical environments to
reduce risk and help DBAs during the recovery phase.
.
Barman is distributed under GNU GPL 3 and maintained
by 2ndQuadrant.
.
This package provides Python 3 modules only.
psycopg2 python3-psycopg2
python_dateutil python3-dateutil
argh python3-argh
argcomplete python3-argcomplete
......@@ -4,5 +4,22 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME = barman
%:
dh $@ --with python2,bash-completion
dh $@ --with python3,bash-completion --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
mkdir -p $(CURDIR)/debian/barman/usr/bin $(CURDIR)/debian/barman/usr/share/man/man1 $(CURDIR)/debian/barman/usr/share/man/man5
mv $(CURDIR)/debian/python3-barman/usr/bin/barman $(CURDIR)/debian/barman/usr/bin
mv $(CURDIR)/debian/python3-barman/usr/share/man/man1/barman.1* $(CURDIR)/debian/barman/usr/share/man/man1
mv $(CURDIR)/debian/python3-barman/usr/share/man/man5/barman.5* $(CURDIR)/debian/barman/usr/share/man/man5
mkdir -p $(CURDIR)/debian/barman-cli/usr/share/man
mv $(CURDIR)/debian/python3-barman/usr/bin $(CURDIR)/debian/barman-cli/usr
mv $(CURDIR)/debian/python3-barman/usr/share/man/man1 $(CURDIR)/debian/barman-cli/usr/share/man
# For the moment barman-cli do not have any man
rmdir $(CURDIR)/debian/python3-barman/usr/share/man/man5
rmdir $(CURDIR)/debian/python3-barman/usr/share/man
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment