summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/NEWS87
-rw-r--r--debian/README.Debian22
-rw-r--r--debian/README.source20
-rw-r--r--debian/changelog581
-rw-r--r--debian/control107
-rw-r--r--debian/copyright24
-rw-r--r--debian/patches/0005-Gracefully-cope-with-coarse-system-clock.patch28
-rw-r--r--debian/patches/clock-granularity.diff31
-rw-r--r--debian/patches/drop_oauthlib_dep.diff26
-rw-r--r--debian/patches/proc_mount.diff31
-rw-r--r--debian/patches/series5
-rw-r--r--debian/patches/show_pdflatex_output.diff29
-rw-r--r--debian/py3dist-overrides3
-rwxr-xr-xdebian/rules114
-rw-r--r--debian/s3ql-dbg.links1
-rw-r--r--debian/s3ql.doc-base11
-rw-r--r--debian/s3ql.docs2
-rw-r--r--debian/s3ql.examples1
-rw-r--r--debian/s3ql.install4
-rw-r--r--debian/s3ql.links3
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/include-binaries2
-rw-r--r--debian/tests/control10
-rwxr-xr-xdebian/tests/upstream-standard14
-rwxr-xr-xdebian/tests/upstream-with-fuse11
-rw-r--r--debian/upstream-signing-key.pgpbin0 -> 2722 bytes
-rw-r--r--debian/watch9
27 files changed, 1177 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..6d16c70
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,87 @@
+s3ql (2.27.1+dfsg-1) unstable; urgency=medium
+
+ The internal file system revision has changed. File systems created
+ with S3QL 2.27 or newer are not compatible with prior S3QL
+ versions. To update an existing file system to the newest revision,
+ use the `s3qladm upgrade` command.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 09 Jun 2018 11:53:26 +0100
+
+s3ql (2.17+dfsg-1) unstable; urgency=medium
+
+ The internal file system revision has changed. File systems created
+ with S3QL 2.17 or newer are not compatible with prior S3QL
+ versions. To update an existing file system to the newest revision,
+ use the `s3qladm upgrade` command.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 10 Mar 2016 08:13:37 -0800
+
+s3ql (2.14+dfsg-1) unstable; urgency=medium
+
+ The internal file system revision has changed. File systems created
+ with S3QL 2.14 or newer are not compatible with prior S3QL
+ versions. To update an existing file system to the newest revision,
+ use the 's3qladm upgrade' command.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 12 Aug 2015 14:57:22 -0700
+
+s3ql (2.10.1+dfsg-1) unstable; urgency=medium
+
+ The internal file system revision has changed. File systems created
+ with S3QL 2.10 or newer are not compatible with prior S3QL
+ versions. To update an existing file system to the newest revision,
+ use the 's3qladm upgrade' command.
+
+ It is strongly recommended to run the (new) s3ql_verify command with
+ the --data option at shortly after the upgrade. This is necessary to
+ ensure that the upgrade to the next (2.11) S3QL release will run
+ smoothly.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 03 Aug 2014 20:49:06 -0700
+
+s3ql (2.5-1) unstable; urgency=low
+
+ * The file system structure has changed, existing file systems
+ need to be upgraded using "s3qladm upgrade" before they can
+ be used.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 19 Oct 2013 16:34:46 -0700
+
+s3ql (1.11-1) unstable; urgency=low
+
+ * The file system structure has changed, existing file systems
+ need to be upgraded using "s3qladm upgrade" before they can
+ be used.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 29 Apr 2012 15:23:20 -0400
+
+s3ql (1.9-1) unstable; urgency=low
+
+ * The file system structure has changed, existing file systems
+ need to be upgraded using "s3qladm upgrade" before they can
+ be used.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 21 Jan 2012 13:49:59 -0500
+
+s3ql (1.7-1) unstable; urgency=low
+
+ * The file system structure has changed, existing file systems
+ need to be upgraded using "s3qladm upgrade" before they can
+ be used.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 27 Nov 2011 16:43:06 -0500
+
+s3ql (1.4-1) unstable; urgency=low
+
+ Notes for upgrading from version 1.0 or earlier:
+ ------------------------------------------------
+
+ * The file system structure has changed, existing file systems
+ need to be upgraded using "s3qladm upgrade" before they can
+ be used.
+
+ * The format and default name of the authentication file has
+ changed. The default location is now ~/.s3ql/authinfo2.
+ Please refer to the documentation for the file format.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 06 Oct 2011 11:25:44 -0400
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..3558364
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,22 @@
+S3QL for Debian
+---------------
+
+
+Q: Where do I find the contents of the contrib/ directory in the
+ upstream tarball?
+
+A: The Python scripts are installed into /usr/lib/s3ql. Manpages have
+ been placed in the proper system directory (/usr/man/man1) and can
+ be viewed with the standard `man` command. The example sample
+ backup script (s3ql_backup.sh) is installed in
+ /usr/share/doc/s3ql/examples.
+
+ Additionally, some scripts have been linked into /usr/bin under
+ different names (in these cases the manpages have been renamed
+ accordingly):
+
+ Installed Name: Original name:
+ -------------------------------------------------------------
+ expire_backups expire_backups.py
+ parallel-cp pcp.py
+ s3ql_remove_objects remove_objects.py
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..e2a53fa
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,20 @@
+
+* As requested by ftpmaster, the upstream tarball is repacked to
+ remove minified javascript files.
+
+* Since removing just the minified javascript files would leave the
+ rest of them broken, we are removing the entire pre-rendered HTML
+ documentation. There is no loss of information, since the entire
+ documentation (including the problematic javascript files) is
+ regenerated during build.
+
+* Repackaging of the upstream tarball is done with uscan. The list of
+ excluded files is specified in the Files-Excluded paragraph in
+ debian/copyright. To retrieve and repack the latest upstream
+ tarball, run
+
+ # PERL_LWP_SSL_VERIFY_HOSTNAME=0 uscan --repack
+
+ (Deactivating hostname verification isn't a problem because the
+ upstream tarball is GPG signed, but necessary to work around
+ bug #749225.)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7becc1e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,581 @@
+s3ql (3.2+dfsg-3) unstable; urgency=medium
+
+ * Gracefully cope with coarse system clock (Closes: #933558).
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 02 Aug 2019 11:22:40 +0200
+
+s3ql (3.2+dfsg-2) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * Use debhelper-compat instead of debian/compat.
+ * Depend on texlive-plain-generic instead of obsolete texlive-generic-extra
+ (Closes: #932544).
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 31 Jul 2019 11:29:32 +0200
+
+s3ql (3.2+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 17 Jul 2019 16:54:35 +0100
+
+s3ql (3.1+dfsg-2) unstable; urgency=medium
+
+ * Added dependency on python3-google-auth
+ * Added patch to make dependency on python3-google-auth-oauthlib
+ optional.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 10 Apr 2019 21:42:10 +0100
+
+s3ql (3.1+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 06 Apr 2019 16:28:05 +0100
+
+s3ql (3.0+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 09 Feb 2019 10:09:05 +0000
+
+s3ql (2.33+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 28 Dec 2018 20:04:28 +0000
+
+s3ql (2.32+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 06 Nov 2018 19:40:48 +0000
+
+s3ql (2.30+dfsg-1) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * d/copyright: Use https protocol in Format field
+ * d/control: Removing redundant Priority field in binary package
+ * d/rules: Remove trailing whitespaces
+ * Convert git repository from git-dpm to gbp layout
+
+ [ Nikolaus Rath ]
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 02 Sep 2018 12:48:32 +0100
+
+s3ql (2.29+dfsg-2) unstable; urgency=medium
+
+ * No-change re-upload. Previous version somehow didn't make it
+ into the archive.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 05 Aug 2018 11:13:54 +0100
+
+s3ql (2.29+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 21 Jul 2018 12:10:18 +0100
+
+s3ql (2.28+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 14 Jun 2018 12:19:15 +0100
+
+s3ql (2.27.1+dfsg-1) unstable; urgency=medium
+
+ * Sporadic test failure in t3_verify.py fixed upstream. Closes: #851375.
+ * new upstream version
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 09 Jun 2018 12:05:27 +0100
+
+s3ql (2.26+dfsg-4) unstable; urgency=medium
+
+ * Disable http + https proxy in tests (previously only the http_proxy
+ environment variable has unset).
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 07 Apr 2018 20:05:17 +0100
+
+s3ql (2.26+dfsg-3) unstable; urgency=medium
+
+ * Disable proxy in integration tests.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 04 Apr 2018 14:55:21 +0100
+
+s3ql (2.26+dfsg-2) unstable; urgency=medium
+
+ * Drop pytest-catchlog dependency in favor of pytest >= 3.3. Closes:
+ #894717.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 04 Apr 2018 09:51:16 +0100
+
+s3ql (2.26+dfsg-1) unstable; urgency=medium
+
+ * Added Depends: procps. Closes: #887375.
+ * New upstream version.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 04 Mar 2018 11:39:35 +0000
+
+s3ql (2.25+dfsg-1) unstable; urgency=medium
+
+ * New upstream version
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 05 Jan 2018 12:05:16 +0100
+
+s3ql (2.24+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Fixed bogus test failure. Closes: #877204
+ * Bumped standards version to 4.1.1
+ * Added support for 'nodoc' build option.
+ * Marked s3ql-doc as Multi-Arch: same
+ * Changed package section from extra to optional
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 04 Nov 2017 14:04:39 +0000
+
+s3ql (2.23+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 19 Aug 2017 14:38:51 +0200
+
+s3ql (2.22+dfsg-1) unstable; urgency=medium
+
+ * Dropped jessie compatibility patches.
+ * New upstream release
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 23 Jun 2017 09:53:10 -0700
+
+s3ql (2.21+dfsg-3) unstable; urgency=medium
+
+ * Expect test_verify() to fail during build. There is a race
+ condition in the test that still needs to be fixed, but this
+ should not cause the build to fail. Closes: #851375.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 17 Jan 2017 20:35:21 -0800
+
+s3ql (2.21+dfsg-2) unstable; urgency=medium
+
+ * Bumped python3-pytest dependency to minimum version required
+ by upstream.
+ * Added build-dependency on procps. Closes: #850458
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 06 Jan 2017 11:29:24 -0800
+
+s3ql (2.21+dfsg-1) unstable; urgency=medium
+
+ * New upstream version
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 28 Oct 2016 14:07:23 -0700
+
+s3ql (2.20+dfsg-1) unstable; urgency=medium
+
+ * new upstream version
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 24 Aug 2016 12:10:58 -0700
+
+s3ql (2.19+dfsg-1) unstable; urgency=medium
+
+ * new upstream version
+ * Show full pdflatex output during build
+ * Added missing texlive-generic-extra dependency.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Mon, 27 Jun 2016 12:00:39 -0700
+
+s3ql (2.18+dfsg-1) unstable; urgency=medium
+
+ * Enable debug logging for s3ql.verify when running unit tests during
+ build.
+ * Moved packaging to git and collab-maint on alioth.
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 29 Apr 2016 19:08:53 -0700
+
+s3ql (2.17.1+hg2+dfsg-3) unstable; urgency=medium
+
+ * Adding python3-pytest-catchlog dependency for unit tests.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 13 Mar 2016 14:39:48 -0700
+
+s3ql (2.17.1+hg2+dfsg-2) unstable; urgency=medium
+
+ * Fixed up broken rebase of patches/support_jessie_upgrade.diff
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 11 Mar 2016 19:19:12 -0800
+
+s3ql (2.17.1+hg2+dfsg-1) unstable; urgency=medium
+
+ * Added forgotten NEWS entry for 2.17+dfsg-1
+ * New release from upstream repository snapshot.
+ * Run tests with (some) debug logging enabled to debug sporadic test
+ failure of tests/t3_verify.py.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 11 Mar 2016 16:18:25 -0800
+
+s3ql (2.17.1+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 09 Mar 2016 14:33:57 -0800
+
+s3ql (2.17+dfsg-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 09 Mar 2016 11:13:23 -0800
+
+s3ql (2.16+dfsg-1) unstable; urgency=medium
+
+ * Added dependency on python3-systemd.
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 23 Feb 2016 15:44:51 -0800
+
+s3ql (2.15+dfsg-1) unstable; urgency=medium
+
+ * Add Breaks and Replaces to prevent upgrade problems due to the
+ extension for the debug interpreter having moved from s3ql-dbg to s3ql in
+ 2.14+dfsg-1. Closes: #799261.
+ * New upstream release.
+ * Dropped fix_setattr_test.diff (fixed upstream).
+ * Added use_cython3.diff and ignore_cython_warnings.diff to handle
+ Debian-specific Cython peculiarities.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 25 Sep 2015 13:50:51 -0700
+
+s3ql (2.14+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Dropped patches/check_dev_fuse_perms.diff (integrated upstream).
+ * Added /usr/bin/s3ql_remove_objects
+ * Added build-depends on fuse, rsync and psmisc (required for unit tests).
+ * Python extensions compiled for the debugging interpreter are now
+ actually shipped in the s3ql-dbg package (rather than the s3ql
+ package).
+ * Added patches/support_jessie_upgrade.diff (upstream dropped
+ compatibility with jessie's S3QL version).
+ * Added patches/fix_setattr_test.diff to un-break a unit test
+ that dependended on undocumented behavior in python3-llfuse (which changed
+ recently). Closes: #798596.
+ * Added lost changelog entry for 2.11.1+dfsg-2. Closes: #798595.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 10 Sep 2015 13:40:00 -0700
+
+s3ql (2.13+dfsg-2) unstable; urgency=medium
+
+ * Tighten dependency on python3-dugong, python3-apsw, and
+ python3-llfuse. Closes: #778487.
+
+ * Added missing build-dependency on python3-llfuse-dbg.
+ Closes: #790525.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 01 Jul 2015 02:33:26 -0800
+
+s3ql (2.13+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Dropped patches/fix_test_check_objects_temp.diff (fixed upstream).
+ * Dropped patches/debug_test_thread_hang.diff (fixed upstream).
+ * Fixed a bug that caused fsck.s3ql to either abort with a
+ "apsw.ConstraintError" or to incorrectly consider storage objects
+ as missing when the connection to remote server is interrupted
+ while retrieving the object list. Closes: #771452.
+ * Fixed a problem where mount.s3ql would crash when unmouting the
+ file system because it could not delete the cache directory. This
+ could happen when the file system was not unmounted cleanly, but
+ fsck.s3ql was then run on a different system (or using a different
+ cache directory). Closes: #772052.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 31 Jan 2015 20:16:12 -0800
+
+s3ql (2.12+dfsg-2) experimental; urgency=medium
+
+ * Added patches/debug_test_thread_hang.diff to debug occasional test
+ failures on buildds.
+ * Added patches/fix_test_check_objects_temp.diff (cherry-picked
+ upstream) to fix occasional test failures during build.
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Mon, 10 Nov 2014 18:58:07 -0800
+
+s3ql (2.12+dfsg-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Update Standards-Version to 3.9.6 (no changes needed).
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 09 Nov 2014 15:05:23 -0800
+
+s3ql (2.11.1+dfsg-2) unstable; urgency=medium
+
+ * Fixed a problem with fsck.s3ql aborting with an
+ "apsw.ConstraintError" or incorrectly considering storage
+ objects as missing when the connection to remote server is
+ interrupted. Closes: #771452.
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 02 Dec 2014 21:44:27 -0800
+
+s3ql (2.11.1+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Dropped patches/cve_2014_0485.diff, integrated upstream.
+ * Dropped patches/fix_failsafe_test_race.diff, integrated upstream.
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 04 Sep 2014 18:28:41 -0700
+
+s3ql (2.10.1+dfsg-4) unstable; urgency=high
+
+ * SECURITY UPDATE for CVE-2014-0485.
+
+ A remote code execution vulnerability was fixed.
+
+ An attacker with control over the communication with the storage
+ backend or the ability to manipulate the data stored in the
+ backend was able to trigger execution of arbitrary code by
+ mount.s3ql, fsck.s3ql, mkfs.s3ql, s3qladm and s3ql_verify. Both
+ encrypted and unencrypted file systems were vulnerable.
+
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Mon, 25 Aug 2014 17:21:09 -0700
+
+s3ql (2.10.1+dfsg-3) unstable; urgency=medium
+
+ * Added fix_failsafe_test_race.diff. Closes: #758013.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 20 Aug 2014 17:30:03 -0700
+
+s3ql (2.10.1+dfsg-2) unstable; urgency=medium
+
+ * Bumped python3-dugong dependency to 3.3 to fix build failures
+ on kFreeBSD (and presumably also similar problems when running
+ the software on both kFreeBSD and Linux).
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 06 Aug 2014 18:55:19 -0700
+
+s3ql (2.10.1+dfsg-1) unstable; urgency=medium
+
+ * Made system clock resolution heuristic in unittests even more
+ conservative, there are still occasional build failures on i386.
+ * New upstream release.
+ * Dropped patches (integrated upstream):
+ - C_locale_compat.diff
+ - kfreebsd_compat.diff
+ - sphinx_build_locale_fix.diff
+ * Bumped python3-dugong dependency to 3.2
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 03 Aug 2014 20:49:06 -0700
+
+s3ql (2.9+dfsg-2) unstable; urgency=medium
+
+ * Cherry-picked kFreeBSD compatibility patch from upstream
+ (Closes: #755358)
+ * Cherry-picked upstream patch to support testing with C
+ locale.
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 19 Jul 2014 20:24:55 -0700
+
+s3ql (2.9+dfsg-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Fix automatic self test when running as root (Closes: #745476)
+ * Dropped patches/sphinx-1.1.1-compat.diff (no longer required now
+ that Sphinx 1.2 is in unstable).
+ * Added patches/sphinx_build_locale_fix.diff (cherry-picked from upstream)
+ to make documentation build work independent of system locale.
+ * Added patches/check_dev_fuse_perms.diff to avoid running FUSE
+ tests on continuous integration servers where /dev/fuse is
+ not accessible.
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 28 Jun 2014 12:30:45 -0700
+
+s3ql (2.8.1+dfsg-1) unstable; urgency=low
+
+ * Updated upstream project URL.
+ * Added upstream PGP key and configured watch file for automatic
+ verification.
+ * New upstream release.
+ * Do not crash when building with snapshot Cython versions
+ (Closes: #742760)
+ * Update Standards-Version to 3.9.5 (no changes needed).
+ * Repackaged to exclude minified javascript files.
+ * Upload sponsored by Petter Reinholdtsen.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 14 Mar 2014 19:11:06 -0700
+
+s3ql (2.7-1) unstable; urgency=low
+
+ * New upstream release.
+ * Estimate clock resolution more conservatively when running unit
+ tests.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Mon, 16 Dec 2013 20:21:41 -0800
+
+s3ql (2.5-2) unstable; urgency=low
+
+ * Do not try to write logfiles into $HOME when running self tests.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 20 Oct 2013 11:38:32 -0700
+
+s3ql (2.5-1) unstable; urgency=low
+
+ * Added patch for Sphinx 1.1.3 compatibility.
+ * New upstream release.
+ * Fixed autopkgtests (this time a missing PYTHONPATH, LP: #1223514).
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 27 Aug 2013 20:17:06 -0700
+
+s3ql (1.16-2) unstable; urgency=low
+
+ * Updated uploader email address.
+ * Removed obsolete lintian override.
+ * Extended clean target, re-build should now work.
+ * Updated package description.
+ * Bump build dependency on Cython to 0.17
+ * Fixed autopkgtests to use installed S3QL.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 18 Jul 2013 21:41:29 -0700
+
+s3ql (1.16-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 12 Jul 2013 21:11:01 -0700
+
+s3ql (1.15-1) unstable; urgency=low
+
+ [ Jakub Wilk ]
+ * Use canonical URIs for Vcs-* fields.
+
+ [ Nikolaus Rath ]
+ * New upstream release.
+ * Added autopkgtest data.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 15 Jun 2013 15:06:37 -0700
+
+s3ql (1.14-1) unstable; urgency=low
+
+ * Update standards version to 3.9.4, no other changes
+ required.
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 09 Apr 2013 19:08:15 -0700
+
+s3ql (1.13.1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Fixed metadata corruption with recent eglibc (triggered test
+ failure on build). Closes: #701350
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 23 Feb 2013 17:46:56 -0800
+
+s3ql (1.12-1) unstable; urgency=low
+
+ * New upstream release.
+ * Bumped debhelper compatibility level to 9 to get support for
+ dpkg-buildflags.
+ * Added lintian override for hardening-no-fortify-functions,
+ this is a false positive.
+ * Added patches/buildd-fix.diff to prevent errors when trying
+ to write logs during autobuilding.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 05 Sep 2012 20:22:18 -0400
+
+s3ql (1.11.1-2) unstable; urgency=low
+
+ * Add dependency on python-pkg-resources. Closes: 672916.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 15 May 2012 18:41:38 -0400
+
+s3ql (1.11.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 04 May 2012 11:12:29 -0400
+
+s3ql (1.11-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 29 Apr 2012 15:22:56 -0400
+
+s3ql (1.10-1) unstable; urgency=low
+
+ * Bumped standards to 3.9.3, no changes required.
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 24 Feb 2012 21:51:01 -0500
+
+s3ql (1.9-1) unstable; urgency=low
+
+ * Depend on python >= 2.7 (now required by upstream). Closes: #653641.
+ * New upstream release.
+ * Dropped obsolete argparse.diff patch.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sat, 21 Jan 2012 13:38:25 -0500
+
+s3ql (1.8.1-1) unstable; urgency=low
+
+ * Add versioned depends on python-argparse. Closes: #652751.
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Mon, 05 Dec 2011 20:36:44 -0500
+
+s3ql (1.7-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 27 Nov 2011 14:40:58 -0500
+
+s3ql (1.6-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Tue, 22 Nov 2011 11:04:35 -0500
+
+s3ql (1.5-1) unstable; urgency=low
+
+ * New upstream release.
+ * Don't crash when using Google Storage backend. Closes: #646232.
+ * Use dh_sphinxdoc.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Mon, 24 Oct 2011 19:16:12 -0400
+
+s3ql (1.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ * Depend on fuse | fusebsd. Closes: #634337.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Thu, 06 Oct 2011 11:20:25 -0400
+
+s3ql (1.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Depend on python-llfuse >= 0.36, API was changed in non-backwards
+ compatible way.
+ * Depend on Python >= 2.6.6, previous versions unusable due to
+ Python bug 6312.
+ * Don't ship our own version of underscore JavaScript library, depend
+ on libjs-underscore package instead.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Wed, 28 Sep 2011 21:00:04 -0400
+
+s3ql (1.0.1-2) unstable; urgency=low
+
+ * Install pcp as parallel-cp to avoid file name conflict with
+ pcp ("Performance Co-Pilot") package. Closes: #632473.
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Sun, 03 Jul 2011 10:44:00 -0400
+
+s3ql (1.0.1-1) unstable; urgency=low
+
+ * First official debian release. Closes: #626651
+
+ -- Nikolaus Rath <Nikolaus@rath.org> Fri, 01 Jul 2011 14:02:17 -0400
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4ca98f9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,107 @@
+Source: s3ql
+Section: misc
+Priority: optional
+Maintainer: Nikolaus Rath <Nikolaus@rath.org>
+Uploaders: Debian Python Apps Team <python-apps-team@lists.alioth.debian.org>
+Build-Depends: debhelper-compat (= 9),
+ python3 (>= 3.3),
+ python3-dev (>= 3.3),
+ python3-dbg,
+ python3-setuptools (>= 0.6.14),
+ python3-apsw (>= 3.7.0),
+ python3-sphinx (>= 1.2),
+ python3-llfuse (>= 1.0), python3-llfuse (<< 2.0),
+ python3-llfuse-dbg,
+ python3-cryptography,
+ python3-requests,
+ python3-dugong (>= 3.4),
+ python3-pytest (>= 3.3.0),
+ python3-defusedxml,
+ python3-google-auth,
+ cython3 (>= 0.23),
+ texlive-latex-base,
+ texlive-latex-recommended,
+ texlive-latex-extra,
+ texlive-plain-generic,
+ texlive-fonts-recommended,
+ libsqlite3-dev (>= 3.7.0),
+ rsync,
+ fuse [linux-any], fuse4bsd [kfreebsd-any],
+ psmisc,
+ procps
+Standards-Version: 4.1.1
+Homepage: https://bitbucket.org/nikratio/s3ql/
+Vcs-Git: https://salsa.debian.org/python-team/applications/s3ql.git
+Vcs-Browser: https://salsa.debian.org/python-team/applications/s3ql
+
+Package: s3ql
+Architecture: any
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends},
+ ${sphinxdoc:Depends},
+ fuse [linux-any] | fuse4bsd [kfreebsd-any],
+ psmisc,
+ procps,
+ python3-pkg-resources
+Recommends: python3-systemd
+Description: Full-featured file system for online data storage
+ S3QL is a file system that stores all its data online using storage
+ services like Google Storage, Amazon S3 or OpenStack. S3QL
+ effectively provides a hard disk of dynamic, infinite capacity that
+ can be accessed from any computer with internet access.
+ .
+ S3QL is a standard conforming, full featured UNIX file system that is
+ conceptually indistinguishable from any local file
+ system. Furthermore, S3QL has additional features like compression,
+ encryption, data de-duplication, immutable trees and snapshotting
+ which make it especially suitable for online backup and archival.
+ .
+ In addition to accessing online storage services directoly, S3QL can
+ also store its data underneath a regular mount point. This enables
+ the use of S3QL with e.g. NFS, CIFS or sftp servers.
+ .
+ S3QL is designed to favor simplicity and elegance over performance
+ and feature-creep. Care has been taken to make the source code as
+ readable and serviceable as possible. Solid error detection and error
+ handling have been included from the very first line, and S3QL comes
+ with extensive automated test cases.
+
+Package: s3ql-dbg
+Architecture: any
+Section: debug
+Recommends: python3-dbg,
+ python3-llfuse-dbg,
+ python3-apsw-dbg,
+ python3-crypto-dbg,
+Depends: s3ql (= ${binary:Version}),
+ ${python3:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends}
+Replaces: s3ql (<< 2.14+dfsg-1)
+Multi-Arch: same
+Breaks: s3ql (<< 2.14+dfsg-1)
+Description: Full-featured file system for online data storage (debugging symbols)
+ S3QL is a file system that stores all its data online using storage
+ services like Google Storage, Amazon S3 or OpenStack. S3QL
+ effectively provides a hard disk of dynamic, infinite capacity that
+ can be accessed from any computer with internet access.
+ .
+ S3QL is a standard conforming, full featured UNIX file system that is
+ conceptually indistinguishable from any local file
+ system. Furthermore, S3QL has additional features like compression,
+ encryption, data de-duplication, immutable trees and snapshotting
+ which make it especially suitable for online backup and archival.
+ .
+ In addition to accessing online storage services directoly, S3QL can
+ also store its data underneath a regular mount point. This enables
+ the use of S3QL with e.g. NFS, CIFS or sftp servers.
+ .
+ S3QL is designed to favor simplicity and elegance over performance
+ and feature-creep. Care has been taken to make the source code as
+ readable and serviceable as possible. Solid error detection and error
+ handling have been included from the very first line, and S3QL comes
+ with extensive automated test cases.
+ .
+ This package contains the debugging symbols as well as the extension
+ built for the Python 3 debug interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..773f261
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,24 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: s3ql
+Upstream-Contact: s3ql@googlegroups.com
+Source: https://bitbucket.org/nikratio/s3ql/
+Files-Excluded: doc/html
+
+Files: *
+Copyright: Copyright (c) 1998 - 2012 Nikolaus Rath <Nikolaus@rath.org>
+License: GPL-3
+
+License: GPL-3
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License Version 3 as
+ published by the Free Software Foundation.
+ .
+ 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.
+ .
+ On Debian systems the full text of the GNU General Public License
+ Version 3 can be found in the `/usr/share/common-licenses/GPL-3'
+ file.
+
diff --git a/debian/patches/0005-Gracefully-cope-with-coarse-system-clock.patch b/debian/patches/0005-Gracefully-cope-with-coarse-system-clock.patch
new file mode 100644
index 0000000..6db7ba0
--- /dev/null
+++ b/debian/patches/0005-Gracefully-cope-with-coarse-system-clock.patch
@@ -0,0 +1,28 @@
+From: Nikolaus Rath <Nikolaus@rath.org>
+Date: Fri, 2 Aug 2019 11:21:01 +0200
+Subject: Gracefully cope with coarse system clock
+
+On hppa, we sometimes get a DivisionByZero error - presumably because
+the system clock doesn't offer enough granularity.
+---
+ src/s3ql/fs.py | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/s3ql/fs.py b/src/s3ql/fs.py
+index 33c87fd..ce61180 100644
+--- a/src/s3ql/fs.py
++++ b/src/s3ql/fs.py
+@@ -409,8 +409,11 @@ class Operations(llfuse.Operations):
+ queue.append(id_p)
+
+ dt = time.time() - stamp
+- batch_size = int(batch_size * GIL_RELEASE_INTERVAL / dt)
+- batch_size = min(batch_size, 200) # somewhat arbitrary...
++ if dt == 0:
++ batch_size *= 2
++ else:
++ batch_size = int(batch_size * GIL_RELEASE_INTERVAL / dt)
++ batch_size = min(batch_size, 200) # somewhat arbitrary...
+ batch_size = max(batch_size, 20000)
+ log.debug('Adjusting batch_size to %d and yielding', batch_size)
+ llfuse.lock.yield_(100)
diff --git a/debian/patches/clock-granularity.diff b/debian/patches/clock-granularity.diff
new file mode 100644
index 0000000..917f382
--- /dev/null
+++ b/debian/patches/clock-granularity.diff
@@ -0,0 +1,31 @@
+From: Nikolaus Rath <Nikolaus@rath.org>
+Date: Tue, 23 Feb 2016 15:44:51 -0800
+Subject: Estimate system clock granularity more conservatively
+
+Origin: debian
+Forwarded: no
+Patch-Name: clock-granularity.diff
+
+Some unit tests check that file access time stamps are updated
+correctly. For such a test to succeed, it's necessarily that the time
+between two subsequent test-accesses can actually be resolved. The
+heuristic to determine this granularity doesn't seem to work well on
+e.g. the i386 buildd, so we make it much more conservative. This means
+the test suite runs longer, but otherwise has no ill effects.
+---
+ tests/common.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/common.py b/tests/common.py
+index 8c3be59..bea2e5c 100644
+--- a/tests/common.py
++++ b/tests/common.py
+@@ -27,7 +27,7 @@ def get_clock_granularity():
+ stamp2 = time.time()
+ resolution = min(resolution, stamp2 - stamp1)
+ time.sleep(0.01)
+- return resolution
++ return max(1, 10 * resolution)
+ CLOCK_GRANULARITY = get_clock_granularity()
+
+ # When testing, we want to make sure that we don't sleep for too short a time
diff --git a/debian/patches/drop_oauthlib_dep.diff b/debian/patches/drop_oauthlib_dep.diff
new file mode 100644
index 0000000..d0fa74c
--- /dev/null
+++ b/debian/patches/drop_oauthlib_dep.diff
@@ -0,0 +1,26 @@
+From: Nikolaus Rath <Nikolaus@rath.org>
+Date: Wed, 10 Apr 2019 21:36:05 +0100
+Subject: Drop dependency on google-auth-oauthlib
+
+This is optional and only necessary for some features.
+
+Origin: debian
+Forwarded: not-needed
+---
+ setup.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index ee7a257..9dfa793 100755
+--- a/setup.py
++++ b/setup.py
+@@ -145,8 +145,7 @@ def main():
+ 'defusedxml',
+ 'dugong >= 3.4, < 4.0',
+ 'llfuse >= 1.0, < 2.0',
+- 'google-auth',
+- 'google-auth-oauthlib']
++ 'google-auth']
+
+ setuptools.setup(
+ name='s3ql',
diff --git a/debian/patches/proc_mount.diff b/debian/patches/proc_mount.diff
new file mode 100644
index 0000000..5f51005
--- /dev/null
+++ b/debian/patches/proc_mount.diff
@@ -0,0 +1,31 @@
+From: Nikolaus Rath <Nikolaus@rath.org>
+Date: Tue, 23 Feb 2016 15:44:51 -0800
+Subject: Skip tests requiring /proc
+
+Origin: debian
+Forwarded: no
+Patch-Name: proc_mount.diff
+---
+ tests/t4_adm.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/t4_adm.py b/tests/t4_adm.py
+index a38e0fa..4a3f509 100755
+--- a/tests/t4_adm.py
++++ b/tests/t4_adm.py
+@@ -22,6 +22,7 @@ import tempfile
+ import unittest
+ import subprocess
+ import pytest
++import os
+
+ @pytest.mark.usefixtures('pass_s3ql_cmd_argv', 'pass_reg_output')
+ class AdmTests(unittest.TestCase):
+@@ -56,6 +57,7 @@ class AdmTests(unittest.TestCase):
+
+ return stdout
+
++ @unittest.skipUnless(os.path.exists('/proc/mounts'), '/proc/mounts not available')
+ def test_passphrase(self):
+ self.mkfs()
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..de9941b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+proc_mount.diff
+clock-granularity.diff
+show_pdflatex_output.diff
+drop_oauthlib_dep.diff
+0005-Gracefully-cope-with-coarse-system-clock.patch
diff --git a/debian/patches/show_pdflatex_output.diff b/debian/patches/show_pdflatex_output.diff
new file mode 100644
index 0000000..b8269f3
--- /dev/null
+++ b/debian/patches/show_pdflatex_output.diff
@@ -0,0 +1,29 @@
+From: Nikolaus Rath <Nikolaus@rath.org>
+Date: Mon, 27 Jun 2016 11:25:34 -0700
+Subject: Don't hide pdflatex output.
+
+Origin: debian
+Forwarded: not-needed
+Patch-Name: show_pdflatex_output.diff
+
+Upstream is not interested in this patch.
+---
+ setup.py | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 02964e1..ee7a257 100755
+--- a/setup.py
++++ b/setup.py
+@@ -99,9 +99,8 @@ class build_docs(setuptools.Command):
+
+ print('Running pdflatex...')
+ for _ in range(3):
+- with open('/dev/null', 'wb') as null:
+- subprocess.check_call(['pdflatex', '-interaction', 'batchmode', 'manual.tex'],
+- cwd=os.path.join(dest_dir, 'latex'), stdout=null)
++ subprocess.check_call(['pdflatex', '-interaction', 'nonstopmode', 'manual.tex'],
++ cwd=os.path.join(dest_dir, 'latex'))
+ os.rename(os.path.join(dest_dir, 'latex', 'manual.pdf'),
+ os.path.join(dest_dir, 'manual.pdf'))
+
diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides
new file mode 100644
index 0000000..e386e0b
--- /dev/null
+++ b/debian/py3dist-overrides
@@ -0,0 +1,3 @@
+dugong python3-dugong; PEP386
+apsw python3-apsw; PEP386
+llfuse python3-llfuse; PEP386
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..329fa39
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,114 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+#export DH_VERBOSE=1
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+%:
+ dh $@ --with python3,sphinxdoc
+
+override_dh_auto_build: build_cython build_sphinx build_python
+
+build_cython:
+ dh_testdir
+ python3 setup.py build_cython
+ touch $@
+
+build_sphinx: build_inplace
+ dh_testdir
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+ python3 setup.py build_sphinx
+endif
+ touch $@
+
+build_inplace: build_cython
+ python3 setup.py build_ext --inplace
+ touch $@
+
+build_python: build_cython
+ dh_testdir
+ python3-dbg setup.py build -g
+ python3 setup.py build -g
+ touch $@
+
+override_dh_auto_install:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ # Note: Install non -dbg last, so that scripts don't get a -dbg interpreter
+ python3-dbg setup.py install --force --root=debian/tmp \
+ --install-lib=/usr/lib/s3ql \
+ --install-scripts=/usr/lib/s3ql \
+ --no-compile -O0 --install-layout=deb
+
+ python3 setup.py install --force --root=debian/tmp \
+ --install-lib=/usr/lib/s3ql \
+ --install-scripts=/usr/lib/s3ql \
+ --no-compile -O0 --install-layout=deb
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ python3 setup.py build_ext --inplace
+ # Some tests will try to create log files in $HOME
+ mkdir -p debian/tmphome
+ HOME=$(CURDIR)/debian/tmphome py.test-3 --logdebug=s3ql.verify tests/
+endif
+
+override_dh_install:
+ dh_install
+
+ # Rename to avoid conflict with pcp package
+ (cd debian/s3ql/usr/share/man/man1/; mv pcp.1 parallel-cp.1)
+
+ # Install debugging extension and remove from regular package
+ (cd debian/s3ql; \
+ find . -regextype posix-egrep -regex ".+\\.[a-z]+-[0-9]{2,}[a-z]*d[a-z]*-$(DEB_HOST_MULTIARCH)\\.so" \
+ -printf "%P\0" -delete) \
+ | xargs -0 dh_install --autodest -ps3ql-dbg
+
+ # Link all executable files not ending in .py into /usr/bin
+ mkdir -p debian/s3ql/usr/bin/
+ for entry in debian/s3ql/usr/lib/s3ql/*; do \
+ if [ -d "$$entry" ] || [ ! -x "$$entry" ] \
+ || [ "$${entry%.py}" != "$$entry" ]; then \
+ continue; \
+ fi; \
+ ln -s ../lib/s3ql/`basename "$$entry"` \
+ "debian/s3ql/usr/bin/`basename \"$$entry\"`"; \
+ done
+
+override_dh_link:
+ rm -rf debian/s3ql-dbg/usr/share/doc/s3ql-dbg
+ dh_link
+
+
+# We don't want to call setup.py clean, because this
+# requires a number of (potentially uninstalled) build-dependencies.
+override_dh_auto_clean:
+ rm -rf build doc tests/test.log src/s3ql/deltadump.c contrib/*.1
+ find \( \( -name '*.egg-info' -type d \) \
+ -o \( -name __pycache__ -type d \) \
+ -o \( -name '*.so' -type f \) \
+ \) -prune -exec rm -rf '{}' +
+ rm -rf build-python build_cython build_sphinx build-stamp
+ rm -rf debian/tmphome
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+ dh_strip -ps3ql --dbg-package=s3ql-dbg
+endif
+
+.PHONY: get-orig-source
+get-orig-source:
+ # Work around bug #749225
+ PERL_LWP_SSL_VERIFY_HOSTNAME=0 \
+ uscan --rename --destdir=$(CURDIR)/.. --repack --force-download \
+ --download-current-version --compression xz
+
+.PHONY: uscan
+uscan:
+ # Work around bug #749225
+ PERL_LWP_SSL_VERIFY_HOSTNAME=0 \
+ uscan --rename --destdir=$(CURDIR)/.. --repack --compression xz
diff --git a/debian/s3ql-dbg.links b/debian/s3ql-dbg.links
new file mode 100644
index 0000000..6c91288
--- /dev/null
+++ b/debian/s3ql-dbg.links
@@ -0,0 +1 @@
+/usr/share/doc/s3ql /usr/share/doc/s3ql-dbg
diff --git a/debian/s3ql.doc-base b/debian/s3ql.doc-base
new file mode 100644
index 0000000..fe8fa4f
--- /dev/null
+++ b/debian/s3ql.doc-base
@@ -0,0 +1,11 @@
+Document: s3ql
+Title: S3QL User's Guide
+Author: Nikolaus Rath <Nikolaus@rath.org>
+Section: File Management
+
+Format: HTML
+Index: /usr/share/doc/s3ql/html/index.html
+Files: /usr/share/doc/s3ql/html/*.html
+
+Format: PDF
+Files: /usr/share/doc/s3ql/manual.pdf.gz
diff --git a/debian/s3ql.docs b/debian/s3ql.docs
new file mode 100644
index 0000000..5214ec8
--- /dev/null
+++ b/debian/s3ql.docs
@@ -0,0 +1,2 @@
+doc/html/
+doc/manual.pdf
diff --git a/debian/s3ql.examples b/debian/s3ql.examples
new file mode 100644
index 0000000..59dbaa2
--- /dev/null
+++ b/debian/s3ql.examples
@@ -0,0 +1 @@
+contrib/s3ql_backup.sh
diff --git a/debian/s3ql.install b/debian/s3ql.install
new file mode 100644
index 0000000..9ef8edd
--- /dev/null
+++ b/debian/s3ql.install
@@ -0,0 +1,4 @@
+usr/
+contrib/*.py /usr/lib/s3ql/
+contrib/*.1 /usr/share/man/man1/
+
diff --git a/debian/s3ql.links b/debian/s3ql.links
new file mode 100644
index 0000000..fdf4300
--- /dev/null
+++ b/debian/s3ql.links
@@ -0,0 +1,3 @@
+/usr/lib/s3ql/pcp.py /usr/bin/parallel-cp
+/usr/lib/s3ql/expire_backups.py /usr/bin/expire_backups
+/usr/lib/s3ql/remove_objects.py /usr/bin/s3ql_remove_objects
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..fb217db
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1,2 @@
+debian/python.inv
+debian/upstream-signing-key.pgp
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d62d8de
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
+Tests: upstream-standard
+Depends: python3-pytest, rsync, s3ql, fuse, psmisc
+
+# This is really the same test suite, but when run with root
+# access (or permission to mount fuse file systems), additional
+# tests will be run.
+Tests: upstream-with-fuse
+Depends: python3-pytest, rsync, s3ql, fuse, psmisc
+Restrictions: needs-root
+
diff --git a/debian/tests/upstream-standard b/debian/tests/upstream-standard
new file mode 100755
index 0000000..35c91ab
--- /dev/null
+++ b/debian/tests/upstream-standard
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Unset proxies. In Ubuntu build environments, a proxy is used to
+# refuse all network access with a 503 error. However, the test
+# cases actually try to connect to a mock service running on
+# localhost.
+unset http_proxy
+unset https_proxy
+
+# Test suite automatically skips over tests that cannot be
+# executed because of insufficient priviliges.
+
+export PYTHONPATH="/usr/lib/s3ql:${PYTHONPATH}"
+exec py.test-3 --installed --logdebug=s3ql.verify tests/
diff --git a/debian/tests/upstream-with-fuse b/debian/tests/upstream-with-fuse
new file mode 100755
index 0000000..af02ea9
--- /dev/null
+++ b/debian/tests/upstream-with-fuse
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Unset proxies. In Ubuntu build environments, a proxy is used to
+# refuse all network access with a 503 error. However, the test
+# cases actually try to connect to a mock service running on
+# localhost.
+unset http_proxy
+unset https_proxy
+
+export PYTHONPATH="/usr/lib/s3ql:${PYTHONPATH}"
+exec py.test-3 --installed --logdebug=s3ql.verify tests/
diff --git a/debian/upstream-signing-key.pgp b/debian/upstream-signing-key.pgp
new file mode 100644
index 0000000..d2ea347
--- /dev/null
+++ b/debian/upstream-signing-key.pgp
Binary files differ
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..4d45b59
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,9 @@
+# watch control file for uscan
+version=3
+opts=\
+pgpsigurlmangle=s/$/.asc/,\
+uversionmangle=s/$/+dfsg/ \
+ https://github.com/s3ql/s3ql/releases \
+ .*/s3ql-(\d\S*)\.tar\.bz2 \
+ debian
+