Skip to content

Commit

Permalink
Add debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mikix committed Oct 27, 2014
1 parent 7ee639e commit ec61e86
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
duplicity (0) UNRELEASED; urgency=low

* Testing (just a dummy changelog, will be replaced by daily build scripts)

-- Michael Terry <[email protected]> Fri, 15 Nov 2013 21:55:21 -0500
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
40 changes: 40 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Source: duplicity
Section: utils
Priority: optional
Maintainer: Duplicity Team <[email protected]>
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.
33 changes: 33 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Duplicity
Upstream-Contact: Duplicity Team <[email protected]>
Source: https://launchpad.net/duplicity/+download

Files: *
Copyright: 2002–2006 Ben Escoto <[email protected]>
2005–2006 Jiri Tyr <[email protected]>
2006 intrigeri <[email protected]>
2006 Mathias Wagner <[email protected]>
2006 Joey Hess <[email protected]>
2007–2014 Kenneth Loafman <[email protected]>
2009–2014 Michael Terry <[email protected]>
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 <http://www.gnu.org/licenses/>.
.
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.
24 changes: 24 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit ec61e86

Please sign in to comment.