EXTRA_DIST += config/auto-version
+###--------------------------------------------------------------------------
+### Debian packaging.
+
+EXTRA_DIST += debian/changelog debian/control debian/copyright
+EXTRA_DIST += debian/rules debian/compat
+
+EXTRA_DIST += debian/distorted-keys.install
+EXTRA_DIST += debian/distorted-keys.postinst
+
###----- That's all, folks --------------------------------------------------
--- /dev/null
+build
+distorted-keys
+*.log
+*.substvars
+files
--- /dev/null
+distorted-keys (0.99.1) unstable; urgency=low
+
+ * Initial version.
+
+ -- Mark Wooding <mdw@distorted.org.uk> Sat, 07 Jan 2012 00:26:36 +0000
+
--- /dev/null
+Source: distorted-keys
+Section: utils
+Priority: optional
+Maintainer: Mark Wooding <mdw@distorted.org.uk>
+Build-Depends: python (>= 2.5), debhelper (>= 8.1.2)
+Standards-Version: 3.1.1
+
+Package: distorted-keys
+Architecture: all
+Depends: python (>= 2.5), userv, openssl (>= 0.9.8o), adduser
+Recommends: gnupg
+Suggests: seccure, texlive-latex-recommended, qrencode
+Description: Basic key-management system with secure recovery features.
+ The primary purpose of the distorted.org.uk key management system is
+ to provide a secure way of recovering important cryptographic keys,
+ e.g., keys for decrypting backup volumes, in the event of a disaster.
+ .
+ Because it was technically fairly easy, given this infrastructure, the
+ system also allows users to generate and use their own keys, without
+ revealing the actual key data, on the theory that, what a user program
+ doesn't know, it can't leak.
+ .
+ This system doesn't actually do very much cryptography itself. Instead,
+ it uses other existing implementations, such as GnuPG, OpenSSL, and
+ Seccure.
--- /dev/null
+distorted-keys is copyright (c) 2011 Mark Wooding.
+
+distorted-keys 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.
+
+distorted-keys 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 a copy of the GNU General Public License in
+/usr/share/common-licenses/GPL; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
--- /dev/null
+debian/build/userv/distorted-keys /etc/userv/default.d
--- /dev/null
+#! /bin/sh
+
+set -e
+
+user=keys
+home=/var/lib/distorted-keys
+
+## Make sure the user exists.
+if ! grep -q ^$user: /etc/passwd; then
+ adduser --quiet --system --group \
+ --disabled-password --shell /bin/false \
+ --no-create-home --home $home \
+ $user
+fi
+
+## Make the home directory if we need to.
+if [ ! -d $home ]; then
+ mkdir -p $home
+ chown $user:$user $home
+ chmod 2755 $home
+fi
--- /dev/null
+#! /usr/bin/make -f
+%:; dh $@ -Bdebian/build --parallel