--- pcsc-lite-1.5.5.orig/debian/pcscd.postrm
+++ pcsc-lite-1.5.5/debian/pcscd.postrm
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "purge" ] ; then
+
+  # Remove configuration file
+  if [ -f /etc/reader.conf ]; then
+    rm -f /etc/reader.conf
+  fi
+
+  # Remove configuration file backup
+  if [ -f /etc/reader.conf.old ]; then
+    rm -f /etc/reader.conf.old
+  fi
+
+  # remove cfgdir if it's not in use
+  if [ -d /etc/reader.conf.d ]; then
+    files=`ls /etc/reader.conf.d`
+    if [ -z "$files" ]; then
+      rmdir /etc/reader.conf.d
+    fi
+  fi
+
+fi
+
+#DEBHELPER#
--- pcsc-lite-1.5.5.orig/debian/pcscd.install
+++ pcsc-lite-1.5.5/debian/pcscd.install
@@ -0,0 +1,3 @@
+etc/reader.conf.d/0comments
+usr/sbin/pcscd
+usr/sbin/update-reader.conf
--- pcsc-lite-1.5.5.orig/debian/changelog
+++ pcsc-lite-1.5.5/debian/changelog
@@ -0,0 +1,675 @@
+pcsc-lite (1.5.5-4) unstable; urgency=high
+
+  * Fix CVE-2010-4531: buffer overflow in the ATRDecodeAtr function in the
+    Answer-to-Reset (ATR) Handler (atrhandler.c)
+  * Closes: #607781 "pcsc-lite: buffer overflow"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 22 Jan 2011 11:57:15 +0100
+
+pcsc-lite (1.5.5-3) unstable; urgency=low
+
+  * debian/update-reader.conf: store the generated configuration file in
+    /var/lib/pcscd instead of /etc. This should really close #565896.
+  * Fix "update-reader.conf depends on collation order, but does not
+    override LC_ALL" by using unset LC_ALL (Closes:
+    #567764)
+  * use debhelper compat V7
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 03 Feb 2010 11:57:12 +0100
+
+pcsc-lite (1.5.5-2) unstable; urgency=medium
+
+  * debian/update-reader.conf: add a SHA1 on the first line of the
+    configuration file to detect manual edition. Closes: #565896 "pcscd:
+    overwrites changes in configuration files"
+    urgency=medium because of RC bug.
+  * fix lintian warning: debhelper-but-no-misc-depends
+  * Standards-Version: 3.8.1 -> 3.8.4, no change needed
+  * fix lintian warning: I: pcsc-lite source:
+    binary-control-field-duplicates-source field "priority" in package pcscd
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 30 Jan 2010 19:50:04 +0100
+
+pcsc-lite (1.5.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 28 Jul 2009 22:04:07 +0000
+
+pcsc-lite (1.5.4-1) unstable; urgency=low
+
+  * New upstream release
+   - Fix "creates a world-writable directory" bug fixed upstream by adding the
+   sticky bit to teh directory (Closes: #533670)
+  * debian/watch: new format
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 24 Jun 2009 09:03:56 +0200
+
+pcsc-lite (1.5.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 29 Apr 2009 15:26:54 +0200
+
+pcsc-lite (1.5.2-2) unstable; urgency=low
+
+  * debian/rules: use symbolic links instead of copy to update config.sub and
+    config.guess as suggested in /usr/share/doc/autotools-dev/README.Debian.gz
+    Tries to limit difference with the Ubuntu package
+  * Standards-Version: 3.7.3 -> 3.8.1
+   - add support of noopt and parallel options in DEB_BUILD_OPTIONS
+   - resynch pcscd.init with /etc/init.d/skeleton
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 29 Mar 2009 17:04:44 +0200
+
+pcsc-lite (1.5.2-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/pcscd.postinst: do not use an absolute path for update-reader.conf
+    lintian warning: command-with-path-in-maintainer-script
+  * debian/control: update Build-Depends: for debhelper
+    lintian warning: debhelper-script-needs-versioned-build-depends dh_lintian
+    (>= 6.0.7~)
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 15 Feb 2009 15:42:49 +0000
+
+pcsc-lite (1.4.102-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: change from Recommends: to Suggests: pcscd for
+    libpcsclite1
+    Closes: #476483: libpcsclite1: should suggest pcscd, not recommend it
+  * debian/control: pcscd no more Conflicts: with libpcsclite0 since
+    libpcsclite0 is no more in Debian
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 27 Jun 2008 06:14:51 +0200
+
+pcsc-lite (1.4.101-2) unstable; urgency=low
+
+  * debian/control: remove reference to formaticc(1) and bundleTool(8) since
+    they are no more provided.
+    Closes: #479465: "pcscd: formaticc is not shipped, but description says
+    so"
+  * debian/rules: Closes: #478615: "pcsc-lite: bashism in debian/rules"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue,  6 May 2008 14:57:38 +0200
+
+pcsc-lite (1.4.101-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/rules: do not set CFLAGS since dpkg-dev (>= 1.14.17) does it for me
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 30 Apr 2008 20:24:05 +0200
+
+pcsc-lite (1.4.100-3) unstable; urgency=low
+
+  * debian/rules: add --sysconfdir=/etc to correctly generate path in pcscd(8)
+    manpage
+  * debian/pcscd.init:
+   - add hal to LSB Should-Start/Stop. Closes: #474238 "pcscd: LSB init script
+     doesn't depend on hal"
+   - remove usbmgr and hotplug from Should-Start: and Should-Stop: since these
+     packages are no more available in lenny
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 04 Apr 2008 15:32:03 +0200
+
+pcsc-lite (1.4.100-2) unstable; urgency=low
+
+  * debian/control: add Depends: hal. Closes: #472493: "pcscd: must depends on
+    hald"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Mon, 24 Mar 2008 20:18:38 +0100
+
+pcsc-lite (1.4.100-1) unstable; urgency=low
+
+  * New upstream release
+   - Closes: #471673 "pcscd: Polls to much when on battery"
+  * debian/control: add Vcs-Svn: and Vcs-Browser: now the packaging is hosted
+    on alioth/collab-maint
+  * debian/update-reader.conf.8: fix a typo. Closes: Bug#468743: 'man
+    update-reader' typo
+  * debian/control: Build-Depends: libusb-dev -> libhal-dev
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 23 Mar 2008 15:00:34 +0100
+
+pcsc-lite (1.4.99-2) unstable; urgency=low
+
+  * debian/control: correct a typo. Closes: Bug#466724: "pcscd: Typo in
+    package description"
+  * debian/pcscd.init: include /etc/default/pcscd if present and document its
+    usage
+  * debian/pcscd.init
+   - do not try to kill children since pcscd do not fork
+   - use --retry=3 instead of --retry=TERM/30/KILL/5 in stop rule
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 20 Feb 2008 18:08:11 +0100
+
+pcsc-lite (1.4.99-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/pcscd.init: pid file is now in /var/run/pcscd/
+  * debian/control
+   - Standards-Version: 3.7.2.0 -> 3.7.3. no change needed
+  * debian/pcscd.postinst: remove very old commented code to clean /tmp/pcsc
+    and also remove debian/pcscd.postinst.lintian_override
+  * debian/lintian-override: ignore package-contains-empty-directory for
+    usr/lib/pcsc/{drivers,services}/
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 09 Jan 2008 13:49:01 +0100
+
+pcsc-lite (1.4.4-3) unstable; urgency=low
+
+  * debian/pcscd.init: use the correct pidfile so that "stop" works
+  Closes: #451704 "Latest version takes a lot to shut down"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 30 Nov 2007 00:07:37 +0100
+
+pcsc-lite (1.4.4-2) unstable; urgency=low
+
+  * debian/watch: update URL to make it work again. Closes: #449679:
+    "pcsc-lite: debian/watch fails to report upstream's version"
+  * debian/control: use Homepage: field
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 07 Nov 2007 16:25:00 +0000
+
+pcsc-lite (1.4.4-1) unstable; urgency=low
+
+  * New upstream release
+    - Closes: #430492 "pcscd: daemon freezes when USB reader inserted or
+    removed"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 14 Aug 2007 19:43:36 +0200
+
+pcsc-lite (1.4.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 19 Jun 2007 21:19:54 +0200
+
+pcsc-lite (1.4.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 23 May 2007 18:49:36 +0200
+
+pcsc-lite (1.4.1-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Standards-Version: 3.6.2.0 -> 3.7.2.0. No change needed
+  * debian/libpcsclite-dev.docs: no PDF to distribute. Use the online HTML
+    documentation instead
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 16 May 2007 14:40:30 +0200
+
+pcsc-lite (1.4.0-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 13 Feb 2007 21:39:41 +0100
+
+pcsc-lite (1.3.3-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu, 25 Jan 2007 15:56:40 +0100
+
+pcsc-lite (1.3.2-5) unstable; urgency=high
+
+  * debian/pcscd.init: rewrite using /etc/init.d/skeleton as example.
+    start rule do not call restart any more
+    Closes: #404897 "pcscd: infinite loop when trying to start the daemon"
+    Closes: #405025 "/etc/init.d/pcscd is a fork bomb"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 30 Dec 2006 18:37:45 +0100
+
+pcsc-lite (1.3.2-4) unstable; urgency=low
+
+  * ack and improve Steinar patch
+  * debian/pcscd.init: 
+   - status command: remove /var/run/pcscd.{pid,pub} if pcscd is not running
+     but /var/run/pcscd.pid is still present (pcscd may have crashed)
+   - start comand: call status to know if we start or restart
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 26 Dec 2006 15:30:18 +0100
+
+pcsc-lite (1.3.2-3.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Fix issues with looping init script. (Closes: #392357)
+    * restart calls stop ; start, but start calls restart if the pid file
+      still exists. This is obviously not a good idea if stop doesn't remove
+      the pid file properly. Make start stop the daemon itself instead of
+      calling restart, which kills the loop.
+    * Also, make the stop target rm -f the pid file after calling
+      start-stop-daemon, just in case, and to avoid extraneous stops from the
+      start target.
+    * Finally, also check and rm /var/run/pcscd.pub, as the daemon doesn't
+      like starting if it's already there.
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Tue, 26 Dec 2006 13:45:25 +0100
+
+pcsc-lite (1.3.2-3) unstable; urgency=high
+
+  * urgency high to correct a RC bug
+  * debian/pcscd.init: really commit a local patch that should already be in
+    1.3.2-2.  Closes: #392357 "fails to stop; postinst goes into infinite
+    loop"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 14 Oct 2006 00:35:01 +0200
+
+pcsc-lite (1.3.2-2) unstable; urgency=low
+
+  * debian/{control,pcscd.init}: Closes: #390603 "LSB-compliant init script"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun,  8 Oct 2006 14:20:07 +0200
+
+pcsc-lite (1.3.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 11 Aug 2006 20:52:44 +0200
+
+pcsc-lite (1.3.1-2) unstable; urgency=low
+
+  * debian/control: add Conflicts: libccid (<= 1.0.0-1) since
+    LTPBundleFindValueWithKey() is no more exported by pcscd but used buy
+    libccid before version 1.0.1
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 23 Apr 2006 13:56:28 +0200
+
+pcsc-lite (1.3.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 22 Apr 2006 21:02:00 +0200
+
+pcsc-lite (1.3.0-1) unstable; urgency=low
+
+  * New upstream release
+  * the libmusclecard library is now in the libmusclecard1 package
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri,  3 Mar 2006 15:17:13 +0100
+
+pcsc-lite (1.2.9-beta10-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/compat: change from 4 to 5
+  * debian/control: Build-Depends: debhelper (>= 5)
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri,  3 Feb 2006 14:28:10 +0100
+
+pcsc-lite (1.2.9-beta9-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/compat: change from 3 to 4
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 27 Nov 2005 18:04:59 +0100
+
+pcsc-lite (1.2.9-beta8-4) unstable; urgency=low
+
+  * debian/rules: use --enable-muscledropdir=/usr/lib/pcsc/services to avoid a
+    bug in ./configure
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 16 Nov 2005 20:34:40 +0100
+
+pcsc-lite (1.2.9-beta8-3) unstable; urgency=low
+
+  * debian/control: Build-Depends: tetex-extra to get url.sty
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu,  8 Sep 2005 18:58:26 +0200
+
+pcsc-lite (1.2.9-beta8-2) unstable; urgency=low
+
+  * debian/control: Build-Depends: tetex-bin to get pdflatex
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu,  8 Sep 2005 15:20:23 +0200
+
+pcsc-lite (1.2.9-beta8-1) unstable; urgency=low
+
+  * New upstream version
+   - Closes: #306061 "Weird messages in syslog"
+  * debian/rules: compile with -g flag by default
+    Closes: #307743 "does not build with debugging by default"
+  * debian/control: Standards-Version: 3.6.1 -> 3.6.2.0. No change.
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed,  7 Sep 2005 21:51:12 +0200
+
+pcsc-lite (1.2.9-beta7-5) unstable; urgency=low
+
+  * debian/pcscd.install: add usr/sbin/update-reader.conf in pcscd package
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu, 24 Mar 2005 12:54:43 +0100
+
+pcsc-lite (1.2.9-beta7-4) unstable; urgency=low
+
+  * debian/rules: add --enable-muscledropdir=/usr/lib/pcsc/services so that
+    bundleTool find the services/ directory.
+    Closes: #300428 "bundleTool does not work"
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 19 Mar 2005 19:35:35 +0100
+
+pcsc-lite (1.2.9-beta7-3) unstable; urgency=low
+
+  * debian/control: remove Build-Depends: pkg-config since it is useless
+  * debian/rules: add LDFLAGS="-lpthread" again for mips and mispel
+    (see bug #253629)
+  * do not delete pcsclite/doc/*.pdf files with "make clean" so we do not have
+    to regenerate them using pdflatex
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu, 17 Mar 2005 22:24:01 +0100
+
+pcsc-lite (1.2.9-beta7-2) unstable; urgency=low
+
+  * debian/control: add Build-Depends: pkg-config
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 16 Mar 2005 17:57:11 +0100
+
+pcsc-lite (1.2.9-beta7-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/rules: remove --version-info from dh_makeshlibs.
+    see http://lists.debian.org/debian-devel/2004/08/msg01359.html
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu, 10 Mar 2005 20:02:46 +0100
+
+pcsc-lite (1.2.9-beta6-1) unstable; urgency=medium
+
+  * New upstream release
+   - urgency=medium since this version corrects an important bug in the server
+     that crashes after 256 client connections.
+     This version should be released with Debian sarge.
+  * debian/update-reader.conf: use a safe way to generate a temporary filename
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 15 Aug 2004 19:07:24 +0200
+
+pcsc-lite (1.2.9-beta5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 16 Jul 2004 21:53:07 +0200
+
+pcsc-lite (1.2.9-beta4-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat,  3 Jul 2004 18:53:23 +0200
+
+pcsc-lite (1.2.9-beta3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu,  1 Jul 2004 17:30:30 +0200
+
+pcsc-lite (1.2.9-beta2-2) unstable; urgency=low
+
+  * debian/rules: add -lpthread to LDFLAGS so that pthread_* symbols are
+    included in the library (problem only seen on mips and mipsel).
+    Closes: #253629
+  * debian/control: make libpcsclite-dev and libpcsclite1 at Priority:
+    optional so that other packages at Priority: optional can use them.
+    Closes: #249374
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 13 Jun 2004 21:45:56 +0200
+
+pcsc-lite (1.2.9-beta2-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Build-Depends on libusb-dev (>= 1:0.1.7). Closes: #240636
+  * debian/pcscd.init: some rework of the code to make it more like
+    /etc/init.d/skeleton
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 12 May 2004 09:03:07 +0200
+
+pcsc-lite (1.2.0-stable-2) unstable; urgency=low
+
+  * debian/rules: add support for INSTALL_PROGRAM
+  * config.guess, config.sub, ltmain.sh: new versions to avoid a libtool bug:
+  libpcsclite.la contains dependency_libs=' -pthread' instead of
+  dependency_libs=' -lpthread'. Closes: #233519
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 18 Feb 2004 23:00:05 +0100
+
+pcsc-lite (1.2.0-stable-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 29 Oct 2003 19:27:45 +0100
+
+pcsc-lite (1.2.0-rc3-1) unstable; urgency=low
+
+  * New upstream release
+  * distribute usr/lib/pkgconfig/libmusclecard.pc in libpcsclite-dev
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Wed, 15 Oct 2003 23:32:14 +0200
+
+pcsc-lite (1.2.0-rc2-1) unstable; urgency=low
+
+  * New upstream release
+   - libpcsclite0 is no more linked with libusb, closes: #208665
+   - libpcsclite{0,-dev} contain a new library libmusclecard that was
+     previously included in libpcsclite0
+  * debian/copyright: the publicity clause was removed
+  * distribute usr/lib/pkgconfig/libpcsclite.pc in libpcsclite-dev
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri,  5 Sep 2003 22:52:22 +0200
+
+pcsc-lite (1.2.0-rc1-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control
+   - pcscd now uses libusb
+   - Update Standards-Version: from 3.5.8 to 3.6.1
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 26 Aug 2003 22:48:25 +0200
+
+pcsc-lite (1.1.2-ubeta5-1) unstable; urgency=low
+
+  * New upstream release
+  * pcscd Depends: libgempc430 | pcsc-ifd-handler to install the USB driver
+    libgempc430 instead of a serial one which may cause conflict with an
+    already installed serial device. This only occurs if no package providing
+    pcsc-ifd-handler is installed yet.
+  * debian/control: specify debhelper version in Build-Depends:
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 31 May 2003 14:42:27 +0200
+
+pcsc-lite (1.1.2-ubeta4-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control
+   - correctly add the homepage URL to conform to developers-reference (v3.2)
+   - libpcsclite-dev: section changed from devel to libdevel
+  * debian/0comments: update explanation on use of update-reader.conf(8)
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Tue, 29 Apr 2003 23:24:32 +0200
+
+pcsc-lite (1.1.2-ubeta3-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control:
+   - Update Standards-Version: from 3.5.7 to 3.5.8
+   - The IPC between the daemon and library has changed. The packages conflict
+     with older versions.
+   - Changed the short description to remove technical terms.
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun,  8 Dec 2002 14:27:45 +0100
+
+pcsc-lite (1.1.2-ubeta2-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control:
+   - libpcsclite0 do not depends on pcscd anymore. You do not need to have
+    pcscd installed or running to compile a program using libpcsclite0. Some
+    Debian autibuilders had problems with this.
+   - add Build-Depends: on autotools-dev
+  * debian/rules:
+   - search debug and nostrip in DEB_BUILD_OPTIONS to build the package
+    appropriately
+   - use uptodate config.sub and config.guess using autotools-dev
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sat, 12 Oct 2002 22:07:38 +0000
+
+pcsc-lite (1.1.2-ubeta1-1) unstable; urgency=low
+
+  * New upstream release
+    The Debian version is a bit strange since 1.1.2beta1 << 1.1.2-cvs
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri,  6 Sep 2002 23:37:43 +0200
+
+pcsc-lite (1.1.2-cvs-20020815-4) unstable; urgency=low
+
+  * Move formaticc and bundleTool in pcscd since binary are forbiden in
+    library packages. Closes: #158935
+  * Add doc/muscle-api-1.3.0.pdf, usr/include/mscdefines.h and
+    usr/include/musclecard.h in libpcsclite-dev to allow compilation of
+    musclecard plugins. Closes: #158938
+  * Update Standards-Version: from 3.5.6 to 3.5.7
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun,  1 Sep 2002 10:32:01 +0000
+
+pcsc-lite (1.1.2-cvs-20020815-3) unstable; urgency=low
+
+  * formaticc and bundleTool moved from libpcsclite-dev to libpcsclite0.
+    Use Conflicts: to solve upgrade problems.
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 23 Aug 2002 15:44:41 +0200
+
+pcsc-lite (1.1.2-cvs-20020815-2) unstable; urgency=low
+
+  * debian/pcscd.init: log pcscd errors using syslog
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Fri, 16 Aug 2002 22:12:49 +0200
+
+pcsc-lite (1.1.2-cvs-20020815-1) unstable; urgency=low
+
+  * New upstream release
+  * Acknowledge NMUs Closes: #150994, #146151
+  * Use upstream pcscd.8 manpage
+  * formaticc and bundleTool are now in libpcsclite0 instead of
+    libpcsclite-dev
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Thu, 15 Aug 2002 23:32:11 +0200
+
+pcsc-lite (1.1.1-2) unstable; urgency=low
+
+  * debian/control: change the Maintainer: name since I am the new maintainer
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 30 Jun 2002 21:47:12 +0200
+
+pcsc-lite (1.1.1-1) unstable; urgency=low
+
+  * New upstream release (Closes: #150994)
+  * New maintainer. Thanks Carlos for your job
+  * Use init.d level 50 to start _after_ usbmgr with level 45.
+    see the note in /usr/share/doc/pcscd/README.Debian (Closes: #146151)
+  * update pcscd(1) manpage
+
+ -- Ludovic Rousseau <rousseau@debian.org>  Sun, 30 Jun 2002 14:52:27 +0200
+
+pcsc-lite (1.0.2.beta5-1) unstable; urgency=low
+
+  * New upstream release
+  * add debian/watch (by Ludovic Rousseau)
+  * debian/pcscd.init: (by Ludovic Rousseau)
+    - implement restart-if-running as descussed in #76868
+    - implement status as described in LSB 1.1, Chapter 19. System
+      Initialization
+  * debian/control: (by Ludovic Rousseau and me)
+    - move pcscd first to allow dh_clean to work properly
+    - change policy from 3.2.1 to 3.5.6
+    - fixed pcscd spelling error in description. Closes: bug#125221
+  * debian/pcscd.postinst: (by me)
+    - clean /tmp/pcsc before starting pcscd for upgrades form pcscd 
+      1.0.1-1 or lower.
+
+ -- Carlos Prados <cprados@debian.org>  Sun, 24 Mar 2002 00:34:08 +0100
+
+pcsc-lite (1.0.1-1) unstable; urgency=low
+
+  * New upstream release. Closes: bug#120651.
+
+ -- Carlos Prados <cprados@debian.org>  Sat, 24 Nov 2001 10:44:45 +0100
+
+pcsc-lite (1.0.0B-2) unstable; urgency=low
+
+  * Use `install -m` to copy Debian package specific files to its
+    destinations. Closes: bug#114287. 
+
+ -- Carlos Prados <cprados@debian.org>  Sat,  6 Oct 2001 14:13:28 +0200
+
+pcsc-lite (1.0.0B-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added support for debconf and update-reader.conf, by Ludovic 
+    Rousseau
+  * Changed "Standards-Version:" to 3.2.1 in debian/control, by 
+    Ludovic Rousseau 
+  * Changed "Upstream Author:" in debian/copyright (removed 
+    (s)), by Ludovic Rousseau
+  * Removed "add-log-mailing-address" in debian/changelog, by 
+    Ludovic Rousseau
+  * Updated config.guess and config.sub to version 2001-09-13
+  * Let dh_installinit hanldle initialization of pcscd
+
+ -- Carlos Prados <cprados@debian.org>  Sat, 22 Sep 2001 20:26:16 +0200
+
+pcsc-lite (0.9.3-2) unstable; urgency=low
+
+  * Fixed typo in description of libpcsclite-dev. Closes: bug#109253. 
+
+ -- Carlos Prados <cprados@debian.org>  Mon, 20 Aug 2001 21:17:41 +0200
+
+pcsc-lite (0.9.3-1) unstable; urgency=low
+
+  * New upstream release. Closes: bug#106545.
+
+ -- Carlos Prados <cprados@debian.org>  Sat, 28 Jul 2001 12:34:09 +0200
+
+pcsc-lite (0.9.1-3) unstable; urgency=low
+
+  * Configured with --enable-usb. Closes: bug#97820.
+
+ -- Carlos Prados <cprados@debian.org>  Sat, 19 May 2001 01:11:42 +0200
+
+pcsc-lite (0.9.1-2) unstable; urgency=low
+
+  * Fixed postinst to stop pcscd even when upgrading from
+    0.8.7 whose startup script was buggy. Closes bug#97395.
+  * Modified a bit the manpages of formaticc and pcscd.
+  * Aded default config for Reflex 62/64 to reader.conf
+
+ -- Carlos Prados <cprados@debian.org>  Wed, 16 May 2001 21:45:00 +0200
+
+pcsc-lite (0.9.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Miscelaneous fixes to upstream autoconf/automake build system: 
+    fixed package version in configure.in.Install doc/ under 
+    $prefix/doc. Added reconf, bootstrap, sample.* to source dist.
+    Default prefix set to /usr/local/pcsc.
+  * Statically link libpcsclite-core against pcscd.
+  * pcscd records pid in /var/run/pcscd.pid for easier
+    stop and restart.
+  * libpcsclite0 now directly depends on pcscd.
+  * Added manpage for pcscd and formaticc.
+  * Removed buggy installifd upstream utility.
+  * Enabled USB support.
+  * Option -v prints it's output to stdout.
+
+ -- Carlos Prados <cprados@debian.org>  Tue,  1 May 2001 15:00:09 +0200
+
+pcsc-lite (0.8.7-2) unstable; urgency=low
+
+  * Updated maintainer field.
+  * Added suggests field to libpcsclite0 and pcscd.
+  * Improved package descriptions.
+
+ -- Carlos Prados <cprados@debian.org>  Sun, 15 Apr 2001 18:14:33 +0200
+
+pcsc-lite (0.8.7-1) unstable; urgency=low
+
+  * Initial Release.
+  * Modified rpc/Makefile.linux to install pcscd under sbin/
+  * Closes: bug#90184
+
+ -- Carlos Prados Bocos <cprados@yahoo.com>  Wed,  4 Apr 2001 00:28:04 +0200
--- pcsc-lite-1.5.5.orig/debian/compat
+++ pcsc-lite-1.5.5/debian/compat
@@ -0,0 +1 @@
+7
--- pcsc-lite-1.5.5.orig/debian/pcscd.lintian-overrides
+++ pcsc-lite-1.5.5/debian/pcscd.lintian-overrides
@@ -0,0 +1,2 @@
+pcscd: package-contains-empty-directory usr/lib/pcsc/drivers/
+pcscd: package-contains-empty-directory usr/lib/pcsc/services/
--- pcsc-lite-1.5.5.orig/debian/pcscd.docs
+++ pcsc-lite-1.5.5/debian/pcscd.docs
@@ -0,0 +1,3 @@
+README
+SECURITY
+DRIVERS
--- pcsc-lite-1.5.5.orig/debian/pcscd.init
+++ pcsc-lite-1.5.5/debian/pcscd.init
@@ -0,0 +1,157 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: pcscd
+# Required-Start:    $local_fs $remote_fs $syslog
+# Required-Stop:     $local_fs $remote_fs $syslog
+# Should-Start:      udev hal
+# Should-Stop:       udev hal
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Daemon to access a smart card using PC/SC
+# Description:       The PC/SC daemon is used to dynamically
+#                    allocate/deallocate reader drivers at runtime and manage
+#                    connections to the readers.
+### END INIT INFO
+
+# Authors: 
+#   Carlos Prados Bocos <cprados@debian.org>
+#   Ludovic Rousseau <rousseau@debian.org>
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="PCSC Lite resource manager"
+NAME=pcscd
+DAEMON=/usr/sbin/$NAME
+PIDFILE=/var/run/pcscd/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# if you need to pass arguments to pcscd you should edit the file
+# /etc/default/pcscd and add a line 
+# DAEMON_ARGS="--your-option"
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+# get LANG variable (code from /etc/init.d/keymap.sh)
+ENV_FILE="none"
+[ -r /etc/environment ] && ENV_FILE="/etc/environment"
+[ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
+
+value=$(egrep "^[^#]*LANG=" $ENV_FILE | tail -n1 | cut -d= -f2)
+eval LANG=$value
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+	# Return
+	#   0 if daemon has been started
+	#   1 if daemon was already running
+	#   2 if daemon could not be started
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+		|| return 1
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+		$DAEMON_ARGS \
+		|| return 2
+	# Add code here, if necessary, that waits for the process to be ready
+	# to handle requests from services started subsequently which depend
+	# on this one.  As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+	# Return
+	#   0 if daemon has been stopped
+	#   1 if daemon was already stopped
+	#   2 if daemon could not be stopped
+	#   other if a failure occurred
+	start-stop-daemon --stop --quiet --retry=3 --pidfile $PIDFILE --name $NAME
+	RETVAL="$?"
+	[ "$RETVAL" = 2 ] && return 2
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+	#
+	# If the daemon can reload its configuration without
+	# restarting (for example, when it is sent a SIGHUP),
+	# then implement that here.
+	#
+	start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+	return 0
+}
+
+case "$1" in
+  start)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+	do_start
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  stop)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+	do_stop
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  #reload|force-reload)
+	#
+	# If do_reload() is not implemented then leave this commented out
+	# and leave 'force-reload' as an alias for 'restart'.
+	#
+	#log_daemon_msg "Reloading $DESC" "$NAME"
+	#do_reload
+	#log_end_msg $?
+	#;;
+  restart|force-reload)
+	#
+	# If the "reload" option is implemented then remove the
+	# 'force-reload' alias
+	#
+	log_daemon_msg "Restarting $DESC" "$NAME"
+	do_stop
+	case "$?" in
+	  0|1)
+		do_start
+		case "$?" in
+			0) log_end_msg 0 ;;
+			1) log_end_msg 1 ;; # Old process is still running
+			*) log_end_msg 1 ;; # Failed to start
+		esac
+		;;
+	  *)
+	  	# Failed to stop
+		log_end_msg 1
+		;;
+	esac
+	;;
+  *)
+	#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	exit 3
+	;;
+esac
+
+:
--- pcsc-lite-1.5.5.orig/debian/0comments
+++ pcsc-lite-1.5.5/debian/0comments
@@ -0,0 +1,22 @@
+# Configuration file for pcsc-lite Debian package
+# Ludovic Rousseau <rousseau@debian.org>
+#
+# Do NOT edit this file directly but use update-reader.conf(8) instead.
+#
+# If the driver you use support debconf (for example libgempc410 does) use
+#  'dpkg-reconfigure package-name' (dpkg-reconfigure libgempc410)
+#
+# If the driver you use DO NOT then create a NEW file under
+# /etc/reader.conf.d/ that will contain something like (without comment):
+#
+# FRIENDLYNAME   Any name
+# DEVICENAME     device filename used by the reader:
+#                /dev/ttyS0 for the first serial port
+#                or /dev/null if this is not used by the driver
+# LIBPATH        Location of the driver library for your reader
+# CHANNELID
+#             0x0103F8 or 1 for /dev/ttyS0 (COM1)
+#             0x0102F8 or 2 for /dev/ttyS1 (COM2)
+#             0x0103E8 or 3 for /dev/ttyS2 (COM3)
+#             0x0102E8 or 4 for /dev/ttyS3 (COM4)
+#
--- pcsc-lite-1.5.5.orig/debian/update-reader.conf.8
+++ pcsc-lite-1.5.5/debian/update-reader.conf.8
@@ -0,0 +1,56 @@
+.TH UPDATE-READER.CONF 8 "Debian GNU/Linux tools" "DEBIAN"
+.SH NAME
+update\-reader.conf \- (re)generate /etc/reader.conf
+.SH SYNOPSIS
+.B update\-reader.conf
+[force]
+.SH DESCRIPTION
+.B update\-reader.conf
+is a simple tool to manage
+.IR /etc/reader.conf .
+The PCSC daemon (pcscd) uses one configuration file for its
+configuration. This makes it hard for packages to dynamically add
+information about their own smart card reader drivers. To fix this
+.B
+update\-reader.conf
+has been introduced.
+.PP
+.B update-reader.conf
+attempts to fix this by generating the configuration file from separate
+files which are located in
+.IR /etc/reader.conf.d .
+All files in that directory are assembled together to form
+.IR /etc/reader.conf .
+.PP
+After generation a backup of the old file is put in
+.IR /etc/reader.conf.old .
+.SH "FILES"
+.B update\-reader.conf
+will ignore files that match the following regular expression:
+.RS
+.B *\e(\e.dpkg\-[a\-z]*\e|~\e)$
+.RE
+(ie files with the extension
+.IR .dpkg\-new ,
+.IR .dpkg\-orig ,
+.IR .dpkg\-dist ,
+.IR .dpkg\-old ,
+or whose filename end with a
+.IR ~ ).
+.SH OPTIONS
+.TP
+.I force
+.B update\-reader.conf
+check if the current
+.I /etc/reader.conf
+is a generated file by checking for a special tag on the first line. If this
+tag is not found generation is aborted. By supplying
+.I force
+as parameter only a warning is printed.
+.SH "SEE ALSO"
+.BR pcscd (1)
+.SH BUGS
+None of course! :)
+.SH AUTHOR
+This manual page was written by Ludovic Rousseau
+<ludovic.rousseau@free.fr> for the Debian GNU/Linux system.
--- pcsc-lite-1.5.5.orig/debian/control
+++ pcsc-lite-1.5.5/debian/control
@@ -0,0 +1,50 @@
+Source: pcsc-lite
+Section: misc
+Priority: extra
+Maintainer: Ludovic Rousseau <rousseau@debian.org>
+Build-Depends: debhelper (>= 7), flex, autotools-dev, libhal-dev
+Standards-Version: 3.8.4
+Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/pcsc-lite/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/collab-maint/deb-maint/pcsc-lite/trunk/
+Homepage: http://pcsclite.alioth.debian.org/
+
+Package: pcscd
+Architecture: any
+Depends: libccid | pcsc-ifd-handler, ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6), hal
+Conflicts: libccid (<= 1.0.0-1)
+Description: Middleware to access a smart card using PC/SC (daemon side)
+ The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
+ in a very small form factor for communicating to smart cards and
+ smart cards readers.
+ .
+ The PC/SC daemon is used to dynamically allocate/deallocate reader
+ drivers at runtime and manage connections to the readers.
+
+Package: libpcsclite-dev
+Section: libdevel
+Priority: optional
+Architecture: any
+Depends: libpcsclite1 (= ${binary:Version}), ${misc:Depends}
+Description: Middleware to access a smart card using PC/SC (development files)
+ The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
+ in a very small form factor for communicating to smart cards and
+ smart cards readers.
+ .
+ This package contains the files needed for compiling and linking
+ an application that communicates to any reader available to the
+ PC/SC daemon.
+
+Package: libpcsclite1
+Section: libs
+Priority: optional
+Architecture: any
+Conflicts: libpcsclite-dev (<< ${binary:Version}), pcscd (<< ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: pcscd
+Description: Middleware to access a smart card using PC/SC (library)
+ The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
+ in a very small form factor for communicating to smartcards and
+ readers.
+ .
+ The PC/SC Lite library is used to connect to the PC/SC daemon from
+ a client application and provide access to the desired reader.
--- pcsc-lite-1.5.5.orig/debian/pcscd.README.Debian
+++ pcsc-lite-1.5.5/debian/pcscd.README.Debian
@@ -0,0 +1,21 @@
+pcscd for Debian
+----------------
+
+pscsd starts before usbmgr
+==========================
+
+Up to version 1.0.2.beta5-1 pcscd init.d script was started *before*
+usbmgr (pcscd was level 20 (default) and usbmgr was level 45). So USB
+readers managed by usbmgr could not be used.
+
+Now pcscd is started after usbmgr (pcscd uses level 50) but if you
+upgraded from a earlier version you may still have the old
+configuration.
+
+You have to completely remove pcscd using 'dpkg --purge pcscd' or
+'apt-get remove --purge pcscd' and reinstall it (and the other packages
+depending in pcscd) after.
+
+See Debian bug #146151.
+
+ -- Ludovic Rousseau <rousseau@debian.org>, Sun Jun 30 14:16:50 CEST 2002
--- pcsc-lite-1.5.5.orig/debian/rules
+++ pcsc-lite-1.5.5/debian/rules
@@ -0,0 +1,122 @@
+#!/usr/bin/make -f
+# 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
+
+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
+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
+
+# see http://www.debian.org/doc/debian-policy/ch-files.html
+CFLAGS = -Wall -g -D_REENTRANT
+INSTALL = install
+INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
+INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
+INSTALL_SCRIPT  = $(INSTALL) -p    -o root -g root  -m  755
+INSTALL_DIR     = $(INSTALL) -p -d -o root -g root  -m  755
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	MAKEFLAGS += -j$(NUMJOBS)
+endif
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+
+	ln -sf /usr/share/misc/config.sub .
+	ln -sf /usr/share/misc/config.guess .
+	rm -f config.cache
+
+	# we add LDFLAGS="-lpthread" for bug #253629
+	./configure $(confflags) \
+		--enable-confdir=/var/lib/pcscd \
+		--prefix=/usr \
+		--enable-usbdropdir=/usr/lib/pcsc/drivers \
+		INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="-lpthread"
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	# Add here commands to clean up after the build process.
+	-test -e Makefile && \
+	  $(MAKE) distclean
+	rm -f conftest.c conftest.o
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp.
+	$(MAKE) install DESTDIR=`pwd`/debian/tmp
+	
+	# Move update-reader.conf files
+	install -m 755 debian/update-reader.conf `pwd`/debian/tmp/usr/sbin/
+	install -D -m 644 debian/0comments `pwd`/debian/tmp/etc/reader.conf.d/0comments
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_install --sourcedir=debian/tmp
+	dh_installdocs
+	dh_installexamples
+	# use 50 to start _after_ usbmgr with level 45 (see #146151)
+	dh_installinit --update-rcd-params="defaults 50"
+	dh_installman
+	dh_lintian
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs --version-info
+	dh_installdeb
+	dh_shlibdeps -l debian/tmp/usr/lib/
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
+
--- pcsc-lite-1.5.5.orig/debian/libpcsclite1.install
+++ pcsc-lite-1.5.5/debian/libpcsclite1.install
@@ -0,0 +1 @@
+usr/lib/libpcsclite.so.1*
--- pcsc-lite-1.5.5.orig/debian/libpcsclite-dev.install
+++ pcsc-lite-1.5.5/debian/libpcsclite-dev.install
@@ -0,0 +1,5 @@
+usr/include/PCSC/*
+usr/lib/libpcsclite.a
+usr/lib/libpcsclite.la
+usr/lib/libpcsclite.so
+usr/lib/pkgconfig/libpcsclite.pc
--- pcsc-lite-1.5.5.orig/debian/pcscd.dirs
+++ pcsc-lite-1.5.5/debian/pcscd.dirs
@@ -0,0 +1,4 @@
+usr/lib/pcsc/drivers
+usr/lib/pcsc/services
+usr/sbin
+usr/share/lintian/overrides
--- pcsc-lite-1.5.5.orig/debian/libpcsclite-dev.examples
+++ pcsc-lite-1.5.5/debian/libpcsclite-dev.examples
@@ -0,0 +1 @@
+doc/example/pcsc_demo.c
--- pcsc-lite-1.5.5.orig/debian/update-reader.conf
+++ pcsc-lite-1.5.5/debian/update-reader.conf
@@ -0,0 +1,115 @@
+#! /bin/bash
+#
+# This is the update-reader.conf script for Debian GNU/Linux.
+# Written by Ludovic Rousseau <ludovic.rousseau@free.fr>
+# Based on update-modules written by Wichert Akkerman <wakkerma@debian.org>
+# Copyright (C) 2001 Software in the Public Interest
+#
+
+#    This program 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 of the License, or
+#    (at your option) any later version.
+#
+#    This program 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 this program; if not, write to the Free Software
+#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+
+
+# $Id: update-reader.conf,v 1.4 2005-03-24 13:17:57 rousseau Exp $
+
+OLDCFGFILE=/etc/reader.conf
+CFGDIR=/var/lib/pcscd
+CFGFILE="$CFGDIR/reader.conf"
+TMPFILE=`mktemp /tmp/reader.conf.XXXXXX`
+HEADER="### This file is automatically generated by update-reader.conf"
+
+trap "rm -f $TMPFILE; exit" INT TERM EXIT
+set -e
+
+# Reset the sorting order since we depend on it
+LC_COLLATE=C
+export LC_COLLATE
+
+# Avoid side effects with LC_ALL. See #567764
+unset LC_ALL
+
+if [ 0 -ne "`id -u`" ]; then
+	echo "You have to be root to run $0"
+	exit 2
+fi
+
+if [ ! -d "$CFGDIR" ]; then
+	mkdir "$CFGDIR"
+fi
+
+if [ -e "$OLDCFGFILE" ]; then
+	echo "moving the old configuration file $OLDCFGFILE to its new location: $CFGFILE"
+	mv "$OLDCFGFILE" "$CFGFILE"
+	if [ -e "$OLDCFGFILE".old ]; then
+		mv "$OLDCFGFILE".old "$CFGFILE".old
+	fi
+fi
+
+needforce=0
+if [ -f "$CFGFILE" ]; then
+	FIRSTLINE=$(head -1 "$CFGFILE")
+	if [ "$FIRSTLINE" != "$HEADER" ]; then
+		#echo "new format or manual"
+		sha=$(echo "$FIRSTLINE" | cut -f2 -d' ')
+		#echo $sha
+		if [ ${#sha} -ne 40 ]; then
+			echo "Error: file $CFGFILE is not automatically generated."
+			needforce=1
+		else
+			sha2=$(tail --lines=+2 "$CFGFILE" | sha1sum | cut -f1 -d' ')
+			#echo $sha2
+			if [ $sha != $sha2 ]; then
+				echo "Error: file $CFGFILE was manually edited."
+				needforce=1
+			fi
+		fi
+	fi
+fi
+
+if [ "$1" = "force" ]; then
+	echo "force specified, (re)generating file anyway."
+	needforce=0
+fi
+
+if [ $needforce -eq 1 ]; then
+	echo "Use \"update-reader.conf force\" to force (re)generation."
+	exit 1
+fi
+
+if [ -e "$CFGFILE" ]; then
+  cp -f "$CFGFILE" "${CFGFILE}.old"
+fi
+
+for cfg in /etc/reader.conf.d/* ; do
+	if ! echo "$cfg" | grep -q '\(\.dpkg-[a-z]*\|~\)$' ; then
+		echo "### update-reader.conf: start processing $cfg" >> "$TMPFILE"
+		echo >> "$TMPFILE"
+		if [ -x "$cfg" ]; then
+			"$cfg" >> "$TMPFILE"
+		else
+			cat "$cfg" >> "$TMPFILE"
+		fi
+		echo >> "$TMPFILE"
+		echo "### update-reader.conf: end processing $cfg" >> "$TMPFILE"
+		echo >> "$TMPFILE"
+	fi
+done
+
+echo -n "#SHA1 " > "$CFGFILE"
+sha1sum "$TMPFILE" >> "$CFGFILE"
+cat "$TMPFILE" >> "$CFGFILE"
+chmod 644 "$CFGFILE"
+
+rm -f "$TMPFILE"
+
--- pcsc-lite-1.5.5.orig/debian/watch
+++ pcsc-lite-1.5.5/debian/watch
@@ -0,0 +1,6 @@
+# use uscan(1)
+version=3
+
+# Full-site-with-pattern  [Version  [Action]]
+http://alioth.debian.org/frs/?group_id=30105 \
+  https://alioth.debian.org/frs/download.php/.*/pcsc-lite-(.*)\.tar\.bz2
--- pcsc-lite-1.5.5.orig/debian/pcscd.manpages
+++ pcsc-lite-1.5.5/debian/pcscd.manpages
@@ -0,0 +1,3 @@
+debian/tmp/usr/share/man/man8/pcscd.8
+debian/tmp/usr/share/man/man5/reader.conf.5
+debian/update-reader.conf.8
--- pcsc-lite-1.5.5.orig/debian/copyright
+++ pcsc-lite-1.5.5/debian/copyright
@@ -0,0 +1,39 @@
+This package was debianized by Carlos Prados <cprados@debian.org> on
+Sat, 16 Dec 2000 15:06:55 +0100.
+
+It was downloaded from
+https://alioth.debian.org/project/showfiles.php?group_id=1225
+
+Upstream Authors: David Corcoran <corcoran@linuxnet.com>
+                  Ludovic Rousseau <ludovic.rousseau@free.fr>
+
+Copyright:
+
+Copyright (c) 1999-2003 David Corcoran <corcoran@linuxnet.com>
+All rights reserved.
+
+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 above 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. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+Changes to this license can be made only by the copyright author with
+explicit written consent.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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.
--- pcsc-lite-1.5.5.orig/debian/pcscd.postinst
+++ pcsc-lite-1.5.5/debian/pcscd.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# regenerate /etc/reader.conf
+if [ -x /usr/sbin/update-reader.conf ]; then
+  update-reader.conf || true;
+fi
+
+#DEBHELPER#
