Add debian directory for etch
diff --git a/etch/README.Debian b/etch/README.Debian
new file mode 100644
index 0000000..884deb8
--- /dev/null
+++ b/etch/README.Debian
@@ -0,0 +1,13 @@
+Debian notes -- pyOpenSSL
+-------------------------
+
+The source package is split up over four binary packages:
+
+* python2.2-pyopenssl -- compiled for Python 2.2
+* python2.3-pyopenssl -- compiled for Python 2.3
+* python-pyopenssl    -- dummy package that depends on the default
+                         Python version (currently 2.3)
+* pyopenssl-doc       -- documentation for pyOpenSSL
+
+
+Martin Sjögren <sjogren@debian.org>
diff --git a/etch/changelog b/etch/changelog
new file mode 100644
index 0000000..46b8c86
--- /dev/null
+++ b/etch/changelog
@@ -0,0 +1,189 @@
+pyopenssl (0.6-2.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update Package for last python policy (Closes: #373548).
+
+ -- Pierre Habouzit <madcoder@debian.org>  Fri, 30 Jun 2006 13:31:10 +0200
+
+pyopenssl (0.6-2.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Include patch from Cyril Lacoux <clacoux@easter-eggs.com>,
+    fixing Segmentation fault when creating x509 extension.
+    (Closes: #355947)
+
+ -- Julien Danjou <acid@debian.org>  Fri, 12 May 2006 16:42:47 +0200
+
+pyopenssl (0.6-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Stop building modules for python2.2. (Closes: #351133)
+  * Also rebuild module using libssl0.9.8. (Closes: #347541)
+
+ -- Pierre Habouzit <madcoder@debian.org>  Sun,  9 Apr 2006 19:45:16 +0200
+
+pyopenssl (0.6-2) unstable; urgency=low
+
+  * Add support for python 2.4. (Closes: #297870)
+  * Build-depend on v0.9.7 of openssl.
+
+ -- Martin Sjogren <sjogren@debian.org>  Mon, 14 Mar 2005 08:56:27 +0100
+
+pyopenssl (0.6-1) unstable; urgency=low
+
+  * New upstream release, including:
+    - Add Netscape SPKI extensions. (Closes: #205132)
+    - Add X509.subject_name_hash, X509.digest. (Closes: #205136)
+    - Fix full names of exceptions. (Closes: #250342)
+    - Add SSL.Context.use_certificate_chain_file. (Closes: #260134)
+  * Docs are built upstream, so the build-deps have been trimmed.
+    This also means that HTML and text documentation are back.
+  * Bumped standards-version.
+  * Use dh_python.
+
+ -- Martin Sjogren <sjogren@debian.org>  Fri, 13 Aug 2004 20:53:27 +0200
+
+pyopenssl (0.5.1-4) unstable; urgency=low
+
+  * Drop HTML and text documentation since latex2html moved to non-free.
+    This is a temporary solution, until I can hack mkhowto to use something
+    else. (Closes: #221344)
+  * Fix the copyright file to mention the copyright holder.
+
+ -- Martin Sjogren <sjogren@debian.org>  Mon, 15 Dec 2003 20:16:25 +0100
+
+pyopenssl (0.5.1-3) unstable; urgency=low
+
+  * MANIFEST.in: Include the src/RATIONALE file. (Closes: #197401)
+  * doc/pyOpenSSL.tex: Fix typo. (Closes: #197435)
+  * Drop Python 1.5 and 2.1 support.
+  * Make python-pyopenssl depend on python2.3-pyopenssl, which is no longer
+    "experimental".
+
+ -- Martin Sjogren <sjogren@debian.org>  Mon, 11 Aug 2003 18:37:07 +0200
+
+pyopenssl (0.5.1-2) unstable; urgency=low
+
+  * Make sure names in control and changelog match. Stupid changelogs, bleh.
+  * Change section to 'python'.
+  * Rebuild with openssl 0.9.7. (Closes: #189826)
+  * __init__.py: Import tsafe module.
+  * tsafe.py: Add some missing methods.
+  * debian/copyright: Fix Author(s) boilerplate thingy to shut lintian up.
+
+ -- Martin Sjogren <sjogren@debian.org>  Sun, 20 Apr 2003 17:50:24 +0200
+
+pyopenssl (0.5.1-1) unstable; urgency=low
+
+  * New upstream version. (Closes: #159530)
+  * Added a python-pyopenssl dummy package.
+  * Added an experimental python2.3-pyopenssl package.
+
+ -- Martin Sjögren <martin@strakt.com>  Sun, 25 Aug 2002 12:08:31 +0200
+
+pyopenssl (0.5-1) unstable; urgency=low
+
+  * New upstream version
+  * Support for python1.5.
+  * Fix stupid mistakes for python 1.5 and python 2.1.
+
+ -- Martin Sjögren <martin@strakt.com>  Wed, 24 Jul 2002 09:05:28 +0200
+
+pyopenssl (0.4.1-8) unstable; urgency=low
+
+  * Added examples to pyopenssl-doc
+
+ -- Martin Sjögren <martin@strakt.com>  Wed,  5 Jun 2002 14:58:04 +0200
+
+pyopenssl (0.4.1-7) unstable; urgency=low
+
+  * The cute arrow icons in the HTML documentation should be there now too.
+
+ -- Martin Sjögren <martin@strakt.com>  Thu, 30 May 2002 00:53:44 +0200
+
+pyopenssl (0.4.1-6) unstable; urgency=low
+
+  * Commented out some unused things in debian/rules
+
+ -- Martin Sjögren <martin@strakt.com>  Wed, 29 May 2002 11:20:33 +0200
+
+pyopenssl (0.4.1-5) unstable; urgency=low
+
+  * Adding to the build-depends.
+  * Initial upload (Closes: #140687)
+
+ -- Martin Sjögren <martin@strakt.com>  Sat,  6 Apr 2002 14:15:49 +0200
+
+pyopenssl (0.4.1-4) unstable; urgency=low
+
+  * Fixes in packaging, it shouldn't be regarded a native package now.
+
+ -- Martin Sjögren <martin@strakt.com>  Sat,  6 Apr 2002 11:26:39 +0200
+
+pyopenssl (0.4.1-3) unstable; urgency=low
+
+  * Moved from non-US to main/devel
+
+ -- Martin Sjögren <martin@strakt.com>  Fri,  5 Apr 2002 22:44:10 +0200
+
+pyopenssl (0.4.1-2) unstable; urgency=low
+
+  * Fixes in the packaging, dependencies and build dependencies should be
+    all right now.
+
+ -- Martin Sjögren <martin@strakt.com>  Thu, 10 Jan 2002 10:00:06 +0100
+
+pyopenssl (0.4.1-1) unstable; urgency=low
+
+  * New "upstream" release
+  * New packaging, python2.1-pyopenssl, python2.2-pyopenssl, pyopenssl-doc
+
+ -- Martin Sjögren <martin@strakt.com>  Mon,  7 Jan 2002 15:38:51 +0100
+
+pyopenssl (0.4-4) unstable; urgency=low
+
+  * Grrr, this time then...
+
+ -- Martin Sjögren <martin@strakt.com>  Fri, 17 Aug 2001 14:53:19 +0200
+
+pyopenssl (0.4-3) unstable; urgency=low
+
+  * Fixed a big nasty bug
+
+ -- Martin Sjögren <martin@strakt.com>  Fri, 17 Aug 2001 14:33:06 +0200
+
+pyopenssl (0.4-2) unstable; urgency=low
+
+  * Fixes
+
+ -- Martin Sjögren <martin@strakt.com>  Fri, 17 Aug 2001 13:53:11 +0200
+
+pyopenssl (0.4-1) unstable; urgency=low
+
+  * New "upstream" version
+
+ -- Martin Sjögren <martin@strakt.com>  Thu,  9 Aug 2001 12:32:47 +0200
+
+pyopenssl (0.3-3) unstable; urgency=low
+
+  * X509 objects now has a has_expired method
+
+ -- Martin Sjögren <martin@strakt.com>  Tue,  7 Aug 2001 14:16:13 +0200
+
+pyopenssl (0.3-2) unstable; urgency=low
+
+  * X509Name objects now has a compare method 
+
+ -- Martin Sjögren <martin@strakt.com>  Tue,  7 Aug 2001 10:53:58 +0200
+
+pyopenssl (0.3-1) unstable; urgency=low
+
+  * New "upstream" version
+
+ -- Martin Sjögren <martin@strakt.com>  Fri,  3 Aug 2001 16:36:26 +0200
+
+pyopenssl (0.1-1) unstable; urgency=low
+
+  * Initial version.
+
+ -- Anders Hammarquist <iko@strakt.com>  Mon, 23 Jul 2001 15:17:38 +0200
diff --git a/etch/control b/etch/control
new file mode 100644
index 0000000..4f11958
--- /dev/null
+++ b/etch/control
@@ -0,0 +1,29 @@
+Source: pyopenssl
+Section: python
+Priority: optional
+Maintainer: Martin Sjogren <sjogren@debian.org>
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11),
+ python-support (>= 0.3), libssl-dev (>= 0.9.8)
+Standards-Version: 3.7.2
+
+Package: python-pyopenssl
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}
+Provides: ${python:Provides}
+Suggests: pyopenssl-doc
+Replaces: python2-pyopenssl, python2.3-pyopenssl (<< 0.6-2.3), python2.4-pyopenssl (<< 0.6-2.3)
+Conflicts: python2-pyopenssl, python2.3-pyopenssl (<< 0.6-2.3), python2.4-pyopenssl (<< 0.6-2.3)
+XB-Python-Version: ${python:Versions}
+Description: Python wrapper around the OpenSSL library (dummy package)
+ Includes: SSL Context objects, SSL Connection objects, using
+ Python sockets as transport layer. The Connection object
+ wraps all the socket methods and can therefore be used
+ interchangeably.
+
+Package: pyopenssl-doc
+Section: doc
+Architecture: all
+Suggests: python-pyopenssl
+Description: Documentation for pyOpenSSL
+ This package provides documentation for the pyOpenSSL package,
+ in HTML, postscript and text formats.
diff --git a/etch/copyright b/etch/copyright
new file mode 100644
index 0000000..2705399
--- /dev/null
+++ b/etch/copyright
@@ -0,0 +1,22 @@
+This package was debianized by Martin Sjögren <sjogren@debian.org> on
+Mon,  7 Jan 2002 16:25:58 +0100.
+
+It was downloaded from pyopenssl.sourceforge.net
+
+Upstream Author: Martin Sjögren <msjogren@gmail.com>
+
+Copyright (C) 2001-2004 AB Strakt
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+A copy of the GNU Lesser General Public License (version 2.1)
+can be found in /usr/share/common-licenses/LGPL on Debian systems,
+or in the file COPYING in the source package.
diff --git a/etch/pycompat b/etch/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/etch/pycompat
@@ -0,0 +1 @@
+2
diff --git a/etch/pyopenssl-doc.doc-base b/etch/pyopenssl-doc.doc-base
new file mode 100644
index 0000000..e57eb3f
--- /dev/null
+++ b/etch/pyopenssl-doc.doc-base
@@ -0,0 +1,13 @@
+Document: pyopenssl-manual
+Title: Python OpenSSL Manual
+Author: Martin Sjögren
+Abstract: Manual for the pyOpenSSL package.
+  This module is a rather thin wrapper around (a subset of) the
+  OpenSSL library. With thin wrapper I mean that a lot of the
+  object methods do nothing more than calling a corresponding
+  function in the OpenSSL library.
+Section: Apps/programming
+
+Format: HTML
+Index: /usr/share/doc/pyopenssl-doc/html/index.html
+Files: /usr/share/doc/pyopenssl-doc/html/*
diff --git a/etch/pyopenssl-doc.docs b/etch/pyopenssl-doc.docs
new file mode 100644
index 0000000..0149db1
--- /dev/null
+++ b/etch/pyopenssl-doc.docs
@@ -0,0 +1,4 @@
+doc/pyOpenSSL.ps
+doc/pyOpenSSL.txt
+doc/html
+debian/README.Debian
diff --git a/etch/pyopenssl-doc.examples b/etch/pyopenssl-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/etch/pyopenssl-doc.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/etch/python-pyopenssl.docs b/etch/python-pyopenssl.docs
new file mode 100644
index 0000000..e174728
--- /dev/null
+++ b/etch/python-pyopenssl.docs
@@ -0,0 +1 @@
+debian/README.Debian
diff --git a/etch/rules b/etch/rules
new file mode 100644
index 0000000..ef7a37e
--- /dev/null
+++ b/etch/rules
@@ -0,0 +1,96 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. 
+# GNU copyright 1997 by Joey Hess.
+#
+# This version is for a hypothetical package that builds an
+# architecture-dependant package, as well as an architecture-independent
+# package.
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=5
+
+PYVERS := $(shell pyversions -r)
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	set -e; \
+	for py in $(PYVERS); do  \
+	    $$py setup.py build; \
+	done
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	-for py in $(PYVERS); do \
+	    $$py setup.py clean --all; done
+	rm -rf build version.pyc
+
+	dh_clean
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	set -e; \
+	for py in $(PYVERS); do \
+	    $$py setup.py install --root=$(CURDIR)/debian/python-pyopenssl; \
+	done
+
+# Build architecture-independent files here.
+# Pass -i to all debhelper commands in this target to reduce clutter.
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdocs -i
+	dh_installexamples -i
+#	dh_installmenu -i
+#	dh_installcron -i
+#	dh_installinfo -i
+	dh_installchangelogs ChangeLog -i
+#	dh_link -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_pysupport -i
+	dh_python -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installdocs -a
+	dh_installexamples -a
+#	dh_installmenu -a
+#	dh_installcron -a
+#	dh_installinfo -a
+	dh_installchangelogs ChangeLog -a
+	dh_strip -a
+#	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_pysupport -a
+	dh_python -a
+	dh_makeshlibs -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install