summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2006-04-26 09:29:42 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2006-04-26 09:29:42 +0000
commit43d212f35ca12fde6f7173b52091cf6de45b094d (patch)
treeeaf783acb6e2f5029156cb14e9f99ff563d7465d /app-misc/cyberjack
parentAdded description (diff)
downloadoverlay-43d212f35ca12fde6f7173b52091cf6de45b094d.tar.gz
overlay-43d212f35ca12fde6f7173b52091cf6de45b094d.tar.bz2
overlay-43d212f35ca12fde6f7173b52091cf6de45b094d.zip
Added driver for reinersct pinpad
svn path=/testing/; revision=700
Diffstat (limited to 'app-misc/cyberjack')
-rw-r--r--app-misc/cyberjack/Manifest3
-rw-r--r--app-misc/cyberjack/cyberjack-2.0.10.ebuild125
-rw-r--r--app-misc/cyberjack/files/digest-cyberjack-2.0.101
-rw-r--r--app-misc/cyberjack/files/reader.conf15
4 files changed, 144 insertions, 0 deletions
diff --git a/app-misc/cyberjack/Manifest b/app-misc/cyberjack/Manifest
new file mode 100644
index 0000000..dd0a369
--- /dev/null
+++ b/app-misc/cyberjack/Manifest
@@ -0,0 +1,3 @@
+MD5 354b03d0e7aceac65b8a64c2dce6bb4c cyberjack-2.0.10.ebuild 3721
+MD5 1a9a64887f80a308d7a8b1f7cf9d8640 files/digest-cyberjack-2.0.10 75
+MD5 bc0b114d480719e49df09aef48b5a95c files/reader.conf 440
diff --git a/app-misc/cyberjack/cyberjack-2.0.10.ebuild b/app-misc/cyberjack/cyberjack-2.0.10.ebuild
new file mode 100644
index 0000000..34c0181
--- /dev/null
+++ b/app-misc/cyberjack/cyberjack-2.0.10.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2005 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+inherit eutils
+
+DESCRIPTION="This library provides a driver for using REINER SCT cyberJack smartcard readers under UNIX environment."
+HOMEPAGE="http://www.reiner-sct.de/"
+SRC_URI="http://support.reiner-sct.de/downloads/LINUX/V${PV}/ctapi-${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="pcsc-lite usb"
+
+RDEPEND="virtual/linux-sources
+ pcsc-lite? ( sys-apps/pcsc-lite )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/ctapi-${P}"
+
+src_compile() {
+ cd ${S}/ctapi
+ emake || die "Could not compile libraries"
+
+ cd ${S}/tools
+ emake || die "Could not compile tools"
+
+ if use pcsc-lite; then
+ cd ${S}/pcsc
+ emake || die "Could not compile package"
+ fi
+}
+
+src_install() {
+ cd ${S}
+
+ insinto /usr/lib/readers
+ insopts -m 0755
+ newins ctapi/libctapi-${PN}.so libctapi-${PN}.so.${PV}
+ doins ctapi/libctapi-${PN}.a
+
+ dosym /usr/lib/readers/libctapi-${PN}.so.${PV} /usr/lib/readers/libctapi-${PN}.so
+ dosym /usr/lib/readers/libctapi-${PN}.so /usr/lib/readers/libctapi.so
+ dosym /usr/lib/readers/libctapi.so /usr/lib/libctapi.so
+ dosym /usr/lib/readers/libctapi-${PN}.a /usr/lib/libctapi-${PN}.a
+
+ insinto /usr/include
+ insopts -m 0644
+ doins ctapi/include/ctapi.h
+
+ dobin tools/cjgeldkarte tools/ctsh
+
+ if use usb; then
+ insinto /etc/hotplug/usb
+ insopts -m 0644
+ doins etc/hotplug/${PN}.usermap
+
+ insopts -m 0755
+ doins etc/hotplug/usb${PN}
+
+ dodir /etc/udev/rules.d
+ echo 'SYSFS{idVendor}="0c4b", KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n", SYMLINK="ttyUSB%n", GROUP="cyberjack", MODE="0660"' \
+ >${D}/etc/udev/rules.d/30-${PN}.rules
+ enewgroup ${PN}
+ fi
+
+ if use pcsc-lite; then
+ insinto /usr/lib/readers
+ insopts -m 0755
+ newins pcsc/ifd-${PN}.bundle/Contents/Linux/ifd-${PN}.so lib${PN}_ifd.so.${PV}
+
+ insinto /usr/lib/pcsc/drivers/ifd-${PN}.bundle/Contents
+ insopts -m 0444
+ doins pcsc/ifd-${PN}.bundle/Contents/Info.plist pcsc/ifd-${PN}.bundle/Contents/PkgInfo
+
+ dosym /usr/lib/readers/lib${PN}_ifd.so.${PV} /usr/lib/readers/lib${PN}_ifd.so
+ dodir /usr/lib/pcsc/drivers/ifd-${PN}.bundle/Contents/Linux
+ dosym /usr/lib/readers/lib${PN}_ifd.so /usr/lib/pcsc/drivers/ifd-${PN}.bundle/Contents/Linux/ifd-${PN}.so
+
+ insinto /etc
+ insopts -m 0644
+ doins ${FILESDIR}/reader.conf
+ newins etc/reader.conf reader.conf.${PN}
+ fi
+
+ dodir /etc/env.d
+ cat <<EOF >${D}/etc/env.d/30${PN}
+LDPATH="/usr/lib/readers"
+
+# Uncomment the following line to disable the key beeps.
+#CJCTAPI_NO_KEYBEEP=""
+EOF
+
+ dodoc COPYRIGHT.GPL COPYRIGHT.LGPL doc/README.pdf doc/README.html doc/README.txt MAKEUSBDEV tools/ctshrc.example
+}
+
+pkg_postinst() {
+ echo
+ einfo "Starting with Version 2.0.5 of ${PN}, the host PC"
+ einfo "will emit a beep sound at every key press. The driver tries to"
+ einfo "detect the best mechanism for beeping by itself, i.e. xBell"
+ einfo "when you run under X11, or sending a BEL ASCII character to"
+ einfo "STDOUT when running as a console application."
+ einfo ""
+ einfo "If you want to disable the beep, you can set the"
+ einfo "CJCTAPI_NO_KEYBEEP environment variable before starting your"
+ einfo "application (i.e. export CJCTAPI_NO_KEYBEEP)."
+ einfo ""
+ einfo "Furthermore you could uncomment the CJCTAPI_NO_KEYBEEP line"
+ einfo "in /etc/env.d/30${PN}."
+ echo
+
+ if use usb; then
+ einfo "To use hotplugging (REINER SCT cyberJack USB smartcard readers) your kernel has to be compiled"
+ einfo "with CONFIG_HOTPLUG enabled and sys-apps/hotplug must be emerged."
+ echo
+ fi
+
+ if use pcsc-lite; then
+ einfo "To use PC/SC you maybe have to change the content of /etc/reader.conf file."
+ einfo "Please read the information in the /etc/reader.conf.${PN} file first."
+ echo
+ fi
+}
diff --git a/app-misc/cyberjack/files/digest-cyberjack-2.0.10 b/app-misc/cyberjack/files/digest-cyberjack-2.0.10
new file mode 100644
index 0000000..eca6958
--- /dev/null
+++ b/app-misc/cyberjack/files/digest-cyberjack-2.0.10
@@ -0,0 +1 @@
+MD5 339b4a1b2117550c0be92e5609f0729e ctapi-cyberjack-2.0.10.tar.bz2 238558
diff --git a/app-misc/cyberjack/files/reader.conf b/app-misc/cyberjack/files/reader.conf
new file mode 100644
index 0000000..76e7f90
--- /dev/null
+++ b/app-misc/cyberjack/files/reader.conf
@@ -0,0 +1,15 @@
+# Configuration file for pcsc-lite
+# David Corcoran <corcoran@linuxnet.com
+
+
+FRIENDLYNAME "Generic Reader"
+DEVICENAME GEN_SMART_RDR
+LIBPATH /usr/lib/readers/usb/libgen_ifd.so
+CHANNELID 0x0103F8
+
+
+# REINER SCT cyberJack pinpad/e-com USB
+FRIENDLYNAME "REINER SCT cyberJack pinpad/e-com USB"
+DEVICENAME REINERSCT_CYBERJACK_USB
+LIBPATH /usr/lib/readers/libcyberjack_ifd.so
+CHANNELID 0x000000