From ec61e861cec2503d8020a552064eec819406e289 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Sun, 26 Oct 2014 23:18:46 -0400 Subject: [PATCH] Add debian packaging --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 40 ++++++++++++++++++++++++++++++++++++++++ debian/copyright | 33 +++++++++++++++++++++++++++++++++ debian/rules | 24 ++++++++++++++++++++++++ debian/source/format | 1 + 6 files changed, 104 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a972b44 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +duplicity (0) UNRELEASED; urgency=low + + * Testing (just a dummy changelog, will be replaced by daily build scripts) + + -- Michael Terry Fri, 15 Nov 2013 21:55:21 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..462ac23 --- /dev/null +++ b/debian/control @@ -0,0 +1,40 @@ +Source: duplicity +Section: utils +Priority: optional +Maintainer: Duplicity Team +Build-Depends: debhelper (>= 7), + dh-python, + gnupg, + librsync-dev (>= 0.9.6), + par2, + pep8, + pylint, + python-dev (>= 2.6.6-3~), + python-lockfile, + python-mock, + python-pexpect, + rename, + rdiff, + rsync, +Homepage: https://launchpad.net/duplicity +Standards-Version: 3.9.5 +X-Python-Version: >= 2.6 + +Package: duplicity +Architecture: any +Depends: ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends}, + gnupg, + python-lockfile, + python-pexpect, +Suggests: ncftp, + python-boto, + python-paramiko, +Description: encrypted bandwidth-efficient backup + Duplicity backs directories by producing encrypted tar-format volumes + and uploading them to a remote or local file server. Because duplicity + uses librsync, the incremental archives are space efficient and only + record the parts of files that have changed since the last backup. + Because duplicity uses GnuPG to encrypt and/or sign these archives, they + will be safe from spying and/or modification by the server. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1868474 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Duplicity +Upstream-Contact: Duplicity Team +Source: https://launchpad.net/duplicity/+download + +Files: * +Copyright: 2002–2006 Ben Escoto + 2005–2006 Jiri Tyr + 2006 intrigeri + 2006 Mathias Wagner + 2006 Joey Hess + 2007–2014 Kenneth Loafman + 2009–2014 Michael Terry + 2010–2014 Edward Solden <> +Comment: For specific author information, see the bzr logs +License: GPL-2+ + +License: GPL-2+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the full text of the GNU General Public License + version 2 can be found in the file /usr/share/common-licenses/GPL-2. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0ab470f --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f +# -*- Mode:Makefile; indent-tabs-mode:t; tab-width:4 -*- + +UPSTREAM_VERSION=$(shell dpkg-parsechangelog -SVersion | cut -d- -f1) + +%: + dh $@ --with python2 + +override_dh_auto_test: + ./setup.py test + +override_dh_auto_install: + dh_auto_install + + # Debian installs docs itself in /usr/share/doc/duplicity/ + rm -r debian/duplicity/usr/share/doc/duplicity-* + + # Modify upstream's version string into the right version + find debian/duplicity -name "*\$$version*" | xargs rename "s/\\\$$version/$(UPSTREAM_VERSION)/g" + find debian/duplicity -name "*_version*" | xargs rename "s/_version/$(UPSTREAM_VERSION)/g" + grep -Rl "\$$version" debian/duplicity | xargs sed -i "s/\$$version/$(UPSTREAM_VERSION)/g" + +override_dh_installdocs: + dh_installdocs README README-LOG diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)