--- premail-0.46.orig/debian/postinst
+++ premail-0.46/debian/postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+echo "Please back-up your ~/.premail/secrets and ~/.premail/secrets.pgp files."
+
+#DEBHELPER#
--- premail-0.46.orig/debian/control
+++ premail-0.46/debian/control
@@ -0,0 +1,17 @@
+Source: premail
+Section: contrib/mail
+Priority: optional
+Maintainer:  Steve Kostecke <steve@debian.org>
+Build-Depends: debhelper
+Standards-Version: 3.6.1.1
+
+Package: premail
+Architecture: all
+Depends: pgp, mail-reader
+Description: An e-mail privacy package.
+ Premail adds support for encrypted e-mail to your mailer, using plain PGP,
+ PGP/MIME, MOSS, or S/MIME.  In addition, premail provides a seamless,
+ transparent interface to the anonymous remailers, including full support
+ for Mixmaster remailers and the nymservers.  Nymservers provide
+ cryptographically protected, fully anonymous accounts for both sending and
+ receiving e-mail.
--- premail-0.46.orig/debian/README.debian
+++ premail-0.46/debian/README.debian
@@ -0,0 +1,17 @@
+premail for DEBIAN
+----------------------
+
+This version of premail has been modified to work with Perl-5.6.
+It is strongly suggested that the user make a back-up copy of their
+~/.premail/secrets file before using this version of premail.
+
+Steve Kostecke <steve@debian.org>  Sun, 18 Mar 2001 23:12:19 -0500
+
+This is a small bug-fix version, based on new sources sent to me by
+Raph Levien, the program's creator.  Because of some problems I observed
+with the pop-up console used to get the user passphrase (in cases where
+the user does not login to premail), I have added a small Gtk pop-up
+widget to ask for the password.  Any problems with this particular part of
+the package are entirely my fault, and inquiries should be directed to me.
+
+Brent A. Fulgham <bfulgham@debian.org>, Sun,  5 Jul 1998 16:09:33 -0700
--- premail-0.46.orig/debian/rules
+++ premail-0.46/debian/rules
@@ -0,0 +1,73 @@
+#!/usr/bin/make -f
+# MAde with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Cristoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+config:
+	dh_testdir
+	perl -c premail
+	touch config-stamp
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	test -f config-stamp || make -f debian/rules config
+	touch build-stamp
+
+clean:  
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	rm -f config-stamp
+	dh_clean
+
+# Build architecture-independent files here.
+binary-indep: 
+	dh_testroot
+	-rm -rf debian/tmp
+	test -f build-stamp || make -f debian/rules build
+
+# Build architecture-dependent files here.
+binary-arch: build
+#	dh_testversion
+	dh_testdir 
+	dh_testroot 
+	dh_clean
+	
+	# Add here commands to install the files into debian/tmp
+	dh_installdirs
+	cp `pwd`/premail `pwd`/debian/tmp/usr/bin
+	# Add prepost support
+	cd `pwd`/debian/tmp/usr/bin/; ln -s premail prepost
+	
+	dh_installmanpages
+	# Manpage sym-link for prepost
+	cd `pwd`/debian/tmp/usr/share/man/man1; ln -s premail.1.gz prepost.1.gz
+
+	#dh_installdebconf
+	dh_installdocs
+	dh_installexamples preferences
+	dh_installchangelogs
+	#dh_installmenu 
+	#dh_installcron
+	#dh_strip
+	dh_compress
+	dh_fixperms
+	dh_shlibdeps
+	#dh_makeshlibs
+	dh_installdeb
+	dh_gencontrol
+	dh_builddeb
+	dh_md5sums
+	
+# Below here is fairly generic really
+
+binary:		clean binary-indep binary-arch
+
+.PHONY: binary binary-indep binary-arch clean checkroot
+ 
+# Local variables:
+# mode: makefile
+# End:
--- premail-0.46.orig/debian/changelog
+++ premail-0.46/debian/changelog
@@ -0,0 +1,132 @@
+premail (0.46-9) unstable; urgency=low
+
+  * Fixed minor typo in description (closes: #125269).
+  * Added missing Build-Depends on Debhelper (closes: #261030).
+  * Added reference to http://www.noreply.org/allpingers/ in the
+    preferences file (closes: #182607).
+  * Applied finger patch from Devin Carraway (closes: #134091, #149434).
+  * Added man-page sym-link for prepost.
+  * Updated to Standards 3.6.1.1
+
+ -- Steve Kostecke <steve@debian.org>  Sun, 25 Jul 2004 23:28:19 -0400
+
+premail (0.46-8) unstable; urgency=low
+
+  * Modified to work with Perl > 5.004; see sub open_pgp() for details.
+  * Removed Perl-5.004 dependency (closes: #65257, #80727).
+  * It is suggested that the user make a back up copy of thier
+    .premail/secrets file before using this version of premail.
+
+ -- Steve Kostecke <steve@debian.org>  Sun, 18 Mar 2001 23:12:19 -0500
+
+premail (0.46-7) unstable; urgency=high
+
+  * Changed Maintainer: field in the control file.
+
+ -- Steve Kostecke <steve@debian.org>  Sat,  3 Jun 2000 00:02:29 -0400
+
+premail (0.46-6) unstable; urgency=high
+
+  * New maintainer.
+  * Changed interpreter from #!/usr/bin/perl to #!/usr/bin/perl5.004
+    and changed Perl5 dependency to Perl-5.004 (closes: #55282).
+  * Changed back to xterm password interface since GTK hack doesn't
+    work on Potato.
+  * Install undocumented man page for prepost (closes: #45714).
+  * Change debian/rules to use dh_installmanpages and
+    dh_installexamples.
+  * Commented out subs create_entry and destroy_window. Removed
+    gtk-perl dependency (closes: #45714).
+  * Updated to Standards 3.0.0.0
+
+ -- Steve Kostecke <steve@debian.org>  Mon,  7 Feb 2000 22:35:02 -0500
+
+premail (0.46-5) unstable; urgency=high
+  * Correct backup-file problem that prevented Premail being used
+    as a mail filter.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Mon, 7 Sep 1999 11:15:10 -0700
+
+premail (0.46-4) unstable; urgency=low
+  * Rebuilt for Perl5 dependency
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Mon, 12 July 1999 11:15:10 -0700
+
+premail (0.46-3) unstable; urgency=low
+  * Updated 'build' stuff for new debian versions
+  * Closed some bugs -- 34865, 30474, 30476
+  * Note:  Premail is not maintained upstream.  I will continue to fix
+    bugs as they arise, and am contemplating a fork.  Send comments
+    to my e-mail.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Fri, 1 June 1999 11:15:10 -0700
+
+premail (0.46-2) unstable; urgency=low
+  * Updated source with new patches, fixed misc. misspellings, etc.:
+      - Added ability to get finger: URL's for using finger:*@anon.ics.mit.edu
+        for rlist and pubring
+      - Added newer sendmail options to valid options list
+      - Add +language=en to PGP calls -- this needs to be updated for other
+        languages, too.
+      - Fix sendmail args building (typo)
+      - Added koi8-r to valid 8bit charsets list
+  * updated my e-mail address
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Tue, 4 Aug 1998 21:45:12 -0700
+
+
+premail (0.46-1) unstable; urgency=low, closes=8872 23710 
+
+  * New maintainer.
+  * Implemented a Gtk-interface to access password information, since
+    existing implementation doesn't function properly on Debian systems.
+  * Added more checks that opened files are actually opened before using them.
+  * Moved example preference file to /usr/doc/premail/example
+
+ -- Brent A. Fulgham <bfulgham@pacbell.net>  Sun, 5 Jul 1998 16:27:15 -0700
+
+premail (0.45-4) stable frozen unstable; urgency=high, closes=8943 15680 10553 13579 22416
+
+  * New maintainer.  I'm the maintain the packages until Brent Fulgham gets
+    through the new-maintainer procedure.
+  * Implemented a method to provide secure file creation under /tmp in order
+    do fix a security problem (closes: Bug#15680)
+  * Added more my statements to declare local variables as local (closes:
+    Bug#8943)
+  * Changed section to contrib/mail (closes: Bug#10553, Bug#22416)
+  * Corrected name of non-existing manpage  (closes: Bug#13579)
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Sat, 30 May 1998 18:33:52 +0200
+
+premail (0.45-3) non-free; urgency=low
+
+  * debian/rules: premail(1) linked to /usr/man/man7/undocumented.7.gz.
+  * install Remi Guyomarch's patch for warning messages.
+
+ -- Karl Sackett <krs@debian.org>  Wed, 19 Mar 1997 08:41:11 -0600
+
+premail (0.45-2) non-free; urgency=high
+
+  * Man page premail(1) linked to undocumented(7) (bug #6251).
+
+ -- Karl Sackett <krs@debian.org>  Tue, 14 Jan 1997 09:06:12 -0600
+
+premail (0.45-1) non-free; urgency=high
+
+  * New upstream release.
+  * Patched to remove secrets file bug.
+
+ -- Karl Sackett <krs@debian.org>  Mon, 23 Dec 1996 11:35:41 -0600
+
+premail (0.44-1) non-free; urgency=low
+
+  * First Debian release.
+  * premail: call /usr/bin/perl.
+  * Added index.html documentation.
+
+ -- Karl Sackett <krs@caos.aamu.edu>  Thu, 19 Sep 1996 10:22:32 -0500
+
+Local variables:
+mode: debian-changelog
+End:
+
--- premail-0.46.orig/debian/premail.docs
+++ premail-0.46/debian/premail.docs
@@ -0,0 +1 @@
+README doc-0.46.html doc-0.46.txt
--- premail-0.46.orig/debian/prerm
+++ premail-0.46/debian/prerm
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
--- premail-0.46.orig/debian/copyright
+++ premail-0.46/debian/copyright
@@ -0,0 +1,72 @@
+This is the Debian Linux prepackaged version of premail.
+
+This package was put together by Brent Fulgham <bfulgham@debian.org>,
+from sources obtained from:
+
+	A patch to Raph Levien's latest build v. 0.46
+	ftp://ftp.hacktic.nl/pub/replay/pub/remailer/premail-0.45.tar.gz
+	ftp://ftp.hacktic.nl/pub/replay/pub/remailer/premail/premail.patch
+
+For more information see:
+
+	http://www.c2.net/~raph/premail.html
+	http://www.c2.net/~raph/premail/
+
+premail is covered under the following copyright:
+
+# Copyright 1996 Raph Levien <raph@c2.net>
+# All rights reserved.
+# 
+# This program is free for commercial and non-commercial use as long as
+# the following conditions are adhered to.
+# 
+# Copyright remains Raph Levien's, and as such any Copyright notices in
+# the code are not to be removed. If this package is used in a product,
+# Raph Levien should be given attribution as the author of the parts of
+# the program used. This can be in the form of a textual message at
+# program startup or in documentation (online or textual) provided with
+# the package.
+# 
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+# 
+# 1. Redistributions of source code must retain the copyright notice,
+#    this list of conditions and the following disclaimer.
+# 
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the
+#    distribution.
+# 
+# 3. All advertising materials mentioning features or use of this
+#    software must display the following acknowledgement: This product
+#    includes software developed by Raph Levien <raph@c2.net>. If more
+#    than one author is so cited, the list may be combined into one
+#    sentence.
+# 
+# 4. Use and adaptation of small, specific components of this software
+#    is actively encouraged, and is exempt from the requirements above.
+# 
+# This software is provided by Raph Levien ``as is'' and any express or
+# implied warranties, including, but not limited to, the implied
+# warranties of merchantability and fitness for a particular purpose are
+# disclaimed. In no event shall the author or contributors be liable for
+# any direct, indirect, incidental, special, exemplary, or consequential
+# damages (including, but not limited to, procurement of substitute
+# goods or services; loss of use, data, or profits; or business
+# interruption) however caused and on any theory of liability, whether
+# in contract, strict liability, or tort (including negligence or
+# otherwise) arising in any way out of the use of this software, even if
+# advised of the possibility of such damage.
+# 
+# The license and distribution terms for any publically available
+# version or derivative of this code cannot be changed. i.e. this code
+# cannot simply be copied and put under another distribution license
+# [including the GNU Public License.]
+# 
+# The reason behind this being stated in this direct manner is (Eric
+# Young's) past experience in code simply being copied and the
+# attribution removed from it and then being distributed as part of
+# other packages. This implementation was a non-trivial and unpaid
+# effort.
--- premail-0.46.orig/debian/premail.dirs
+++ premail-0.46/debian/premail.dirs
@@ -0,0 +1,8 @@
+usr
+usr/bin
+usr/share
+usr/share/man
+usr/share/man/man1
+usr/share/doc
+usr/share/doc/premail
+usr/share/doc/premail/examples
--- premail-0.46.orig/debian/template
+++ premail-0.46/debian/template
@@ -0,0 +1,5 @@
+Template: premail/secrets_backup
+Type: note
+Description: Please back-up your ~/.premail/secrets(.pgp) files
+ Please make a back-up copy of your ~/.premail/secrets(.pgp) files before using
+ this version of premail.
--- premail-0.46.orig/debian/config
+++ premail-0.46/debian/config
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+db_input high premail/secrets_backup || true
+db_go
