--- pcsc-lite-1.2.9-beta6.orig/debian/0comments +++ pcsc-lite-1.2.9-beta6/debian/0comments @@ -0,0 +1,23 @@ +# Configuration file for pcsc-lite Debian package +# Ludovic Rousseau +# +# 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 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.2.9-beta6.orig/debian/changelog +++ pcsc-lite-1.2.9-beta6/debian/changelog @@ -0,0 +1,303 @@ +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 Sun, 15 Aug 2004 19:07:24 +0200 + +pcsc-lite (1.2.9-beta5-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Rousseau Fri, 16 Jul 2004 21:53:07 +0200 + +pcsc-lite (1.2.9-beta4-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Rousseau Sat, 3 Jul 2004 18:53:23 +0200 + +pcsc-lite (1.2.9-beta3-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Rousseau 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 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 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 Wed, 18 Feb 2004 23:00:05 +0100 + +pcsc-lite (1.2.0-stable-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Rousseau 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Wed, 4 Apr 2001 00:28:04 +0200 + + vim:ts=8 --- pcsc-lite-1.2.9-beta6.orig/debian/compat +++ pcsc-lite-1.2.9-beta6/debian/compat @@ -0,0 +1 @@ +3 --- pcsc-lite-1.2.9-beta6.orig/debian/control +++ pcsc-lite-1.2.9-beta6/debian/control @@ -0,0 +1,64 @@ +Source: pcsc-lite +Section: misc +Priority: extra +Maintainer: Ludovic Rousseau +Build-Depends: debhelper (>= 3), flex, autotools-dev, libusb-dev (>= 1:0.1.7) +Standards-Version: 3.6.1 + +Package: pcscd +Architecture: any +Priority: extra +Depends: libccid | pcsc-ifd-handler, ${shlibs:Depends} +Conflicts: libpcsclite0 (<< 1.2.0-rc1-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. + . + Also contains formaticc(1) to send one or more request APDU's to a + smarcard and get responses and bundleTool(8). + . + pcsc-lite is part of the MUSCLE project http://musclecard.com/ + . + Homepage: http://pcsclite.alioth.debian.org/ + +Package: libpcsclite-dev +Section: libdevel +Priority: optional +Architecture: any +Depends: libpcsclite1 (= ${Source-Version}) +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. + . + pcsc-lite is part of the MUSCLE project http://musclecard.com/ + . + Homepage: http://pcsclite.alioth.debian.org/ + +Package: libpcsclite1 +Section: libs +Priority: optional +Architecture: any +Conflicts: libpcsclite-dev (<< ${Source-Version}), pcscd (<< ${Source-Version}) +Depends: ${shlibs:Depends} +Recommends: 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 is part of the MUSCLE project http://musclecard.com/ + . + Homepage: http://pcsclite.alioth.debian.org/ + --- pcsc-lite-1.2.9-beta6.orig/debian/copyright +++ pcsc-lite-1.2.9-beta6/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Carlos Prados 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 + Ludovic Rousseau + +Copyright: + +Copyright (c) 1999-2003 David Corcoran +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.2.9-beta6.orig/debian/libpcsclite-dev.docs +++ pcsc-lite-1.2.9-beta6/debian/libpcsclite-dev.docs @@ -0,0 +1,3 @@ +doc/ifdhandler-3.pdf +doc/muscle-api-1.3.0.pdf +doc/pcsc-lite.pdf --- pcsc-lite-1.2.9-beta6.orig/debian/libpcsclite-dev.examples +++ pcsc-lite-1.2.9-beta6/debian/libpcsclite-dev.examples @@ -0,0 +1 @@ +doc/example/pcsc_demo.c --- pcsc-lite-1.2.9-beta6.orig/debian/libpcsclite-dev.install +++ pcsc-lite-1.2.9-beta6/debian/libpcsclite-dev.install @@ -0,0 +1,9 @@ +usr/include/PCSC/* +usr/lib/libmusclecard.a +usr/lib/libmusclecard.la +usr/lib/libmusclecard.so +usr/lib/libpcsclite.a +usr/lib/libpcsclite.la +usr/lib/libpcsclite.so +usr/lib/pkgconfig/libpcsclite.pc +usr/lib/pkgconfig/libmusclecard.pc --- pcsc-lite-1.2.9-beta6.orig/debian/libpcsclite1.install +++ pcsc-lite-1.2.9-beta6/debian/libpcsclite1.install @@ -0,0 +1,2 @@ +usr/lib/libmusclecard.so.1* +usr/lib/libpcsclite.so.1* --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.README.Debian +++ pcsc-lite-1.2.9-beta6/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 , Sun Jun 30 14:16:50 CEST 2002 --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.dirs +++ pcsc-lite-1.2.9-beta6/debian/pcscd.dirs @@ -0,0 +1,3 @@ +usr/lib/pcsc/drivers +usr/lib/pcsc/services +usr/sbin --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.docs +++ pcsc-lite-1.2.9-beta6/debian/pcscd.docs @@ -0,0 +1,3 @@ +README +SECURITY +DRIVERS --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.init +++ pcsc-lite-1.2.9-beta6/debian/pcscd.init @@ -0,0 +1,86 @@ +#! /bin/sh +# +# /etc/init.d/pcscd +# Start/Stop/Restart PCSC Lite resource manager daemon +# +# Carlos Prados Bocos +# modifications by Ludovic Rousseau + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +NAME=pcscd +DAEMON=/usr/sbin/$NAME +DESC="PCSC Lite resource manager" + +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Gracefully exit if the package has been removed (but not purged). +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: $NAME" + # if the daemon is already running we REstart it + if [ -f $PIDFILE ]; then + echo " already running." + $0 restart + else + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- --debug syslog + echo "." + fi + ;; + + stop) + echo -n "Stopping $DESC: $NAME" + start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \ + --name $NAME + echo "." + ;; + + restart|force-reload) + echo -n "Restarting $DESC: $NAME" + start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \ + --exec $DAEMON + sleep 2 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- --debug syslog + echo "." + ;; + + restart-if-running) + echo -n "Restarting $DESC if it is running: $NAME" + if $0 status &> /dev/null + then + echo "." + $0 restart + else + echo " (not running)." + fi + ;; + + status) + if [ -e $PIDFILE ] ; then + if ps -p $(cat $PIDFILE) &> /dev/null ; then + echo "running" + exit 0 + else + echo "not running and $PIDFILE exists" + exit 1 + fi + else + echo "not running" + exit 3 + fi + ;; + + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|restart-if-running|status}" >&2 + exit 1 + ;; +esac + +exit 0 + --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.install +++ pcsc-lite-1.2.9-beta6/debian/pcscd.install @@ -0,0 +1,5 @@ +etc/reader.conf.d/0comments +usr/bin/formaticc +usr/sbin/bundleTool +usr/sbin/pcscd +usr/sbin/update-reader.conf --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.manpages +++ pcsc-lite-1.2.9-beta6/debian/pcscd.manpages @@ -0,0 +1,4 @@ +debian/update-reader.conf.8 +doc/bundleTool.8 +doc/formaticc.1 +doc/pcscd.8 --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.postinst +++ pcsc-lite-1.2.9-beta6/debian/pcscd.postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +# regenerate /etc/reader.conf +if [ -x /usr/sbin/update-reader.conf ]; then + /usr/sbin/update-reader.conf || true; +fi + +# clean /tmp/pcsc +# This should not be necessary. But in case the directory exists the +# pcscd daemon would not start +#PCSC_DIR=/tmp/pcsc +#if [ -d $PCSC_DIR ]; then +# rm -rf $PSC_DIR +#fi + +#DEBHELPER# --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.postinst.lintian_override +++ pcsc-lite-1.2.9-beta6/debian/pcscd.postinst.lintian_override @@ -0,0 +1 @@ +pcscd: possibly-insecure-handling-of-tmp-files-in-maintainer-script postinst --- pcsc-lite-1.2.9-beta6.orig/debian/pcscd.postrm +++ pcsc-lite-1.2.9-beta6/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.2.9-beta6.orig/debian/rules +++ pcsc-lite-1.2.9-beta6/debian/rules @@ -0,0 +1,130 @@ +#!/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 + +CFLAGS += -O2 -D_REENTRANT # -pthread +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +version := $(shell dpkg-parsechangelog | \ + sed -ne 's/^Version: *\([0-9]\+:\)*//p') + +tag: + cvs tag -c -F $(subst .,_,debian_version_$(version)) + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + ./configure $(confflags) --prefix=/usr --enable-confdir=/etc \ + --enable-debug \ + --enable-threadsafe --enable-runpid=/var/run/pcscd.pid \ + --enable-usbdropdir=/usr/lib/pcsc/drivers \ + --enable-muscledropdir=/usr/lib/pcsc/services \ + --enable-ipcdir=/var/run \ + --sysconfdir=/etc \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="-lpthread" \ + INSTALL_PROGRAM="$(INSTALL_PROGRAM)" + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + if [ -e Makefile ] ; then \ + $(MAKE) distclean ; fi + rm -f conftest conftest.c conftest.o + -test -r /usr/share/misc/config.sub && \ + cp -f /usr/share/misc/config.sub config.sub + -test -r /usr/share/misc/config.guess && \ + cp -f /usr/share/misc/config.guess config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install prefix=`pwd`/debian/tmp/usr sysconfdir=`pwd`/debian/tmp/etc + + # 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 + + #install -m644 debian/pcscd.postinst.lintian_override `pwd`/debian/pcscd/usr/share/lintian/overrides/pcscd + + +# 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_installdebconf + dh_installdocs + dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam + # use 50 to start _after_ usbmgr with level 45 (see #146151) + dh_installinit --update-rcd-params="defaults 50" +# dh_installcron + dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister + dh_makeshlibs --version-info + dh_installdeb +# dh_perl + 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.2.9-beta6.orig/debian/update-reader.conf +++ pcsc-lite-1.2.9-beta6/debian/update-reader.conf @@ -0,0 +1,77 @@ +#! /bin/sh +# +# This is the update-reader.conf script for Debian GNU/Linux. +# Written by Ludovic Rousseau +# Based on update-modules written by Wichert Akkerman +# 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.3 2004/08/10 16:21:50 rousseau Exp $ + +CFGFILE=/etc/reader.conf +TMPFILE=`mktemp /tmp/reader.conf.XXXXXX` +HEADER="### This file is automatically generated by update-reader.conf" + +set -e + +# Reset the sorting order since we depend on it +LC_COLLATE=C +export LC_COLLATE + +if [ -f $CFGFILE ]; then + if ! sed -ne 1p $CFGFILE | grep -q "^$HEADER" ; then + echo "Error: the current $CFGFILE is not automatically generated." + if [ "$1" != "force" ]; then + echo "Use \"update-reader.conf force\" to force (re)generation." + exit 1 + else + echo "force specified, (re)generating file anyway." + fi + fi +fi + +if [ 0 -ne "`id -u`" ]; then + echo "You have to be root to run $0" + exit 2 +fi + +if [ -e $CFGFILE ]; then + cp -f $CFGFILE ${CFGFILE}.old +fi + +echo $HEADER > $TMPFILE + +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 + 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 + +cp $TMPFILE $CFGFILE +chmod 644 $CFGFILE + +rm -f $TMPFILE + --- pcsc-lite-1.2.9-beta6.orig/debian/update-reader.conf.8 +++ pcsc-lite-1.2.9-beta6/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 seperate +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 + for the Debian GNU/Linux system. --- pcsc-lite-1.2.9-beta6.orig/debian/watch +++ pcsc-lite-1.2.9-beta6/debian/watch @@ -0,0 +1,8 @@ +# use uscan(1) +# format version number, currently 2; this line is compulsory! +version=2 + +# Full-site-with-pattern [Version [Action]] +#http://www.linuxnet.com/ /middleware/files/ pcsc-lite-(.*)\.tar\.gz debian uupdate +http://alioth.debian.org/project/showfiles.php?group_id=1225 \ + /download.php/.*/pcsc-lite-(.*)\.tar\.gz