--- libchipcard-4.1.3.orig/debian/libchipcardd0.docs +++ libchipcard-4.1.3/debian/libchipcardd0.docs @@ -0,0 +1 @@ +README --- libchipcard-4.1.3.orig/debian/copyright +++ libchipcard-4.1.3/debian/copyright @@ -0,0 +1,42 @@ +Initially this package was debianized by Thomas Viehmann on +Mon, 9 Aug 2004 21:57:32 +0200. Since summer 2007 the package is actively +maintained by Micha Lenk with the help of Georg W. Leonhardt +. + +It was downloaded from http://sf.net/projects/libchipcard/ +See also http://www.libchipcard.de/ + +Upstream Author: Martin Preuss + +Copyright: (c) 2003, 2004, 2005, 2006, 2007 by Martin Preuss + +Libchipcard is licensed under the GNU LGPL (see below). + +As the copyright holder of Libchipcard, Martin Preuss grants the following +license exception: + +Martin Preuss explicitly allows the compilation and distribution of +Libchipcard with the OpenSSL Toolkit. +No developer is required to provide this exception in a derived work. + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation as + version 2.1. + + This package 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; 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 Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + +The Debian packaging is (C) 2007, Micha Lenk and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- libchipcard-4.1.3.orig/debian/README.Debian +++ libchipcard-4.1.3/debian/README.Debian @@ -0,0 +1,21 @@ +Notes for libchipcard +===================== + +Device Permissions +------------------ + +The chipcard daemon (chipcardd4) is run as the non-privileged user +chipcard. By default, it is in the group dialout and thus has access +to the serial and ttyUSB ports. Some readers are directly interfaced +via USB devices without tty emulation. For those libchipcard-tools +provides udev scripts setting the the group to chipcard. Unfortunately, +some driver packages, notably those for Reiner SCT CyberJack ship +conflicting rules. You may want to check the permissions and your +installed driver package if you have trouble accessing the reader +despite correct recognition by chipcardd. For the CyberJack readers, +look at /etc/udev/rules.d/z80cyberjack.rules. +Unfortunately, the error messages are not always clear. + +Unfortunately, the package chipcard-tools from libchipcard 1.x (shipped +with Debian 3.1 (sarge) releases prior to r2), removes this user. If +this happens, please reinstall libchipcard-tools. --- libchipcard-4.1.3.orig/debian/libchipcardc2.install +++ libchipcard-4.1.3/debian/libchipcardc2.install @@ -0,0 +1,2 @@ +usr/lib/libchipcardc.so.* +usr/share/bug/libchipcardc2 --- libchipcard-4.1.3.orig/debian/changelog +++ libchipcard-4.1.3/debian/changelog @@ -0,0 +1,435 @@ +libchipcard (4.1.3-2ubuntu1) jaunty; urgency=low + + * debian/rules: Generate udev rules to a file debhelper can pick up + * debian/libchipcard-tools.dirs: No need to create directories + * debian/libchipcard-tools.preinst: Remove the symlink on upgrade, + remove old rules files unless changed in which case rename it. + * debian/libchipcard-tools.postinst: Don't create symlink + * debian/libchipcard-tools.postrm: No need to remove symlink + * Bump build-depend on debhelper to install udev rules into + /lib/udev/rules.d, add Breaks on udev to get correct version. + + -- Scott James Remnant Tue, 13 Jan 2009 15:08:43 +0000 + +libchipcard (4.1.3-2) unstable; urgency=low + + * libchipcard-tools: Remove stale IPC socket file in postrm script on purge + (closes: #495452). + + -- Micha Lenk Sun, 17 Aug 2008 22:38:29 +0200 + +libchipcard (4.1.3-1) unstable; urgency=low + + * New upstream release + + -- Micha Lenk Wed, 09 Jul 2008 17:59:44 +0200 + +libchipcard (4.1.2-1) unstable; urgency=low + + * New upstream release + + -- Micha Lenk Sat, 05 Jul 2008 12:21:08 +0200 +libchipcard (4.1.1-1) unstable; urgency=low + + * New upstream release + + -- Micha Lenk Wed, 18 Jun 2008 18:31:41 +0200 + +libchipcard (4.1.0-2) unstable; urgency=low + + * Add udev rule for the new driver of O2Micro Smart Card readers + (closes: #486166). + * Bump standards version (no changes needed). + * Add bug scripts providing the output of command "chipcard-tool list" in + bug reports if chipcard-tool is installed. + * Remove Georg Leonhard from uploaders. Further contributions are still + welcome, but co-responsibility for a package needs more action. + + -- Micha Lenk Tue, 17 Jun 2008 15:51:28 +0200 + +libchipcard (4.1.0-1) unstable; urgency=low + + * New upstream release + - drop all patches (included upstream) and dpatch. + * Make package libchipcard-dev arch:any until wanna-build is able to handle + arch:all -dev packages properly. + + -- Micha Lenk Thu, 29 May 2008 15:07:45 +0200 + +libchipcard (4.0.0-5) unstable; urgency=low + + * Replace dpkg-statoverride by chown call (closes: #459355). + This requires debian/libchipcard-tools.postinst script to handle some + situations sensively: + - the old statoverrides are removed on upgrades from previous versions + - the ownership of the affected directories will only be changed if no + corresponding statoverride exists. + * Enable dpatch and add following patches: + - help-on-stdout_fix_346556: Lets libchipcard-tools output its help on + stdout, not stderr (closes: #346556) + - cardcommander-exitcode-fix_355114: Lets cardcommander return with zero + exitcode upon normal quit (closes: #355114) + - cardcommander-segfault-fix_364804: Fixes a segfault on empty input from + STDIN (closes: #364804). + * change section of package libchipcard-dev from devel to libdevel as + suggested by lintian. + + -- Micha Lenk Mon, 11 Feb 2008 09:35:27 +0100 + +libchipcard (4.0.0-4) unstable; urgency=low + + * Bump standards version from 3.7.2 to 3.7.3 (no changes needed). + * Add Vcs-{Svn,Browser} fields. + * Adapt debian/watch file to new download location (closes: #456484). + * Add upsteam homepage field. + + -- Micha Lenk Wed, 2 Jan 2008 18:52:53 +0100 + +libchipcard (4.0.0-3) unstable; urgency=medium + + * Let the client and server libraries recommend the daemon package + libchipcard-tools. Most users installing these libraries want the daemon + package too. + * Let all library packages depend on libchipcard3-data. Otherwise missing + data files can cause segfaults. Thus increased urgency medium. + + -- Micha Lenk Thu, 29 Nov 2007 20:55:34 +0100 + +libchipcard (4.0.0-2) unstable; urgency=low + + * Release package to Debian unstable. + * Remove invalid option --store-all-certs from DAEMON_ARGS in init script. + * Install configuration files to correct location /etc/chipcard/server and + /etc/chipcard/client. + + -- Micha Lenk Mon, 26 Nov 2007 19:25:34 +0100 + +libchipcard (4.0.0-1) experimental; urgency=low + + * New upstream release + * debian/control: Allow uploads by Debian Maintainers of this package + * build depend on libgwenhywfar >= 3.0.0-2~, which is the first version + shipping without troublesome libgwenhywfar.la (really fixes #451582) + + -- Micha Lenk Sat, 24 Nov 2007 14:43:08 +0100 + +libchipcard (3.9.6~beta-1) experimental; urgency=low + + * New upstream release + * Tighten build-depends on libgwenhywfar as required by configure + * Update debian/copyright to reflect upstream's switch from GPL to LGPL + (and add some minor important packaging history) + + -- Micha Lenk Sun, 4 Nov 2007 20:21:22 +0100 + +libchipcard (3.9.4~beta-1) experimental; urgency=low + + * New upstream release. This is a complete rewrite of libchipcard, cleaning + up the code base and making it fit for future use with SECCOS chipcards. + * Rename source package. It's not required any more to be installable in + parallel with future versions. + * Rename binary packages according to renamed library names and bumped + soname. + + -- Micha Lenk Wed, 31 Oct 2007 22:54:09 +0100 + +libchipcard3 (3.0.3-1) unstable; urgency=low + + [ Georg W. Leonhardt ] + * New upstream release + * debian/rules: Add DEB_DH_INSTALL_SOURCEDIR=$(CURDIR)/debian/tmp and + clean up the *.install files accordingly. + * Adding myself to uploaders + * debian/compat: bump debhelper compat to 5, changed behaviour + doesn't affect the package. + + [ Micha Lenk ] + * Remove conflicts and replace depends to libchipcard3c1 and + libchipcard3-1c102: As ftp-master pointed out these packages have never + been in the archive, hence these depends are unneccessary. + + -- Micha Lenk Fri, 10 Aug 2007 01:27:30 +0200 + +libchipcard3 (3.0.2-5) unstable; urgency=low + + * first upload of libchipcard3 to Debian unstable (closes: #433647) + * Add udev rule for O2Micro SmartCardBus Reader device + * debian/control: + - Introduce a package for every single shared library. This is needed + because the sonames apparently don't change consistently. This makes a + lintian override file unnecessary as all libraries now match their + package names. + - switch from deprecated substvar ${Source-Version} to ${source:Version} + * debian/rules: add clean target hook deleting symlinks generated during builds. + + -- Micha Lenk Thu, 19 Jul 2007 17:32:13 +0200 + +libchipcard3 (3.0.2-4) experimental; urgency=low + + * Fix udev script. + + -- Micha Lenk Tue, 27 Mar 2007 17:02:09 +0200 + +libchipcard3 (3.0.2-3) experimental; urgency=low + + * Use my own configuration files as default config files based on upstream's + examples. This differs in changing default socket path to + /var/run/chipcard3/chipcard3.comm as needed against file ownership issues. + + -- Micha Lenk Tue, 27 Mar 2007 05:59:34 +0200 + +libchipcard3 (3.0.2-2) experimental; urgency=low + + * package libchipcard3-1: + - drop bogus conflicts/replaces to itself + - bump soname of libchipcard3c in libchipcard3-1.shlibs + * debian/libchipcard3-tools.dirs: + - update to libchipcard3's directory layout + * debian/rules: + - cleanup file removals in clean target (artefacts of libchipcard2) + * install upstream config file examples as default + * disable some lintian warnings which have previously been disabled in + libchipcard2 too. + + -- Micha Lenk Tue, 13 Mar 2007 22:21:04 +0100 + +libchipcard3 (3.0.2-1) experimental; urgency=low + + * New upstream release + The new upstream release should be installable parallel to libchipcard2. + Thus renamed source package and all binary packages accordingly. + + -- Micha Lenk Tue, 13 Mar 2007 19:44:19 +0100 + +libchipcard2 (2.1.9-2) unstable; urgency=high + + * Rewrite udev rules generator to prevent wrong record showing up. + In particular this fixes granting permissions to too many devices. + (Thus urgency high) + - remove MODE statements during the rewrite at Marco d'Itri's + suggestion. (Thanks) + + -- Thomas Viehmann Wed, 18 Oct 2006 00:01:23 +0200 + +libchipcard2 (2.1.9-1) unstable; urgency=low + + * New upstream release + - PCMCIA scanning is enabled. Closes: #366445, #380062 + * Include udev rules for rawUSB readers. Closes: #380248 + Thanks to Seiden Tiger for an ad-hoc script preparing the list. + * Document permission problems. in particular with CyberJack and + after purging of chipcard-tools from sarge r0 and r1. + Closes: #373595, #346527. + * Make dependency of -dev package binNMU-safe. + + -- Thomas Viehmann Fri, 29 Sep 2006 22:10:04 +0200 + +libchipcard2 (2.1.7-2) unstable; urgency=low + + * Bump build-depends + * Add watch file + * New standards version, no changes necessary. + + -- Thomas Viehmann Wed, 26 Jul 2006 16:09:09 +0200 + +libchipcard2 (2.1.7-1) unstable; urgency=low + + * New upstream release + - fixes error in PIN input. Closes: #378639 + * Bump shlibs. + + -- Micha Lenk Wed, 19 Jul 2006 03:26:13 +0200 + +libchipcard2 (2.1.6-1) unstable; urgency=low + + [ Thomas Viehmann ] + * debian/rules: move DEB_CONFIGURE_EXTRA_FLAGS to where they work. + + [ Micha Lenk ] + * New upstream release + - supports Debian's libccid. Closes: #355281 + - fixes bug in CTAPI interface. Closes: #366458 + * Bump shlibs. + + -- Micha Lenk Fri, 30 Jun 2006 14:00:32 +0200 + +libchipcard2 (2.1.4-1) unstable; urgency=low + + * New upstream release + - fixes libsysfs2-support + - chipcardd2 will run properly without a config section ServiceManager + (though it will notice in the logs). Closes: #341105 + - chipcardd2 addreader --dtype list works again. Closes: #344632 + * Bump shlibs + + -- Thomas Viehmann Fri, 5 May 2006 09:47:19 +0200 + +libchipcard2 (2.1.3-1) unstable; urgency=low + + * New upstream release + - changes for libsysfs2 have been adopted by upstream + * Tweaked build-dep on libgwenhywfar as required by configure + * Bump shlibs + + -- Micha Lenk Tue, 28 Mar 2006 19:51:27 +0200 + +libchipcard2 (1.9.19.99+1.9.20beta-3) unstable; urgency=low + + * Don't install config examples in /etc. Closes: #346558 + * Fix URL in copyright file. Closes: #354402 + Thanks to Joerg Sommer the bug reports. + * Move to libsysfs2. Closes: #347632 + * Added closes for new upstream version in -1 (isn't uploaded yet). + * Update FSF address. + + -- Thomas Viehmann Sun, 26 Feb 2006 13:43:49 +0100 + +libchipcard2 (1.9.19.99+1.9.20beta-2) unstable; urgency=low + + * Rename package libchipcard2-libgwenhywfar17-plugins to + libchipcard2-libgwenhywfar38-plugins due to changed soname of + libgwenhywfar. + * Adding myself as Co-Maintainer. + + -- Micha Lenk Sat, 25 Feb 2006 21:22:34 +0100 + +libchipcard2 (1.9.19.99+1.9.20beta-1) unstable; urgency=low + + * New upstream release. Closes: #350564 + * Recreate /var/run/chipcard2 in init script if necessary + (for tmpfs-mounted /var/run) + * Do not delete user on purge + + -- Thomas Viehmann Mon, 30 Jan 2006 13:33:35 +0100 + +libchipcard2 (1.9.15.99+1.9.16alpha-1) unstable; urgency=low + + * New upstream release + * Add LSB init script comments + * Adjust Priorities in debian/control to reflect the more + widespread use + + -- Thomas Viehmann Wed, 2 Nov 2005 17:30:35 +0100 + +libchipcard2 (1.9.14.99+1.9.15beta-1) unstable; urgency=low + + * New upstream release + + -- Thomas Viehmann Mon, 29 Aug 2005 22:04:13 +0200 + +libchipcard2 (1.9.13.99+1.9.14beta-1) unstable; urgency=low + + * New upstream release + * Added shlibs file + + -- Thomas Viehmann Tue, 23 Aug 2005 23:24:15 +0200 + +libchipcard2 (1.9.12.99+1.9.13beta-1) unstable; urgency=low + + * New upstream release + * Added package for the plugins to libgwenhywfar + * Policy compliance is at 3.6.2 (no changes) + * Added lintian-overrides for irrelevant warnings + + -- Thomas Viehmann Sat, 20 Aug 2005 22:19:59 +0200 + +libchipcard2 (1.9.11.99+1.9.12beta-6) unstable; urgency=low + + * Add Conflicts/Replaces. + + -- Thomas Viehmann Thu, 4 Aug 2005 15:18:37 +0200 + +libchipcard2 (1.9.11.99+1.9.12beta-5) unstable; urgency=low + + * C++-Transition. + + -- Thomas Viehmann Tue, 26 Jul 2005 14:14:15 +0200 + +libchipcard2 (1.9.11.99+1.9.12beta-4) unstable; urgency=low + + * Bump arm build-dependency for libusb to fix arm problem. + Thanks to Aurelien Jarno for the detailed instructions in the + bug report. Although this is a grave bug, urgency is low because + sarge is not concerned, libchipcard2 isn't in sarge. + Closes: #308614 + + -- Thomas Viehmann Thu, 12 May 2005 12:05:09 +0200 + +libchipcard2 (1.9.11.99+1.9.12beta-3) unstable; urgency=low + + * Fix short description for libchipcard2-0. Thanks to Marcin Orlowski + for pointing out the error. Closes: #303858. + * Add note about automatic USB reader detection and Linux 2.4 to + README.Debian. + * Change priority to extra. + + -- Thomas Viehmann Wed, 20 Apr 2005 18:31:43 +0200 + +libchipcard2 (1.9.11.99+1.9.12beta-2) unstable; urgency=low + + * Added README.Debian about relation to libchipcard. + + -- Thomas Viehmann Wed, 6 Apr 2005 19:51:39 +0200 + +libchipcard2 (1.9.11.99+1.9.12beta-1) unstable; urgency=low + + * New upstream release + + -- Thomas Viehmann Tue, 29 Mar 2005 09:47:42 +0200 + +libchipcard2 (1.9.10.99+1.9.11beta-1) unstable; urgency=low + + * New upstream release + * Added license exception to debian/copyright. Thanks Martin! + * Add versioned libgwenhywfar build-dependency. + + -- Thomas Viehmann Sat, 19 Mar 2005 14:05:25 +0100 + +libchipcard2 (1.9.8.99+1.9.9beta-1) unstable; urgency=low + + * New upstream release + * Merged chipcard2-server into libchipcard2-tools. + + -- Thomas Viehmann Mon, 31 Jan 2005 18:09:28 +0100 + +libchipcard2 (1.9.6.99+1.9.7beta+cvs.20050125.4-1) unstable; urgency=low + + * New upstream release + + -- Thomas Viehmann Sat, 29 Jan 2005 23:37:04 +0100 + +libchipcard2 (1.9.6.99+1.9.7beta+cvs.20050125.3-1) unstable; urgency=low + + * New upstream release + + -- Thomas Viehmann Sat, 29 Jan 2005 22:42:39 +0100 + +libchipcard2 (1.9.6.99+1.9.7beta+cvs.20050125.2-2) unstable; urgency=low + + * Did stuff + + -- Thomas Viehmann Sat, 29 Jan 2005 21:32:17 +0100 + +libchipcard2 (1.9.6.99+1.9.7beta+cvs.20050125.2-1) unstable; urgency=low + + * New upstream release + + -- Thomas Viehmann Sat, 29 Jan 2005 21:14:39 +0100 + +libchipcard2 (1.9.6.99+1.9.7beta+cvs.20050125-1) unstable; urgency=low + + * CVS Sync. + + -- Thomas Viehmann Tue, 25 Jan 2005 16:07:08 +0100 + +libchipcard2 (1.9.6.99.1.9.7beta+cvs.20050120-1) unstable; urgency=low + + * New upstream release + + -- Thomas Viehmann Thu, 20 Jan 2005 15:07:05 +0100 + +libchipcard2 (1.9.6.99.1.9.7beta+cvs.20050112-1) unstable; urgency=low + + * Repackaged after merge. + + -- Thomas Viehmann Thu, 13 Jan 2005 18:17:17 +0100 --- libchipcard-4.1.3.orig/debian/generate_udev_list.sh +++ libchipcard-4.1.3/debian/generate_udev_list.sh @@ -0,0 +1,18 @@ +#!/bin/sh +echo 'ACTION!="add", GOTO="libchipcard_rules_end"' +echo 'SUBSYSTEM!="usb_device", GOTO="libchipcard_rules_end"' +find data/drivers/ -name \*.xml -and -exec cat '{}' ';' | \ + gawk 'BEGIN { RS="[<>][ \t\n]*" ; FS="[ \t\n>]+" ; IGNORECASE=1 } ; + /^reader[ \t\n]+.*busType="UsbRaw"/ { + split("",da) ; + for (i=1; i<=NF; i++) { match($i, /^([^=]*)="([^"]*)"/ , arr) ; da[arr[1]]=arr[2] } ; + if (da["vendor"] && da["product"]) { + sub(/^0x/,"",da["vendor"]); + sub(/^0x/,"",da["product"]); + print "SYSFS{idVendor}==\"" da["vendor"] "\", SYSFS{idProduct}==\"" da["product"] "\", GROUP=\"chipcard\"" + } + }' +echo 'LABEL="libchipcard_rules_end"' +echo 'KERNEL=="cmm0", SUBSYSTEM=="cardman_4000", GROUP="chipcard"' +echo 'KERNEL=="ozscrlx", SUBSYSTEM=="ozscrlx", GROUP="chipcard"' +echo 'KERNEL=="o2scr0", SUBSYSTEM=="ozscrlx", GROUP="chipcard"' --- libchipcard-4.1.3.orig/debian/libchipcard-tools.postinst +++ libchipcard-4.1.3/debian/libchipcard-tools.postinst @@ -0,0 +1,84 @@ +#! /bin/sh +# postinst script for chipcard-tools +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + + +case "$1" in + configure) + + if ! getent passwd | grep -q "^chipcard:" ; then + echo "Adding chipcard-tools daemon account to the system..." + adduser --quiet --system --home /var/run/chipcard --group \ + --disabled-login --disabled-password --no-create-home \ + --gecos "Chipcard-Tools Daemon Account" chipcard + fi + if ! getent group | grep -q "^dialout:.*\bchipcard\b" ; then + echo "Adding chipcard-tools daemon account to dialout group..." + adduser --quiet chipcard dialout + fi + + # are we upgrading from libchipcard prior to 4.0.0-5? + upgrade_from_statoverride_using_version=0 + if dpkg --compare-versions "$2" lt 4.0.0-5 && ! test -z "$2" ; then + upgrade_from_statoverride_using_version=1 + fi + + # handle the following directories' ownerships + for a_chipcard_dir in /var/run/chipcard \ + /var/log/chipcard \ + /var/log/chipcard/drivers \ + /var/log/chipcard/services \ + /var/lib/chipcard \ + /var/lib/chipcard/newcerts ; do + + # if we are upgrading from a bad version, remove the statoverride + if [ "$upgrade_from_statoverride_using_version" = "1" ] ; then + dpkg-statoverride --remove $a_chipcard_dir >/dev/null 2>&1 || true + fi + + # change ownership ONLY IF NO dpkg-statoverride exists + if ! dpkg-statoverride --list $a_chipcard_dir >/dev/null ; then + chown chipcard:root $a_chipcard_dir + fi + done + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- libchipcard-4.1.3.orig/debian/libchipcard-libgwenhywfar47-plugins.lintian-overrides +++ libchipcard-4.1.3/debian/libchipcard-libgwenhywfar47-plugins.lintian-overrides @@ -0,0 +1,4 @@ +libchipcard-libgwenhywfar47-plugins: package-name-doesnt-match-sonames ddvcard0 starcoscard0 +# this needs to be fixed in debhelper +libchipcard-libgwenhywfar47-plugins: postinst-has-useless-call-to-ldconfig +libchipcard-libgwenhywfar47-plugins: postrm-has-useless-call-to-ldconfig --- libchipcard-4.1.3.orig/debian/libchipcard-tools.dirs +++ libchipcard-4.1.3/debian/libchipcard-tools.dirs @@ -0,0 +1,6 @@ +/var/log/chipcard +/var/log/chipcard/drivers +/var/log/chipcard/services +/var/run/chipcard +/var/lib/chipcard +/var/lib/chipcard/newcerts --- libchipcard-4.1.3.orig/debian/libchipcard-data.install +++ libchipcard-4.1.3/debian/libchipcard-data.install @@ -0,0 +1,4 @@ +usr/share/chipcard +usr/share/doc/libchipcard-data +etc/chipcard/server/chipcardd.conf +etc/chipcard/client/chipcardc.conf --- libchipcard-4.1.3.orig/debian/libchipcard-tools.init +++ libchipcard-4.1.3/debian/libchipcard-tools.init @@ -0,0 +1,78 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: chipcardd +# Required-Start: $syslog $remote_fs $local_fs $network +# Required-Stop: $syslog $remote_fs $local_fs $named +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: daemon for smartcard access +# Description: server that libchipcard-based program can +# connect to +### END INIT INFO +# +# NOTE: The above assumes unix sockets are used (otherwise $network and +# $named might be wanted) +# +# Start and stop chipcardd, adapted by packager from skeleton by: +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/chipcardd4 +PIDFILE=/var/run/chipcard/chipcardd4.pid +DAEMON_ARGS="--pidfile $PIDFILE --exit-on-error" +NAME=chipcardd4 +DESC="libchipcard daemon" + +test -x $DAEMON || exit 0 + +set -e + +check_var_run() { + if [ ! -d /var/run/chipcard ] ; then + mkdir -p /var/run/chipcard + chown chipcard /var/run/chipcard + fi +} + +case "$1" in + start) + echo -n "Starting $DESC: " + check_var_run + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --user chipcard --chuid chipcard \ + --exec $DAEMON -- $DAEMON_ARGS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --user chipcard --exec $DAEMON + echo "$NAME." + ;; + reload) + echo "Reloading $DESC configuration files." + start-stop-daemon --stop --signal 1 --quiet --pidfile \ + $PIDFILE --exec $DAEMON + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --user chipcard --exec $DAEMON + sleep 1 + check_var_run + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --user chipcard --chuid chipcard --exec $DAEMON -- $DAEMON_ARGS + echo "$NAME." + ;; + *) + N=$0 + echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- libchipcard-4.1.3.orig/debian/libchipcard-ctapi0.install +++ libchipcard-4.1.3/debian/libchipcard-ctapi0.install @@ -0,0 +1 @@ +usr/lib/libchipcard_ctapi.so.* --- libchipcard-4.1.3.orig/debian/libchipcard-tools.preinst +++ libchipcard-4.1.3/debian/libchipcard-tools.preinst @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + + +if [ "$1" = install ] || [ "$1" = upgrade ]; then + if [ -L "/etc/udev/rules.d/025_libchipcard.rules" ]; then + rm -f "/etc/udev/rules.d/025_libchipcard.rules" + fi + + if [ -e "/etc/udev/libchipcard.rules" ]; then + if [ "`md5sum \"/etc/udev/libchipcard.rules\" | sed -e \"s/ .*//\"`" = \ + "`dpkg-query -W -f='${Conffiles}' libchipcard-tools | sed -n -e \"\\\\' /etc/udev/libchipcard.rules's/.* //p\"`" ] + then + rm -f "/etc/udev/libchipcard.rules" + else + mv "/etc/udev/libchipcard.rules" "/etc/udev/rules.d/40-libchipcard-tools.rules" + fi + fi +fi + +#DEBHELPER# --- libchipcard-4.1.3.orig/debian/libchipcard-libgwenhywfar47-plugins.install +++ libchipcard-4.1.3/debian/libchipcard-libgwenhywfar47-plugins.install @@ -0,0 +1 @@ +usr/lib/gwenhywfar/plugins --- libchipcard-4.1.3.orig/debian/libchipcard-data.dirs +++ libchipcard-4.1.3/debian/libchipcard-data.dirs @@ -0,0 +1,5 @@ +/etc/chipcard +/etc/chipcard/client +/etc/chipcard/client/certs +/etc/chipcard/server +/etc/chipcard/server/certs --- libchipcard-4.1.3.orig/debian/compat +++ libchipcard-4.1.3/debian/compat @@ -0,0 +1 @@ +5 --- libchipcard-4.1.3.orig/debian/bug.script +++ libchipcard-4.1.3/debian/bug.script @@ -0,0 +1,11 @@ +#!/bin/sh + +exec >&3 + +CHIPCARD_TOOL="/usr/bin/chipcard-tool" +if [ -x $CHIPCARD_TOOL ]; then + echo 'Available chipcard readers (output of "chipcard-tool list"):' + $CHIPCARD_TOOL list | sed -e '/^Server:.*$/d' +else + echo "$CHIPCARD_TOOL is not executable. No information available." +fi --- libchipcard-4.1.3.orig/debian/control +++ libchipcard-4.1.3/debian/control @@ -0,0 +1,100 @@ +Source: libchipcard +Section: libs +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Micha Lenk +Build-Depends: debhelper (>= 7.0.17ubuntu2), cdbs, libgwenhywfar47-dev (>= 3.0.0-2~), libsysfs-dev, gawk, libpcsclite-dev +Standards-Version: 3.8.0 +XS-Dm-Upload-Allowed: yes +Vcs-Browser: http://svn.debian.org/wsvn/aqbanking/libchipcard/trunk/ +Vcs-Svn: svn+ssh://svn.debian.org/svn/aqbanking/libchipcard/trunk +Homepage: http://www.aquamaniac.de/sites/libchipcard/ + +Package: libchipcard-dev +Section: libdevel +Architecture: any +Priority: extra +Depends: libchipcardc2 (>= ${source:Version}), libchipcardc2 (<< ${source:Version}.1~), libchipcardd0 (>= ${source:Version}), libchipcardd0 (<< ${source:Version}.1~), libchipcard-ctapi0 (>= ${source:Version}), libchipcard-ctapi0 (<< ${source:Version}.1~), libchipcard-data (>= ${source:Version}) +Description: API for smartcard readers + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This packages contains the development files for libchipcard. + +Package: libchipcardc2 +Section: libs +Architecture: any +Depends: libchipcard-data (>= ${source:Version}), ${shlibs:Depends} +Recommends: libchipcard-tools, libchipcard-ctapi0 +Priority: optional +Description: library for accessing smartcards + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This package contains the client API. + +Package: libchipcardd0 +Section: libs +Architecture: any +Depends: libchipcard-data (>= ${source:Version}), ${shlibs:Depends} +Recommends: libchipcard-tools +Priority: optional +Description: library for accessing smartcards + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This package contains the daemon API. + +Package: libchipcard-ctapi0 +Section: libs +Architecture: any +Depends: libchipcard-data (>= ${source:Version}), ${shlibs:Depends} +Priority: optional +Description: library for accessing smartcards + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This package contains the CT-API. + +Package: libchipcard-data +Section: libs +Architecture: all +Priority: optional +Description: configuration files for libchipcard + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This packages contains configuration files for libchipcard. + +Package: libchipcard-tools +Section: misc +Architecture: any +Priority: optional +Depends: ${shlibs:Depends}, libchipcard-data (>= ${source:Version}), adduser +Breaks: udev (<< 136-1) +Description: tools for accessing chipcards + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This packages contains tools for chipcards, e.g. geldkarte, as + well as the server managing the communication between chipcards and + applications. + +Package: libchipcard-libgwenhywfar47-plugins +Section: misc +Architecture: any +Priority: optional +Depends: ${shlibs:Depends} +Description: crypttoken plugin to libgwenhywfar + libchipcard provides an API for accessing smartcards. Examples are + memory cards, as well as HBCI (home banking), German GeldKarte + (electronic small change), and KVK (health insurance) cards. + . + This packages contains plugins to gwenhywfar providing cryptographic + services via smartcards. --- libchipcard-4.1.3.orig/debian/libchipcard-ctapi0.docs +++ libchipcard-4.1.3/debian/libchipcard-ctapi0.docs @@ -0,0 +1 @@ +README --- libchipcard-4.1.3.orig/debian/libchipcardc2.docs +++ libchipcard-4.1.3/debian/libchipcardc2.docs @@ -0,0 +1 @@ +README --- libchipcard-4.1.3.orig/debian/libchipcardd0.README.Debian +++ libchipcard-4.1.3/debian/libchipcardd0.README.Debian @@ -0,0 +1,25 @@ +libchipcard2 for Debian +----------------------- + +Automatic detection of USB readers requires sysfs (kernel 2.6) +-------------------------------------------------------------- + +The automatic detection of USB readers employed by libchipcard2 involves +either accessing /proc/tty/driver/usbserial (or usb-serial) or sysfs. +The former is only possible as root for security reasons, the latter is only +available with Linux kernel 2.6. For security reasons, libchipcard2-tools +will not run the daemon as root by default, so you're out of look for +automatic detection or need to change this manually +(it's in /etc/init.d/libchipcard2-tools). + +A note about libchipcard2 and the chipcard-daemons +-------------------------------------------------- + +libchipcard2 is a rewrite from scratch of a library for chipcards. +libchipcard 1.x (presently in libchipcard20, source package libchipcard) +shares the same upstream author but is more or less unrelated otherwise. +These packages can be installed in parallel, but for chipcardd2 from package +libchipcard2-tools to work, you need to stop chipcardd, e.g. by running + /etc/init.d/chipcard-tools stop + +-- Thomas Viehmann --- libchipcard-4.1.3.orig/debian/libchipcard-tools.install +++ libchipcard-4.1.3/debian/libchipcard-tools.install @@ -0,0 +1,8 @@ +usr/bin/cardcommander +usr/bin/chipcard-tool +usr/bin/geldkarte +usr/bin/kvkcard +usr/bin/memcard +usr/lib/chipcard/server +usr/sbin/* +usr/share/bug/libchipcard-tools --- libchipcard-4.1.3.orig/debian/libchipcard-dev.install +++ libchipcard-4.1.3/debian/libchipcard-dev.install @@ -0,0 +1,5 @@ +usr/bin/chipcard-config +usr/include +usr/share/aclocal +usr/lib/*.la +usr/lib/*.so --- libchipcard-4.1.3.orig/debian/rules +++ libchipcard-4.1.3/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f +DEB_DH_INSTALL_SOURCEDIR=$(CURDIR)/debian/tmp +include /usr/share/cdbs/1/class/autotools.mk +# let LibChipcard benefit from symbol visibility feature of gcc +# this explicit setting is needed because the corresponding test in +# configure.ac checks for the basename of the called $CC binary. +CC=gcc +include /usr/share/cdbs/1/rules/debhelper.mk +DEB_CONFIGURE_EXTRA_FLAGS := --disable-static --sysconfdir=/etc + +clean:: + find $(CURDIR) -type l -exec rm \{\} \; + +$(patsubst %,install/%,$(DEB_PACKAGES)) :: + if [ -e debian/$(cdbs_curpkg).lintian-overrides ] ; then \ + mkdir -p debian/$(cdbs_curpkg)/usr/share/lintian/overrides/ ; \ + cp debian/$(cdbs_curpkg).lintian-overrides debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg) ; \ + fi + +install/libchipcard-data:: + mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/libchipcard-data/examples + cp $(CURDIR)/debian/tmp/etc/chipcard/*/chipcard?.conf.* \ + $(CURDIR)/debian/tmp/usr/share/doc/libchipcard-data/examples + cp $(CURDIR)/debian/etc/chipcardc.conf $(CURDIR)/debian/tmp/etc/chipcard/client/chipcardc.conf + cp $(CURDIR)/debian/etc/chipcardd.conf $(CURDIR)/debian/tmp/etc/chipcard/server/chipcardd.conf +install/libchipcard-tools:: + sh debian/generate_udev_list.sh > debian/libchipcard-tools.udev + install -m 755 -d $(CURDIR)/debian/tmp/usr/share/bug/libchipcard-tools/ + install -m 755 $(CURDIR)/debian/bug.script $(CURDIR)/debian/tmp/usr/share/bug/libchipcard-tools/script +install/libchipcardd0:: + install -m 755 -d $(CURDIR)/debian/tmp/usr/share/bug/libchipcardd0/ + install -m 755 $(CURDIR)/debian/bug.script $(CURDIR)/debian/tmp/usr/share/bug/libchipcardd0/script +install/libchipcardc2:: + install -m 755 -d $(CURDIR)/debian/tmp/usr/share/bug/libchipcardc2/ + install -m 755 $(CURDIR)/debian/bug.script $(CURDIR)/debian/tmp/usr/share/bug/libchipcardc2/script --- libchipcard-4.1.3.orig/debian/libchipcard-ctapi0.shlibs +++ libchipcard-4.1.3/debian/libchipcard-ctapi0.shlibs @@ -0,0 +1 @@ +libchipcard_ctapi 0 libchipcard-ctapi0 --- libchipcard-4.1.3.orig/debian/watch +++ libchipcard-4.1.3/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=filenamemangle=s/.*\&dummy=(.*)/$1/ \ + http://www.aquamaniac.de/sites/download/packages.php \ + /sites/download/download.php\?package=02\&.*\&dummy=libchipcard-([\d.]*).tar.gz debian uupdate --- libchipcard-4.1.3.orig/debian/libchipcard-tools.postrm +++ libchipcard-4.1.3/debian/libchipcard-tools.postrm @@ -0,0 +1,41 @@ +#! /bin/sh +# postrm script for chipcard-tools +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + rm -f /var/run/chipcard/chipcard.comm + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- libchipcard-4.1.3.orig/debian/libchipcardd0.install +++ libchipcard-4.1.3/debian/libchipcardd0.install @@ -0,0 +1,2 @@ +usr/lib/libchipcardd.so.* +usr/share/bug/libchipcardd0 --- libchipcard-4.1.3.orig/debian/etc/chipcardd.conf +++ libchipcard-4.1.3/debian/etc/chipcardd.conf @@ -0,0 +1,42 @@ +# $RCSfile$ +# ------------------- +# cvs : $Id: chipcardd.conf.default 381 2007-05-02 09:11:19Z martin $ +# begin : Mon Mar 01 2004 +# copyright : (C) 2004 by Martin Preuss +# email : martin@libchipcard.de +# +# *************************************************************************** +# * Please see toplevel file COPYING for license details * +# ***************************************************************************/ +# +# +# This file is used by the chipcard daemon. +# Please modify it to your needs and copy it to +# $PREFIX/etc/chipcard/server/chipcardd.conf +# +# This is an example of a configuration file to be used when there are only +# USB readers known by Libchipcard2 in your system. +# Currently these known USB readers are: +# - Towitoko Chipdrive Pinpad +# - Reiner SCT Cyberjack +# - Kobil USB readers +# and various others. +# +# For serial readers (or unknown readers) a driver section is needed. + + +# if this is "0" then the server won't start +enabled="1" + + +server { + # local server, using Unix Domain Sockets which can only be + # connected from the very same machine + typ="local" + addr="/var/run/chipcard/chipcard.comm" +} # server + +DeviceManager { +} + + --- libchipcard-4.1.3.orig/debian/etc/chipcardc.conf +++ libchipcard-4.1.3/debian/etc/chipcardc.conf @@ -0,0 +1,29 @@ +# $RCSfile$ +# ------------------- +# cvs : $Id: chipcardc.conf.default 426 2007-10-24 13:15:34Z martin $ +# begin : Mon Mar 01 2004 +# copyright : (C) 2004 by Martin Preuss +# email : martin@libchipcard.de +# +# *************************************************************************** +# * Please see toplevel file COPYING for license details * +# ***************************************************************************/ +# +# +# This file is used by chipcard client programs. +# Please modify it to your needs and copy it to +# $PREFIX/etc/chipcard3/client/chipcardc.conf +# + +#char resmgr="lcc" + + +# +# Settings used for the Libchipcard ressource manager +# +server { + char typ="local" + char addr="/var/run/chipcard/chipcard.comm" +} # service + +