--- darcsum-1.10.orig/debian/docs
+++ darcsum-1.10/debian/docs
@@ -0,0 +1,2 @@
+TODO
+perfect-darcs-mode.txt
--- darcsum-1.10.orig/debian/compat
+++ darcsum-1.10/debian/compat
@@ -0,0 +1 @@
+7
--- darcsum-1.10.orig/debian/dirs
+++ darcsum-1.10/debian/dirs
@@ -0,0 +1 @@
+usr/share/emacs/site-lisp/darcsum
--- darcsum-1.10.orig/debian/emacsen-startup
+++ darcsum-1.10/debian/emacsen-startup
@@ -0,0 +1,24 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50darcsum.el
+;; for the Debian darcsum 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@debian.org>
+
+;; The darcsum 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:
+(if (not (file-exists-p "/usr/share/emacs/site-lisp/darcsum"))
+    (message "Package darcsum removed but not purged.  Skipping setup.")
+
+  (debian-pkg-add-load-path-item 
+   (concat
+    "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/darcsum"))
+
+  (autoload 'darcsum-changes "darcsum" nil t)
+  (autoload 'darcsum-whatsnew "darcsum" nil t)
+  (autoload 'darcsum-view "darcsum" nil t))
--- darcsum-1.10.orig/debian/copyright
+++ darcsum-1.10/debian/copyright
@@ -0,0 +1,44 @@
+This work was packaged for Debian by:
+
+    TANIGUCHI Takaki <takaki@debian.org> on Thu, 22 Oct 2009 11:08:29 +0900
+
+It was downloaded from:
+
+    http://chneukirchen.org/repos/darcsum/
+
+Upstream Author:
+
+    Christian Neukirchen <chneukirchen@gmail.com>
+
+Copyright:
+
+    Copyright (C) 2004  John Wiegley
+    Copyright (C) 2005  Christian Neukirchen
+    Copyright (C) 2005  Free Software Foundation, Inc.
+
+License:
+
+;; This module 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, or (at your
+;; option) any later version.
+
+;; This module 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 received a copy of the GNU General Public License
+;; along with GNU Emacs; see the file COPYING.  If not, write to the
+;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+;; MA 02110-1301, USA.
+
+
+On Debian systems, the complete text of the GNU General
+Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 TANIGUCHI Takaki <takaki@debian.org>
+
+and is licensed under the GPL version 2, see above.
--- darcsum-1.10.orig/debian/install
+++ darcsum-1.10/debian/install
@@ -0,0 +1 @@
+darcsum.el /usr/share/emacs/site-lisp/darcsum
--- darcsum-1.10.orig/debian/changelog
+++ darcsum-1.10/debian/changelog
@@ -0,0 +1,32 @@
+darcsum (1.10-4.4.201403190354) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Wed, 19 Mar 2014 03:54:48 +0100
+
+darcsum (1.10-4) unstable; urgency=low
+
+  * Rewrite emacs startup script. (Closes: #671553)
+
+ -- TANIGUCHI Takaki <takaki@debian.org>  Wed, 09 May 2012 22:42:24 +0900
+
+darcsum (1.10-3) unstable; urgency=low
+
+  * Bump Standards-Version to 3.9.2.
+  * debian/control: Fixed typo in description.
+  * Drop support emacs22.
+
+ -- TANIGUCHI Takaki <takaki@debian.org>  Tue, 20 Sep 2011 11:51:06 +0900
+
+darcsum (1.10-2) unstable; urgency=low
+
+  * debian/rules: use debian/install
+  * drop emacs21 support (Closes: #554679).
+
+ -- TANIGUCHI Takaki <takaki@debian.org>  Thu, 12 Nov 2009 17:35:28 +0900
+
+darcsum (1.10-1) unstable; urgency=low
+
+  * Initial release (Closes: #444004)
+
+ -- TANIGUCHI Takaki <takaki@debian.org>  Thu, 22 Oct 2009 11:08:29 +0900
--- darcsum-1.10.orig/debian/emacsen-install
+++ darcsum-1.10/debian/emacsen-install
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/darcsum
+
+# Written by Jim Van Zandt <jrv@debian.org>, 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=darcsum
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+#    SITEFLAG="-no-site-file"
+#else
+#    SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.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/share/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
--- darcsum-1.10.orig/debian/control
+++ darcsum-1.10/debian/control
@@ -0,0 +1,16 @@
+Source: darcsum
+Section: lisp
+Priority: optional
+Maintainer: TANIGUCHI Takaki <takaki@debian.org>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.9.3
+Homepage: http://chneukirchen.org/repos/darcsum/
+Vcs-Git: git://git.debian.org/collab-maint/darcsum.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/darcsum.git;a=summary
+
+Package: darcsum
+Architecture: all
+Depends: emacs23 | xemacs21, ${shlibs:Depends}, ${misc:Depends}
+Description: pcl-cvs like interface for managing darcs patches
+ darcsum is an emacs interface for Darcs. It has a pcl-cvs like interface,
+ and you can commit changes, edit change logs, review changes, etc...
--- darcsum-1.10.orig/debian/emacsen-remove
+++ darcsum-1.10/debian/emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/darcsum
+
+FLAVOR=$1
+PACKAGE=darcsum
+
+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/share/info/darcsum.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- darcsum-1.10.orig/debian/rules
+++ darcsum-1.10/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh  $@
+
+override_dh_installemacsen:
+	dh_installemacsen --flavor=emacs23
+	dh_installemacsen --flavor=xemacs21
