--- dieharder-3.31.1.orig/debian/watch
+++ dieharder-3.31.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.phy.duke.edu/~rgb/General/dieharder/dieharder-(.+)\.tgz
--- dieharder-3.31.1.orig/debian/compat
+++ dieharder-3.31.1/debian/compat
@@ -0,0 +1 @@
+5
--- dieharder-3.31.1.orig/debian/libdieharder-dev.files
+++ dieharder-3.31.1/debian/libdieharder-dev.files
@@ -0,0 +1,3 @@
+usr/include/dieharder/*
+usr/lib/libdieharder.so
+usr/share/man/man3/*
--- dieharder-3.31.1.orig/debian/libdieharder3.files
+++ dieharder-3.31.1/debian/libdieharder3.files
@@ -0,0 +1 @@
+usr/lib/libdieharder.so.*
--- dieharder-3.31.1.orig/debian/copyright
+++ dieharder-3.31.1/debian/copyright
@@ -0,0 +1,149 @@
+This is the Debian GNU/Linux dieharder package, a random number
+generator testing library and front-end, which was written by Robert G. Brown.
+
+This package was created by Dirk Eddelbuettel <edd@debian.org>.
+The sources were downloaded from 
+	http://www.phy.duke.edu/~rgb/General/dieharder.php
+
+Copyright (C) 2003 - 2008 Robert G. Brown
+Portions Copyright (C) 2004 Alex Hay
+Portions Copyright (C) 1995, 1996  Robert Gentleman and Ross Ihaka
+Portions Copyright (C) 1997 - 2003  Robert Gentleman, Ross Ihaka and the R Development Core Team
+Portions Copyright (C) 2006 Tony Pasqualoni 
+Portions Copyright (C) 1996 - 2000 James Theiler, Brian Gough
+
+License: GPL
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The main copyright statement is in copyright.h:
+
+ /*
+  * $Id: copyright.h 256 2007-01-27 15:14:15Z rgb $
+  *
+  * Copyright (c) 2003 by Robert G. Brown, rgb@phy.duke.edu
+  *         GPL version 2b (b for beverage) granted as given
+  *         in the file COPYING in this distribution.
+  *
+  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+  * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+  * PERFORMANCE OF THIS SOFTWARE.
+  *
+  */
+
+The bevarage clause mentioned is 
+
+   License is granted to build or use the accompanying software:
+
+                             dieharder
+
+  according to the following standard Gnu General Public License or any
+  later versions, with the one minor "Beverage" modification listed below.
+  Note that this modification is probably not legally defensible and can
+  be followed really pretty much according to the honor rule.
+
+  As to my personal preferences in beverages, red wine is great, beer is
+  delightful, and Coca Cola or coffee or tea or even milk acceptable to
+  those who for religious or personal reasons wish to avoid stressing my
+  liver.
+
+                  The "Beverage" Modification to the GPL
+
+  Any user of this software shall, upon meeting the primary author(s) of
+  this software for the first time under the appropriate circumstances,
+  offer to buy him or her or them a beverage.  This beverage may or may
+  not be alcoholic, depending on the personal ethical and moral views of
+  the offerer.  The beverage cost need not exceed one U.S. dollar
+  (although it certainly may at the whim of the offerer:-) and may be
+  accepted or declined with no further obligation on the part of the
+  offerer.  It is not necessary to repeat the offer after the first
+  meeting, but it can't hurt...
+
+which is followed by the text of the GNU GPL, Version 2, June 1991
+
+
+Regarding intellectual / academic acknowledgements, let alone
+copyrights, Robert G. Brown writes the following the README:
+
+-- snip ---------------------------------------------------------------------
+Dieharder is original code written by and Copyright Robert G. Brown
+(with different code modules written over the period 2003-present).  The
+tests included (or expected to be included in the future) in dieharder,
+are, however, derived from descriptions from several places.
+
+  * Diehard, a famous suite of random number tests written over many
+years by George Marsaglia.  The original Diehard sources (written in
+Fortran) are (of course) Copyright George Marsaglia according to the
+Berne convention, where authors retain copyright with or without a
+notice in any original work.  The original Diehard code written by
+Marsaglia did not include a copyright notice or an explicit license in
+or with the sources that have been made publically available on the web
+for many years.  When contacted, Dr. Marsaglia has indicated his wish to
+restrict commercial usage of his code and permit only academic/research
+related use.  For this reason the the algorithms are fully
+re-implemented, in original code, in dieharder to keep authorship and
+GPL licensing issues clear.  However, all diehard-equivalent tests are
+clearly labelled as such and academically attributed to Dr. Marsaglia.
+
+  * The National Institute of Standards and Technology (NIST)
+Statistical Test Suite (STS) as described in publication SP800-22b.
+Although this test suite was developed with government support and is
+explicitly in the public domain, and is available in C source.  There is
+some overlap between STS and Diehard -- for example, both have binary
+matrix rank tests -- but the STS focusses primarily on bitlevel
+randomness and the suitability of a random number generator for use in
+cryptographic applications.  The tests described in SP800-22b that are
+implemented in dieharder are completely rewritten in original C by
+Robert G. Brown to keep copyright and GPL issues clear.  All STS-derived
+tests are clearly labelled as such and are academically attributed to
+the various authors of the suite (Andrew Rukhin, Juan Soto, James
+Nechvatal, Miles Smid, Elaine Barker, Stefan Leigh, Mark Levenson, Mark
+Vangel, David Banks, Alan Heckert, James Dray, San Vo).
+
+  * Original tests or timing operations inserted by Robert G. Brown.
+Almost any distribution that can be computed on the basis of a source of
+random numbers with a derived statistic with known or reliably
+measurable statistical properties can serve as a test of random numbers
+using the general approach implemented in Diehard, the STS, Dieharder,
+and elsewhere.
+
+  * Tests described in Knuth's The Art of Computer Programming.
+
+  * User-contributed tests.
+
+  * Tests described elsewhere in the literature.
+
+In all cases some effort has been made to correctly attribute the
+originator of a test algorithm, and if there are any errors in this
+regard they will be happily corrected once they are brought to the
+attention of the author.
+-- snip ---------------------------------------------------------------------
+
+
+
+Portions of dieharder carry different copyrights, but are generally
+released under the GNU General Public License as well:
+
+libdieharder/rng_kiss.c:
+libdieharder/rng_dev_urandom.c:
+dieharder/empty_random.c:
+	Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler, Brian Gough
+	Released under GPL v2 or later
+
+libdieharder/rng_ca.c
+	Copyright (C) Tony Pasqualoni / Sept. 20, 2006
+	Released under GPL v2 or later
+
+dieharder/db_gnu_r_rngs.c:
+        *  Copyright (C) 1995, 1996  Robert Gentleman and Ross Ihaka
+        *  Copyright (C) 1997--2003  Robert Gentleman, Ross Ihaka and the
+        *                            R Development Core Team
+        *  Copyright (C) 1997, 1999 Makoto Matsumoto and Takuji Nishimura.
+        *
+        *  Copyright (C) 2006 Dirk Eddelbuettel		dieharder adaptation
+        Released under GPL v2 or later
--- dieharder-3.31.1.orig/debian/changelog
+++ dieharder-3.31.1/debian/changelog
@@ -0,0 +1,177 @@
+dieharder (3.31.1-4.4.201403200028) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Thu, 20 Mar 2014 00:28:34 +0100
+
+dieharder (3.31.1-4) unstable; urgency=low
+
+  * debian/rules: Added additional dependency 'configure-stamp' before
+    the build-stamp dependecy which needs its output. 	(Closes: #666344)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 07 Apr 2012 16:40:45 -0500
+
+dieharder (3.31.1-3) unstable; urgency=low
+
+  * debian/rules: Added additional configure-stamp dependency
+  							(Closes: #666344)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 31 Mar 2012 10:48:22 -0500
+
+dieharder (3.31.1-2) unstable; urgency=low
+
+  * debian/control: Switch Build-Depeds: from gs-common to ghostscript
+  							(Closes: #649706)
+  
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 23 Nov 2011 07:18:46 -0600
+
+dieharder (3.31.1-1) unstable; urgency=low
+
+  * New upstream release, but manually tweaking upstream tarball by
+  
+  * debian/rules: Emptying dependency_libs in .la file	(Closes: #621199)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 19 Nov 2011 13:55:29 -0600
+
+dieharder (3.31.1~20110601-1) unstable; urgency=low
+
+  * New upstream test release with improved endianness checks
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 01 Jun 2011 16:25:42 -0500
+
+dieharder (3.31.1~20110526-1) unstable; urgency=low
+
+  * New upstream test release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Fri, 27 May 2011 16:21:52 -0500
+
+dieharder (3.31.0-2) unstable; urgency=low
+
+  * debian/libdieharder-dev.files: Move usr/share/man/man3/* from
+    libdieharder3.files to install the manual page libdieharder.3 
+    in the -dev package
+  * debian/control: Added 'Replaces: libdieharder2 (<= 2.28.1-3)' to
+    libdieharder-dev
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sun, 20 Mar 2011 22:14:20 -0500
+
+dieharder (3.31.0-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * debian/control: Bumped major to 3 for libdieharder3 along with upstream
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 19 Mar 2011 21:39:20 -0500
+
+dieharder (2.28.1-3) unstable; urgency=low
+
+  * debian/rules: Run 'autoreconf -ifv' instead of 'autogen.sh' to update 
+    GNU autotools and libtool meshing. Big thanks to Daniel Schepler for
+    the bug report and fix suggestion.			(Closes: #527519)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu, 07 May 2009 21:25:52 -0500
+
+dieharder (2.28.1-2) unstable; urgency=low
+
+  * include/Makefile.am: Add missing file dieharder/rgb_lagged_sums.h to 
+    list of files to be installed (and committed upstream as svn rev 457)
+    and re-ran automake
+  
+ -- Dirk Eddelbuettel <edd@debian.org>  Sun, 14 Sep 2008 13:01:08 -0500
+
+dieharder (2.28.1-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * dieharder/work.c: Let's not call rgb_timing() on each non-file 
+    based startup as it a) breaks sequential use, and b) creates p-values
+    that are different from prior versions.  This should really preserve
+    generator state, if at all possible. 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 09 Sep 2008 10:18:55 -0500
+
+dieharder (2.27.13-2) unstable; urgency=low
+
+  * internal test release
+  * libdieharder/{rng_file_input_raw.c, rng_file_input.c}: Do not close 
+    state->fp at setup if seed != 0 -- patch forwarded to Robert too
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu, 04 Sep 2008 08:26:55 -0500
+
+dieharder (2.27.13-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Fri, 22 Aug 2008 20:09:10 -0500
+
+dieharder (2.27.12-1) unstable; urgency=low
+
+  * New upstream release, addressing the forwarded bug report 
+    'command line options not backwards compatible'  	(Closes: #491555)
+
+  * debian/control: Add Depends: on libgsl0-dev for libdieharder-dev 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 20 Aug 2008 08:55:36 -0500
+
+dieharder (2.24.7-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * debian/watch: Added watch file, after hint from Robert re locations
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 19 Jul 2008 11:14:06 -0500
+
+dieharder (2.24.4-5) unstable; urgency=low
+
+  * debian/rules: Remove manual/dieharder.{pdf,dvi} in clean target
+  							(Closes: #442547)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 17 Sep 2007 16:53:17 -0500
+
+dieharder (2.24.4-4) unstable; urgency=low
+
+  * manual/Makefile*: Switch to pdflatex instead of ps2pdf which 
+    crashed on a few non-Intel architectures
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 05 Sep 2007 19:31:40 -0500
+
+dieharder (2.24.4-3) unstable; urgency=low
+
+  * dieharder/Makefile*: Comment out unconditional strip call, which will
+    also be removed upstream				(Closes: #436768)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 13 Aug 2007 05:51:03 -0500
+
+dieharder (2.24.4-2) unstable; urgency=low
+
+  * debian/rules: Manually call for build of pdf manual and install
+    it in the libdieharder-dev package			(Closes: #433810)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu, 19 Jul 2007 11:22:16 -0500
+
+dieharder (2.24.4-1) unstable; urgency=low
+
+  * New upstream release -- and first Debian upload
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 26 May 2007 15:23:14 -0500
+
+dieharder (2.24.3-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * dieharder/add_my_types.c:  Enable the GNU R generators 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sun,  6 May 2007 13:29:59 -0500
+
+dieharder (2.24.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 27 Feb 2007 22:24:31 -0600
+
+dieharder (2.4.24-1) unstable; urgency=low
+
+  * Initial Debian packaging
+  
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 17 Feb 2007 00:02:59 -0600
+
--- dieharder-3.31.1.orig/debian/control
+++ dieharder-3.31.1/debian/control
@@ -0,0 +1,69 @@
+Source: dieharder
+Section: devel
+Priority: optional
+Maintainer: Dirk Eddelbuettel <edd@debian.org>
+Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 7), libgsl0-dev, automake, libtool, ghostscript, texlive-base, texlive-latex-base, texlive-generic-recommended
+
+Package: dieharder
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description:  Random-number generator test front-end
+ dieharder is a fairly involved random number/uniform deviate generator
+ tester.  It can either test any of its many prebuilt and linked
+ generators (basically all of those in the GNU Scientific Library plus
+ any others I've been able to find) or a potentially random dataset in a
+ file.  With file input, it can test either N-bit bitstrings (with N user
+ specifiable) or (double precision) floating point numbers in the range
+ [0.0,1.0) (uniform deviates).  It is thus suitable for use in testing
+ both software RNG's and hardware RNG's.
+ .
+ This package provides the command-line frontend.
+
+Package: libdieharder3
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description:  Random-number generator test library
+ libdieharder is the core library of dieharder and friends, designed to
+ be "the last suite of random number testers you'll ever wear".  It can
+ test any of its many prebuilt and library linked generators (basically
+ all of those in the GNU Scientific Library plus a number of others from
+ various sources) or a potentially random dataset in either an
+ ascii-formatted or raw (presumed 32 bit uint) binary file.  It is fairly
+ straightforward to wrap new software generators for testing, or to add
+ hardware generators that have a software interface for testing, and the
+ file input method permits pretty much any software or hardware RNG to be
+ tested using libdieharder calls.
+ .
+ libdieharder has as a design goal the full encapsulation in an
+ extensible shell of basically all the random number tests I have been
+ able to find -- George Marsaglia's "diehard" battery of tests, STS
+ (v1.6) from NIST FIPS, Knuth's tests, and more.  Check in the man
+ page(s) or /usr/share/dieharder*/dieharder.pdf for documentation.
+ .
+ This package provides the shared library.
+
+Package: libdieharder-dev
+Architecture: any
+Depends: ${misc:Depends}, libdieharder3 (= ${binary:Version}), libgsl0-dev
+Section: libdevel
+Replaces: libdieharder2 (<= 2.28.1-3)
+Description:  Random-number generator test library -- development package
+ libdieharder is the core library of dieharder and friends, designed to
+ be "the last suite of random number testers you'll ever wear".  It can
+ test any of its many prebuilt and library linked generators (basically
+ all of those in the GNU Scientific Library plus a number of others from
+ various sources) or a potentially random dataset in either an
+ ascii-formatted or raw (presumed 32 bit uint) binary file.  It is fairly
+ straightforward to wrap new software generators for testing, or to add
+ hardware generators that have a software interface for testing, and the
+ file input method permits pretty much any software or hardware RNG to be
+ tested using libdieharder calls.
+ .
+ libdieharder has as a design goal the full encapsulation in an
+ extensible shell of basically all the random number tests I have been
+ able to find -- George Marsaglia's "diehard" battery of tests, STS
+ (v1.6) from NIST FIPS, Knuth's tests, and more.  Check in the man
+ page(s) or /usr/share/dieharder*/dieharder.pdf for documentation.
+ .
+ This package provides the header files and the pdf manual.
--- dieharder-3.31.1.orig/debian/libdieharder-dev.dirs
+++ dieharder-3.31.1/debian/libdieharder-dev.dirs
@@ -0,0 +1 @@
+usr/share/doc/libdieharder-dev
--- dieharder-3.31.1.orig/debian/dieharder.lintian-overrides
+++ dieharder-3.31.1/debian/dieharder.lintian-overrides
@@ -0,0 +1 @@
+dieharder source: configure-generated-file-in-source config.status
--- dieharder-3.31.1.orig/debian/rules
+++ dieharder-3.31.1/debian/rules
@@ -0,0 +1,179 @@
+#!/usr/bin/make -f 					
+# 							-*- makefile -*-
+# debian/rules file for the Debian/GNU Linux dieharder package
+# Copyright 2007 by Dirk Eddelbuettel <edd@debian.org>
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# For autoconf 2.52 and newer only
+CONFFLAGS =
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
+else
+  CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+DEBUGFLAGS=-g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	DEBUGFLAGS += -O0
+else
+	DEBUGFLAGS += -O3
+ifeq ($(arch),m68k)
+	DEBUGFLAGS += -O0
+endif
+endif
+
+# edd 18 Nov 2006:  add -fexceptions, but don't use -O3 as 
+#                   'make check' as gcc hangs in cblas/ after test_ger.c
+CFLAGS	   :=-Wall -pipe -fexceptions -D_REENTRANT $(DEBUGFLAGS)
+# edd 29 Sep 2005   alpha needs -mieee with gcc 4.0
+ifeq ($(arch),alpha)
+CFLAGS	+= -mieee
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	dh_testdir
+
+	ln -sf /usr/share/misc/config.sub .
+	ln -sf /usr/share/misc/config.guess .
+	rm -f config.cache
+        #./autogen.sh
+	autoreconf -ifv
+
+	./configure 	CFLAGS="$(CFLAGS)" 		\
+			--prefix=/usr 			\
+			$(CONFFLAGS) 			
+
+        # patch libtool re rpath (see lintian docu)
+	sed < libtool > libtool-2 \
+			-e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
+			-e '/^archive_cmds="/s/"$$/ \\$$deplibs"/'
+	mv libtool-2 libtool
+	chmod 755 libtool            
+        # end libtool rpath patch
+	touch configure-stamp
+
+build: configure build-arch build-indep
+build-arch: configure-stamp build-stamp 
+build-indep: configure-stamp build-stamp 
+build-stamp:
+	dh_testdir
+	$(MAKE)	
+
+        # manually call for manual build
+#	(cd manual && make && cd -)
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+        # Robert uses a non-standard way of building things; make clean does call
+        # configure and fails in the chroot/build unless we run autogen.sh first. Sigh
+        # so we fixed this by deleting Makefile from the upstream tarball. Sigh.
+	[ ! -f Makefile ] || $(MAKE) clean distclean
+
+	rm -rf buildroot
+	rm -f dieharder.pdf
+	rm -f config.guess config.sub config.status
+
+        # extra cleanup in manual/
+	rm -vf manual/dieharder.dvi manual/dieharder.pdf
+
+	dh_clean
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+#	# Add here commands to install the package into debian/tmp.
+#	#$(MAKE) prefix=`pwd`/debian/tmp/usr install
+	$(MAKE) prefix=`pwd`/debian/dieharder/usr install
+
+#	(cd debian/dieharder/usr/lib && \
+#		ls -l )
+#		rm -vf libdieharder.so )
+#		ln -s libdieharder.so.2.*.* libdieharder.so.2 && \
+#		ln -s libdieharder.so.2 libdieharder.so )
+
+	dh_movefiles --sourcedir=debian/dieharder \
+				-plibdieharder3 -plibdieharder-dev
+
+#	install -m 0644 manual/dieharder.pdf \
+#		`pwd`/debian/libdieharder-dev/usr/share/doc/libdieharder-dev/
+
+        # cleanups to make lintian happy
+	rmdir -v `pwd`/debian/dieharder/usr/share/man/man3 	\
+		 `pwd`/debian/dieharder/usr/include/dieharder	\
+		 `pwd`/debian/dieharder/usr/include/
+
+        # edd 03 Jun 2011
+        # empty dependency_lib in .la files (cf #621199)	
+	find debian/dieharder/ -name \*.la | \
+		xargs perl -p -i -e "s/dependency_libs='.*'/dependency_libs=''/" 
+
+
+# This single target is used to build all the packages, all at once, or
+# one at a time. So keep in mind: any options passed to commands here will
+# affect _all_ packages. Anything you want to only affect one package
+# should be put in another target, such as the install target.
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_lintian
+#	dh_installdebconf
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installcatalogs
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installman
+#	dh_installcron
+#	dh_installinfo
+#	dh_undocumented
+	dh_strip
+	dh_link
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build install
+# (Uncomment this next line if you have such packages.)
+#	 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build install
+	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+# Any other binary targets build just one binary package at a time.
+binary-%: build install
+	make -f debian/rules binary-common DH_OPTIONS=-p$*
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary-common binary install
