--- pcsc-omnikey-3.orig/debian/control +++ pcsc-omnikey-3/debian/control @@ -0,0 +1,30 @@ +Source: pcsc-omnikey +Section: non-free/misc +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian QA Group +Build-Depends: debhelper (>= 7), libpcsclite-dev, + libusb-dev +Standards-Version: 3.8.3 +Homepage: http://omnikey.aaitg.com/ +XS-Autobuild: yes + +Package: pcsc-omnikey +Architecture: amd64 i386 +Depends: ${shlibs:Depends}, ${misc:Depends}, pcscd, udev +Conflicts: libccid +Replaces: libccid +Provides: pcsc-ifd-handler +Description: PC/SC driver for Omnikey Cardman Smartcard readers (binary-only) + This package contains the necessary ifd_handler for PC/SC Lite to support the + following Omnikey Cardman smartcard devices: + . + * Omnikey Cardman Desktop USB 1021, 3021 and 3121 + * Omnikey Cardman Mobile 4040 PCMCIA and 4321 ExpressCard + * Omnikey Cardman Dongle USB 6121 + * Omnikey Cardman Trust USB 3621 and 3821 + * Omnikey Cardman RFID USB 5121, 5125 and 5321 + * Ominkey Cardman Embedded 3111, 3121, 3921, 5121, 5321 and Smart@Link + . + This package is needed in order to do communication in secure mode (class 3) + with the reader device. --- pcsc-omnikey-3.orig/debian/rules +++ pcsc-omnikey-3/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +%: + dh ${@} + +override_dh_auto_clean: + rm -rf build + +override_dh_auto_build: + mkdir -p build + +ifeq ($(DEB_BUILD_ARCH),amd64) + tar xfz upstream/ifdok_cm4040_lnx_x64-*.tar.gz -C build + tar xfz upstream/ifdokccid_lnx_x64-*.tar.gz -C build + tar xfz upstream/ifdokrfid_lnx_x64-*.tar.gz -C build +else # i386 + tar xfz upstream/ifdok_cm4040_lnx-*.tar.gz -C build + tar xfz upstream/ifdokccid_lnx-*.tar.gz -C build + tar xfz upstream/ifdokrfid_lnx-*.tar.gz -C build +endif + +override_dh_auto_install: + # ifdok_cm4040 + install -D -m 0755 build/ifdok_cm4040*/ifdok_cm4040*.so debian/pcsc-omnikey/usr/lib/pcsc/drivers/ifdok_cm4040.so + + # ifdokccid + install -D -m 0644 build/ifdokccid*/z98_omnikey.rules debian/pcsc-omnikey/etc/udev/rules.d/z98_omnikey.rules + sed -i -e 's|SYSFS|ATTRS|g' -e 's|idProduct}="|idProduct}=="|g' -e 's|/usr/local|/usr|g' debian/pcsc-omnikey/etc/udev/rules.d/z98_omnikey.rules + cp -a build/ifdokccid*/*.bundle debian/pcsc-omnikey/usr/lib/pcsc/drivers + + # ifdokrfid + install -D -m 0644 build/ifdokrfid*/cmrfid.ini debian/pcsc-omnikey/etc/cmrfid.in + cp -a build/ifdokrfid*/*.bundle debian/pcsc-omnikey/usr/lib/pcsc/drivers --- pcsc-omnikey-3.orig/debian/pcsc-omnikey.postinst +++ pcsc-omnikey-3/debian/pcsc-omnikey.postinst @@ -0,0 +1,38 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure|reconfigure) + # regenerate /etc/reader.conf if update-reader.conf is available + if [ -x /usr/sbin/update-reader.conf ] + then + update-reader.conf || true + fi + + # restart pcscd (PCSC daemon) if the package is installed + if [ -x /etc/init.d/pcscd ] + then + invoke-rc.d pcscd restart 3> /dev/null + fi + + # reload udev rules if the package is installed + if [ -x /etc/init.d/udev ] + then + invoke-rc.d udev reload 3> /dev/null || true + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 --- pcsc-omnikey-3.orig/debian/compat +++ pcsc-omnikey-3/debian/compat @@ -0,0 +1 @@ +7 --- pcsc-omnikey-3.orig/debian/changelog +++ pcsc-omnikey-3/debian/changelog @@ -0,0 +1,117 @@ +pcsc-omnikey (1:3-3ubuntu1) maverick; urgency=low + + * Merge with Debian sid, remaining changes: + - Build-depend on libusb-dev. + + -- Alessio Treglia Fri, 23 Jul 2010 12:09:18 +0200 + +pcsc-omnikey (1:3-3) unstable; urgency=low + + * Updating package to standards version 3.8.3. + * Removing vcs fields. + * Orphaning package. + + -- Daniel Baumann Thu, 27 Aug 2009 11:15:44 +0200 + +pcsc-omnikey (1:3-2ubuntu1) karmic; urgency=low + + * Merge from debian unstable, Ubuntu remaining changes: + - Build-Depends on libusb-dev, otherwise it FTBFS. + + -- Alessio Treglia Mon, 03 Aug 2009 07:18:24 +0200 + +pcsc-omnikey (1:3-2) unstable; urgency=low + + * Updating package to standards version 3.8.2. + * Minimizing rules file. + * Dropping version from versioned depends, not needed anymore. + + -- Daniel Baumann Wed, 29 Jul 2009 22:18:50 +0200 + +pcsc-omnikey (1:3-1ubuntu1) karmic; urgency=low + + * Add libusb-dev to Build-Depends field to fix FTBFS. + + -- Alessio Treglia Tue, 30 Jun 2009 14:08:55 +0200 + +pcsc-omnikey (1:3-1) unstable; urgency=low + + * Not calling update-reader.conf with full path in maintainer scripts. + * Merging upstream version 3. + + -- Daniel Baumann Tue, 05 May 2009 09:37:06 +0200 + +pcsc-omnikey (1:2-5) unstable; urgency=low + + * Updatingto debhelper 7. + * Updating to standards 3.8.0. + * Updating vcs fields in control file. + * Replacing obsolete dh_clean -k with dh_prep. + * Using correct rfc-2822 date formats in changelog. + * Upgrading package to standards 3.8.1. + * Correct indenting of package long-description in control file. + * Updating year in copyright file. + * Prefixing debhelper files with package name. + * Tidy rules file. + + -- Daniel Baumann Tue, 05 May 2009 09:12:30 +0200 + +pcsc-omnikey (1:2-4) unstable; urgency=medium + + * Corrected encoding of copyright file. + * Moving CardMan 4040 config file to examples, thanks to Sandro Wefel + (Closes: #477341). + * Correcting syntax erorrs in udev rule, thanks to Sandro Wefel + (Closes: #477342). + * Rewriting copyright file in machine-interpretable format. + * Reordering rules file. + * Adding vcs fields in control file. + + -- Daniel Baumann Tue, 22 Apr 2008 17:22:00 +0200 + +pcsc-omnikey (1:2-3) unstable; urgency=low + + * Adding autobuild pseudo header in control. + * Bumping package to debhelper version 6. + + -- Daniel Baumann Tue, 01 Apr 2008 15:17:00 +0200 + +pcsc-omnikey (1:2-2) unstable; urgency=low + + * Bumping to new policy. + * Using new homepage field in control. + + -- Daniel Baumann Sat, 29 Dec 2007 13:39:00 +0100 + +pcsc-omnikey (1:2-1) unstable; urgency=low + + * New upstream release of drivers for CardMan RFID USB 5121, 5125 and 5321. + + -- Daniel Baumann Mon, 03 Dec 2007 13:23:00 +0100 + +pcsc-omnikey (1:1-1) unstable; urgency=low + + * Added drivers for CardMan Mobile PCMCIA 4040. + * Adding drivers for CardMan RFID USB 5121, 5125 and 5321. + + -- Daniel Baumann Wed, 12 Sep 2007 11:03:00 +0200 + +pcsc-omnikey (3.4.0-3) unstable; urgency=low + + * Handling pcscd in postinst/postrm. + + -- Daniel Baumann Sat, 01 Sep 2007 20:44:00 +0200 + +pcsc-omnikey (3.4.0-2) unstable; urgency=low + + * Adjusted driver location. + * Removed manual depends on libusb. + * Added conflicts against libccid. + + -- Daniel Baumann Wed, 22 Aug 2007 15:02:00 +0200 + +pcsc-omnikey (3.4.0-1) unstable; urgency=low + + * Initial release. + + -- Daniel Baumann Wed, 22 Aug 2007 09:46:00 +0200 --- pcsc-omnikey-3.orig/debian/copyright +++ pcsc-omnikey-3/debian/copyright @@ -0,0 +1,125 @@ +Author: Omnikey GmbH +Download: http://omnikey.aaitg.com/ + +Files: * +Copyright: (C) 2006 Omnikey GmbH +License: other + Copyright (C) 2006 Omnikey GmbH + All rights reserved. + . + Redistribution Permission for Debian. + . + ------------------------------------------------------------------------------- + Subject: Redistribution of OmniKey Drivers + From: Daniel Baumann + Date: Tue, 21 August 2007 14:03:14 +0200 + To: OmniKey + . + Dear OmniKey, + . + I'm a Debian Developer and would like to integrate the + . + CardMan 3x21 PC/SC CCID for Linux 32 Bit + . + and the + . + CardMan 3x21 PC/SC CCID for Linux X64 + . + into Debian GNU/Linux distribution . + . + Unfortunately, I couldn't find a license statement from OmniKey. I need at + least the permission for unmodified redistribution through Debian and its + mirrors in order to be able to create the Debian packages. + . + Preferably, I'd rather get the source to build the driver on my own, though, I + understand if this is not possible for you due to legal considerations. + . + Regards, + Daniel + . + -- + Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist + Email: daniel.baumann@panthera-systems.net + Internet: http://people.panthera-systems.net/~daniel-baumann/ + ------------------------------------------------------------------------------- + Subject: Antwort: Redistribution of OmniKey Drivers + From: Thomas Bruendl + Date: Tue, 21 August 2007 14:41:13 +0200 + . + Dear Mr. Baumann, + . + You have the permission to distribute the drivers through Debian and its + mirros and to create Debian packages. + But we cannot provide you the source code of the driver. + . + Mit freundlichen GrĂ¼ssen, + Best Regards, + Support + OMNIKEY + EMail: support@omnikey.com + . + Web: www.omnikey.com + ------------------------------------------------------------------------------- + Subject: Re: Antwort: Redistribution of OmniKey Drivers + From: Daniel Baumann + Date: Fri, 7 September 2007 08:29 +0200 + . + support@omnikey.com wrote: + > You have the permission to distribute the drivers through Debian and its + > mirros and to create Debian packages. + > But we cannot provide you the source code of the driver. + . + Above, I've asked you about two specific drivers (CardMan 3x21 that is). Those + are now included in Debian: + . + http://packages.debian.org/unstable/pcsc-omnikey + . + May I also include all other drivers to that very package with the same + conditions (unmodified redistribution allowed to Debian and its mirrors)? + . + Regards, + Daniel + . + -- + Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist + Email: daniel.baumann@panthera-systems.net + Internet: http://people.panthera-systems.net/~daniel-baumann/ + ------------------------------------------------------------------------------- + Subject: Debian + From: Thomas Bruendl + Date: Tue, 11 September 2007 09:02 +0200 + . + Hello, + . + > Above, I've asked you about two specific drivers (CardMan 3x21 that is). + > Those are now included in Debian: + > + > http://packages.debian.org/unstable/pcsc-omnikey + > + > May I also include all other drivers to that very package with the same + > conditions (unmodified redistribution allowed to Debian and its mirrors)? + . + Yes, you can distribute all of other drivers in binary form. + . + Mit freundlichen GrĂ¼ssen + Best regards, + . + Thomas Bruendl + Manager Development Software + Readers + . + OMNIKEY GmbH + Office Linz + Ferihumerstrasse 13 + A-4040 Linz + Austria + . + E-Mail tbruendl@aaitg.com + Web www.aaitg.com + ------------------------------------------------------------------------------- + +Files: debian/* +Copyright: (C) 2007-2009 Daniel Baumann +License: PD + The Debian packaging is hereby placed in the public domain (no rights + reserved). --- pcsc-omnikey-3.orig/debian/pcsc-omnikey.examples +++ pcsc-omnikey-3/debian/pcsc-omnikey.examples @@ -0,0 +1 @@ +debian/examples/* --- pcsc-omnikey-3.orig/debian/pcsc-omnikey.postrm +++ pcsc-omnikey-3/debian/pcsc-omnikey.postrm @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|failed-upgrade|abort-install|abort-upgrade|disappear) + # regenerate /etc/reader.conf + if [ -x /usr/sbin/update-reader.conf ] + then + update-reader.conf || true + fi + + # restart pcscd (PCSC daemon) if the package is removed + if [ -x /etc/init.d/pcscd ] + then + invoke-rc.d pcscd restart 3>/dev/null + fi + ;; + + purge|upgrade) + + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 --- pcsc-omnikey-3.orig/debian/examples/reader.conf +++ pcsc-omnikey-3/debian/examples/reader.conf @@ -0,0 +1,6 @@ +# Configuration file for CardMan 4040 smartcard reader. + +FRIENDLYNAME "OMNIKEY CardMan 4040 Socket 0" +DEVICENAME /dev/cmx0 +LIBPATH /usr/lib/pcsc/drivers/ifdok_cm4040.so +CHANNELID 0