--- ccrypt-1.7.orig/debian/ccrypt.emacsen-install
+++ ccrypt-1.7/debian/ccrypt.emacsen-install
@@ -0,0 +1,40 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/ccrypt
+
+# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=ccrypt
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+if [ `echo $FLAVOR | cut -c-6` = xemacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+FLAGS="${SITEFLAG} -q -batch -l jka-compr-ccrypt.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
--- ccrypt-1.7.orig/debian/ccrypt.emacsen-remove
+++ ccrypt-1.7/debian/ccrypt.emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/ccrypt
+
+FLAVOR=$1
+PACKAGE=ccrypt
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/ccrypt.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- ccrypt-1.7.orig/debian/ccrypt.emacsen-startup
+++ ccrypt-1.7/debian/ccrypt.emacsen-startup
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian ccrypt package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
+
+;; The ccrypt package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...). The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+ (symbol-name flavor)
+ "/site-lisp/ccrypt")))
+ (when (file-directory-p package-dir)
+ (setq load-path (cons package-dir load-path))))
+
+;; Uncomment if you want to transparently edit encrypted files in emacs, but
+;; make sure that jka-compr is not loaded since jka-compr-ccrypt and jka-compr
+;; are incompatible and jka-compr-ccrypt provides the complete functionality of
+;; jka-compr in any case.
+;; Please refer to '/usr/share/doc/ccrypt/ccrypt.html' for the full explanation.
+;; (require 'jka-compr-ccrypt)
--- ccrypt-1.7.orig/debian/ccrypt.install
+++ ccrypt-1.7/debian/ccrypt.install
@@ -0,0 +1 @@
+emacs/jka-compr-ccrypt.el /usr/share/emacs/site-lisp/ccrypt
--- ccrypt-1.7.orig/debian/rules
+++ ccrypt-1.7/debian/rules
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+PREFIX = /usr
+
+config.status: configure
+ dh_testdir
+ CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=$(PREFIX) --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-EMACS=no
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp config.log
+ -$(MAKE) distclean
+ dh_clean config.sub config.guess
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/ccrypt htmldir=$(PREFIX)/share/doc/ccrypt
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+ dh_installemacsen
+ dh_installman
+ dh_install
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_shlibdeps
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- ccrypt-1.7.orig/debian/changelog
+++ ccrypt-1.7/debian/changelog
@@ -0,0 +1,103 @@
+ccrypt (1.7-11) unstable; urgency=low
+
+ * reapplied patch to fix unaligned references problems on IA64
+
+ -- Chris Vanden Berghe <chrisvdb@debian.org> Wed, 23 May 2007 18:08:08 +0200
+
+ccrypt (1.7-10) unstable; urgency=low
+
+ * updated standards version to 3.7.2
+
+ -- Chris Vanden Berghe <chrisvdb@debian.org> Wed, 23 May 2007 17:43:41 +0200
+
+ccrypt (1.7-9) unstable; urgency=low
+
+ * added patch to fix unaligned references problems on IA64 (closes: #347493)
+ * changed email address
+
+ -- Chris Vanden Berghe <chrisvdb@debian.org> Fri, 13 Jan 2006 08:37:26 +0100
+
+ccrypt (1.7-8) unstable; urgency=low
+
+ * Updated package to latest standards version (no changes).
+ * Added watch file.
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Sun, 14 Aug 2005 18:41:32 +0200
+
+ccrypt (1.7-7) unstable; urgency=low
+
+ * Fixed bug in options handling (closes: #298681).
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Wed, 9 Mar 2005 21:25:33 +0100
+
+ccrypt (1.7-6) unstable; urgency=low
+
+ * Implemented suggestion from Marc Brockschmidt:
+ - removed INSTALL_PROGRAM magic from rules file
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Wed, 12 Jan 2005 20:53:37 +0100
+
+ccrypt (1.7-5) unstable; urgency=low
+
+ * Added 'Conflicts: cfs' to control file (closes: #274786).
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Tue, 5 Oct 2004 19:51:21 +0200
+
+ccrypt (1.7-4) unstable; urgency=low
+
+ * Made text in README.Debian clearer.
+ * Removed some temporary files from the source.
+ * Updated to standards-version 3.6.1.1 (no changes necessary)
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Mon, 28 Jun 2004 22:51:34 +0200
+
+ccrypt (1.7-3) unstable; urgency=low
+
+ * Disabled xemacs script installation since it is incompatible with xemacs
+ and prevented successful installation of ccrypt when xemacs is installed.
+ Emacs functionality is untouched and should work. (closes: #255661)
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Wed, 23 Jun 2004 15:10:37 +0200
+
+ccrypt (1.7-2) unstable; urgency=low
+
+ * Updated to standards-version 3.6.1.0 (no changes necessary)
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Wed, 23 Jun 2004 11:20:03 +0200
+
+ccrypt (1.7-1) unstable; urgency=low
+
+ * New upstream version (closes: #241643).
+ * Installs the 'jka-compr-ccrypt' emacs package that allows transparent
+ editing of encrypted files.
+ * The ccrypt package has a new maintainer.
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org> Wed, 16 Jun 2004 20:58:13 +0200
+
+ccrypt (1.6-1) unstable; urgency=low
+
+ * New upstream version.
+ * Removed the cccat renaming and conflict with cfs (closes: #180915).
+ * debian/rules clean remove configure generated files.
+ * Fix gcc 3.3 cleanups (multi-line and reserved word warnings) (closes: 194875).
+
+ -- Jean-Francois Dive <jef@debian.org> Sun, 7 Sep 2003 21:46:53 +0200
+
+ccrypt (1.2-3) unstable; urgency=high
+
+ * Fixed name colision (yes, one more) (Closes: #163050, 163482).
+
+ -- Jean-Francois Dive <jef@debian.org> Wed, 9 Oct 2002 08:46:33 +1000
+
+ccrypt (1.2-2) unstable; urgency=high
+
+ * Fixed name colistion with cfs package for ccat (Closes: #160749).
+ * Fixed long description. (Closes: #162886).
+
+ -- Jean-Francois Dive <jef@debian.org> Tue, 1 Oct 2002 08:04:59 +1000
+
+ccrypt (1.2-1) unstable; urgency=high
+
+ * Initial Debianization (Closes: #159537).
+
+ -- Jean-Francois Dive <jef@debian.org> Wed, 4 Sep 2002 10:20:25 +1000
--- ccrypt-1.7.orig/debian/compat
+++ ccrypt-1.7/debian/compat
@@ -0,0 +1 @@
+4
--- ccrypt-1.7.orig/debian/control
+++ ccrypt-1.7/debian/control
@@ -0,0 +1,18 @@
+Source: ccrypt
+Section: utils
+Priority: optional
+Maintainer: Chris Vanden Berghe <chrisvdb@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.7.2
+
+Package: ccrypt
+Architecture: any
+Depends: ${shlibs:Depends}
+Conflicts: cfs
+Description: secure encryption and decryption of files and streams
+ ccrypt is a utility for encrypting and decrypting files and streams. It was
+ designed as a replacement for the standard unix crypt utility, which is
+ notorious for using a very weak encryption algorithm. ccrypt is based on the
+ Rijndael cipher, which is the U.S. government's chosen candidate for the
+ Advanced Encryption Standard (AES, see http://www.nist.gov/aes). This cipher is
+ believed to provide very strong security.
--- ccrypt-1.7.orig/debian/copyright
+++ ccrypt-1.7/debian/copyright
@@ -0,0 +1,14 @@
+This package was debianized by Chris Vanden Berghe <Chris@VandenBerghe.org> on
+Wed, 16 Jun 2004 20:58:13 +0200. This package is based on an original Debian
+package created by Jean-Francois Dive.
+
+It was downloaded from http://quasar.mathstat.uottawa.ca/~selinger/ccrypt/.
+
+Upstream Authors: Peter Selinger (selinger@users.sourceforge.net)
+ Joshua Redstone (redstone@cs.washington.edu)
+
+This software is copyright (C) 2000-2004 by Peter Selinger.
+
+You are free to distribute this software under the terms of the GNU General
+Public License. On Debian systems, the complete text of the GNU General Public
+License can be found in the file `/usr/share/common-licenses/GPL'.
--- ccrypt-1.7.orig/debian/dirs
+++ ccrypt-1.7/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/emacs/site-lisp/ccrypt
--- ccrypt-1.7.orig/debian/docs
+++ ccrypt-1.7/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- ccrypt-1.7.orig/debian/README.Debian
+++ ccrypt-1.7/debian/README.Debian
@@ -0,0 +1,14 @@
+ccrypt for Debian
+-----------------
+
+Please take a look at /usr/share/doc/ccrypt/README.gz for the ccrypt manual.
+This file contains only some Debian specific information on the ccrypt plugin
+for emacs.
+
+The ccrypt package installs an emacs plugin that enables transparent editing
+of encrypted files using emacs (doesn't work for xemacs). This emacs plugin
+is installed automatically for all emacs flavors, but should be activated
+manually. Please read '/etc/emacs/site-start.d/50ccrypt.el' and
+'/usr/share/doc/ccrypt/ccrypt.html' on how to enable this feature.
+
+ -- Chris Vanden Berghe <Chris@VandenBerghe.org>, Wed, 16 Jun 2004 20:58:13 +0200
--- ccrypt-1.7.orig/debian/watch
+++ ccrypt-1.7/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/ccrypt/ccrypt-(.*)\.tar\.gz