summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2007-02-12 13:16:53 +0000
committerWolfram Schlich <wschlich@gentoo.org>2007-02-12 13:16:53 +0000
commit9126f8fb2531cf3e09440f000a98b9fb79e02511 (patch)
tree79d8150e3d28fbd5c45d98678a0a4b65f97b8f6e /dev-libs/cyberjack
parentVersion bump #166440 by Carsten Lohrke. (diff)
downloadgentoo-2-9126f8fb2531cf3e09440f000a98b9fb79e02511.tar.gz
gentoo-2-9126f8fb2531cf3e09440f000a98b9fb79e02511.tar.bz2
gentoo-2-9126f8fb2531cf3e09440f000a98b9fb79e02511.zip
initial import wrt bug #62919
(Portage version: 2.1.2_rc2-r3)
Diffstat (limited to 'dev-libs/cyberjack')
-rw-r--r--dev-libs/cyberjack/ChangeLog12
-rw-r--r--dev-libs/cyberjack/Manifest36
-rw-r--r--dev-libs/cyberjack/cyberjack-2.0.13.ebuild93
-rw-r--r--dev-libs/cyberjack/files/91-cyberjack.rules5
-rw-r--r--dev-libs/cyberjack/files/cyberjack-2.0.13-build.patch84
-rw-r--r--dev-libs/cyberjack/files/cyberjack-2.0.13-qa.patch12
-rw-r--r--dev-libs/cyberjack/files/cyberjack-2.0.13-udev.patch15
-rwxr-xr-xdev-libs/cyberjack/files/cyberjack.sh17
-rw-r--r--dev-libs/cyberjack/files/digest-cyberjack-2.0.133
-rw-r--r--dev-libs/cyberjack/metadata.xml10
10 files changed, 287 insertions, 0 deletions
diff --git a/dev-libs/cyberjack/ChangeLog b/dev-libs/cyberjack/ChangeLog
new file mode 100644
index 000000000000..fde13d439b3c
--- /dev/null
+++ b/dev-libs/cyberjack/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-libs/cyberjack
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.1 2007/02/12 13:16:53 wschlich Exp $
+
+*cyberjack-2.0.13 (12 Feb 2007)
+
+ 12 Feb 2007; Wolfram Schlich <wschlich@gentoo.org>
+ +files/cyberjack-2.0.13-build.patch, +files/cyberjack-2.0.13-udev.patch,
+ +files/91-cyberjack.rules, +files/cyberjack-2.0.13-qa.patch,
+ +files/cyberjack.sh, +cyberjack-2.0.13.ebuild:
+ initial import wrt bug #62919
+
diff --git a/dev-libs/cyberjack/Manifest b/dev-libs/cyberjack/Manifest
new file mode 100644
index 000000000000..6793f8053c4b
--- /dev/null
+++ b/dev-libs/cyberjack/Manifest
@@ -0,0 +1,36 @@
+AUX 91-cyberjack.rules 307 RMD160 8d7ab1ce69fa2e80aad709d31f0eb0369c73af82 SHA1 573684bee5b0f0824a64a1f4b4fb6992017996ed SHA256 a8a033ea6250749847a01878925b96a8fa2d13234b8d40a573cc11ceebefe967
+MD5 1ad4ae95628cc669c390a22ed47b4d0b files/91-cyberjack.rules 307
+RMD160 8d7ab1ce69fa2e80aad709d31f0eb0369c73af82 files/91-cyberjack.rules 307
+SHA256 a8a033ea6250749847a01878925b96a8fa2d13234b8d40a573cc11ceebefe967 files/91-cyberjack.rules 307
+AUX cyberjack-2.0.13-build.patch 2420 RMD160 3865d4b84e13cc391df422613bb8c1221e5da644 SHA1 6ca29d47370d636207e854eb52af5311abe30dab SHA256 64fb0adcbb91a3c35c52f0d29ecbd733de5dc902d0c2dcdcc90abeae852eb28b
+MD5 24aa27ef658f04e9e21304bac547b329 files/cyberjack-2.0.13-build.patch 2420
+RMD160 3865d4b84e13cc391df422613bb8c1221e5da644 files/cyberjack-2.0.13-build.patch 2420
+SHA256 64fb0adcbb91a3c35c52f0d29ecbd733de5dc902d0c2dcdcc90abeae852eb28b files/cyberjack-2.0.13-build.patch 2420
+AUX cyberjack-2.0.13-qa.patch 573 RMD160 7eca97a12543df6e53f366fe237e67b24be7f9e2 SHA1 be3c86cb481e252e529b4782270252a6f2488f64 SHA256 a24feba693f20215b485d30a1c75611061a3212d38b03857de545777f0c65535
+MD5 45df1661fcb4ed82b8374d0566fb60e8 files/cyberjack-2.0.13-qa.patch 573
+RMD160 7eca97a12543df6e53f366fe237e67b24be7f9e2 files/cyberjack-2.0.13-qa.patch 573
+SHA256 a24feba693f20215b485d30a1c75611061a3212d38b03857de545777f0c65535 files/cyberjack-2.0.13-qa.patch 573
+AUX cyberjack-2.0.13-udev.patch 557 RMD160 3447ad56ea96c49e4d22dea9db0c04885b4c3c6b SHA1 9467c4e08cb234059ae7cba266954a6c59a83eac SHA256 ef956dfc0208500b9221a9131177ad0e5bdf4998981e6430990a0f581c15d33f
+MD5 7d7d0197fbf41ea766c57e7b9eee63a0 files/cyberjack-2.0.13-udev.patch 557
+RMD160 3447ad56ea96c49e4d22dea9db0c04885b4c3c6b files/cyberjack-2.0.13-udev.patch 557
+SHA256 ef956dfc0208500b9221a9131177ad0e5bdf4998981e6430990a0f581c15d33f files/cyberjack-2.0.13-udev.patch 557
+AUX cyberjack.sh 323 RMD160 3307808817a92a68a01f59d4fec7470304c98ad8 SHA1 f023ae03d05bf3594eaf02d38e1e9d2c9c8e5b17 SHA256 9c64dce859b4a4b1e30f921199f73a4a0d4c3b3207cd9eb1df011b388e7b9315
+MD5 b44feb28bc24a9f16eac1c7c536abff0 files/cyberjack.sh 323
+RMD160 3307808817a92a68a01f59d4fec7470304c98ad8 files/cyberjack.sh 323
+SHA256 9c64dce859b4a4b1e30f921199f73a4a0d4c3b3207cd9eb1df011b388e7b9315 files/cyberjack.sh 323
+DIST ctapi-cyberjack-2.0.13.tar.gz 662043 RMD160 15e6cba26296115133dbfc1379e858468b581110 SHA1 b18664717b53d3852741f8b1d2c78b6481ccbebc SHA256 818bd4124c2edb398359b88e80831724dda81cf15a5ee97c312170b5b204891f
+EBUILD cyberjack-2.0.13.ebuild 2890 RMD160 e9efd7382d47f23299783b34544b5b1df798184b SHA1 be429339e570d3973c09bdc0fdb98e36cd1acea2 SHA256 520ce66c43411aa98cda1ebc409a01a3c8f8f5e7a3f8fdc9d379fb070eb28c12
+MD5 61ef17b244f36a20d73683a8278db7bd cyberjack-2.0.13.ebuild 2890
+RMD160 e9efd7382d47f23299783b34544b5b1df798184b cyberjack-2.0.13.ebuild 2890
+SHA256 520ce66c43411aa98cda1ebc409a01a3c8f8f5e7a3f8fdc9d379fb070eb28c12 cyberjack-2.0.13.ebuild 2890
+MISC ChangeLog 425 RMD160 6d299ef77ca608325f4885df1d6d3265f2b18a9c SHA1 fea1f1745d15f61c0f4e4b3e7732d87ca2108f92 SHA256 ff8c04f26f1f192af394691d9d4bc8d867716090ca436a239f8761f6bf3f374b
+MD5 21898e63642396e006345033a4b4e752 ChangeLog 425
+RMD160 6d299ef77ca608325f4885df1d6d3265f2b18a9c ChangeLog 425
+SHA256 ff8c04f26f1f192af394691d9d4bc8d867716090ca436a239f8761f6bf3f374b ChangeLog 425
+MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
+MD5 3a0673ad138a1626da8160385475f88e metadata.xml 300
+RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e metadata.xml 300
+SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 metadata.xml 300
+MD5 b610c332deb05210a7a81949884e6685 files/digest-cyberjack-2.0.13 268
+RMD160 728573ee14c3e57eda904304f307562f65932186 files/digest-cyberjack-2.0.13 268
+SHA256 ef395dabacb738ef30fa04cfb6273a7fae0238874f5538e07668b4bcd006a9be files/digest-cyberjack-2.0.13 268
diff --git a/dev-libs/cyberjack/cyberjack-2.0.13.ebuild b/dev-libs/cyberjack/cyberjack-2.0.13.ebuild
new file mode 100644
index 000000000000..0c05478a2961
--- /dev/null
+++ b/dev-libs/cyberjack/cyberjack-2.0.13.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/cyberjack-2.0.13.ebuild,v 1.1 2007/02/12 13:16:53 wschlich Exp $
+
+inherit eutils flag-o-matic autotools
+
+MY_P="ctapi-${P}"
+
+DESCRIPTION="REINER SCT cyberJack pinpad/e-com USB user space driver library"
+HOMEPAGE="http://www.reiner-sct.de/ http://sourceforge.net/projects/libchipcard/"
+SRC_URI="mirror://sourceforge/libchipcard/${MY_P}.tar.gz
+ http://support.reiner-sct.de/downloads/LINUX/V${PV}/${MY_P}.tar.gz"
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="noudev pcsc-lite"
+RDEPEND="
+ dev-libs/libusb
+ pcsc-lite? (
+ sys-apps/pcsc-lite
+ dev-util/pkgconfig
+ )
+"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ useq noudev || enewgroup "${PN}"
+}
+
+src_unpack() {
+ unpack ${A} || die "Unpacking failed."
+ cd "${S}" || die "Failed to change to source directory."
+ epatch "${FILESDIR}/${P}-build.patch" || die "Applying build patch failed."
+ epatch "${FILESDIR}/${P}-qa.patch" || die "Applying QA patch failed."
+ useq noudev || {
+ epatch "${FILESDIR}/${P}-udev.patch" || die "Applying udev patch failed."
+ cp ${FILESDIR}/cyberjack.sh etc/udev/ || die "Copying udev script failed."
+ cp ${FILESDIR}/91-cyberjack.rules etc/udev/ || die "Copying udev rules failed."
+ }
+ AT_M4DIR="m4" eautoreconf || die "Adopting configurations failed."
+}
+
+src_compile() {
+ append-flags -fno-strict-aliasing
+ ./configure \
+ --prefix=/usr \
+ --docdir=/usr/share/doc/"${P}" \
+ --sysconfdir=/etc/"${PN}" \
+ $(use_enable pcsc-lite pcsc) \
+ $(use_with pcsc-lite usbdropdir=$(pkg-config libpcsclite --variable=usbdropdir)) \
+ $(use_enable !noudev udev) \
+ || die "Configuration of package failed."
+ emake || die "Compilation of package failed."
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "Installation of package failed."
+ dodoc ChangeLog NEWS README TODO tools/ctshrc.example
+
+ # remove development files
+ rm -rf "${D}"/usr/include/ \
+ "${D}"/usr/lib/*.la \
+ "${D}"/usr/lib/readers/usb/ifd-"${PN}".bundle/Contents/Linux/*.la
+}
+
+pkg_postinst() {
+ local conf="/etc/${PN}/${PN}.conf"
+ einfo
+ einfo "To configure logging, key beep behaviour etc. you need to"
+ einfo "copy ${conf}.default"
+ einfo "to ${conf}"
+ einfo "and modify the latter as needed."
+ einfo
+ useq noudev || {
+ einfo "Please run the following command as root to"
+ einfo "make udevd read the cyberJack rules that were"
+ einfo "just installed onto your system:"
+ einfo
+ einfo " udevcontrol reload_rules"
+ einfo
+ einfo "To be able to use the cyberJack device, you need to"
+ einfo "be a member of the group 'cyberjack' which has just"
+ einfo "been added to your system. You can add your user to"
+ einfo "the group by running the following command as root:"
+ einfo
+ einfo " gpasswd -a youruser cyberjack"
+ einfo
+ einfo "Please be aware that you need to re-login to your"
+ einfo "system for the group membership to take effect."
+ einfo
+ }
+}
diff --git a/dev-libs/cyberjack/files/91-cyberjack.rules b/dev-libs/cyberjack/files/91-cyberjack.rules
new file mode 100644
index 000000000000..e75c9f64466a
--- /dev/null
+++ b/dev-libs/cyberjack/files/91-cyberjack.rules
@@ -0,0 +1,5 @@
+# using the cyberJack libusb driver
+ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="c4b/100/*", RUN+="cyberjack.sh"
+ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="c4b/300/*", RUN+="cyberjack.sh"
+# using the cyberJack kernel module
+ACTION=="add", SUBSYSTEM=="tty", DRIVERS=="cyberjack", RUN+="cyberjack.sh"
diff --git a/dev-libs/cyberjack/files/cyberjack-2.0.13-build.patch b/dev-libs/cyberjack/files/cyberjack-2.0.13-build.patch
new file mode 100644
index 000000000000..6515ba2bc7a8
--- /dev/null
+++ b/dev-libs/cyberjack/files/cyberjack-2.0.13-build.patch
@@ -0,0 +1,84 @@
+diff -urNp ctapi-cyberjack-2.0.13.org/configure.ac ctapi-cyberjack-2.0.13/configure.ac
+--- ctapi-cyberjack-2.0.13.org/configure.ac 2007-01-09 08:51:18.000000000 +0100
++++ ctapi-cyberjack-2.0.13/configure.ac 2007-01-20 01:21:30.000000000 +0100
+@@ -284,7 +284,24 @@ fi
+ AC_SUBST(STRIPALL)
+ AC_MSG_RESULT($enable_release)
+
+-
++AC_ARG_ENABLE(udev,
++ [ --enable-udev create udev files],
++ [ ENABLE_UDEV="${enableval}" ],
++ [ ENABLE_UDEV="yes" ]
++)
++AM_CONDITIONAL(UDEV, test "${ENABLE_UDEV}" = "yes")
++AC_ARG_ENABLE(pcsc,
++ [ --enable-pcsc create pcsc files],
++ [ ENABLE_PCSC="${enableval}" ],
++ [ ENABLE_PCSC="yes" ]
++)
++AM_CONDITIONAL(PCSC, test "${ENABLE_PCSC}" = "yes")
++AC_ARG_WITH(usbdropdir,
++ [ --with-usbdropdir pcsc bundle location],
++ [ usbdropdir="${withval}" ],
++ [ usbdropdir="\$(libdir)/pcsc/drivers" ]
++)
++AC_SUBST(usbdropdir)
+
+ ###-------------------------------------------------------------------------
+ #
+@@ -374,7 +391,11 @@ RPM_COMMAND="`which rpm`"
+ RPM_DIST_NAME=""
+ RPM_DIST_TAG=""
+ RPM_DIST_VER=""
+-ETC_SUBDIRS="udev"
++if test "$ENABLE_UDEV" = "yes"; then
++ ETC_SUBDIRS="udev"
++else
++ ETC_SUBDIRS=""
++fi
+ USE_HOTPLUG=0
+ USE_UDEV=0
+
+diff -urNp ctapi-cyberjack-2.0.13.org/pcsc/Makefile.am ctapi-cyberjack-2.0.13/pcsc/Makefile.am
+--- ctapi-cyberjack-2.0.13.org/pcsc/Makefile.am 2006-12-24 15:20:42.000000000 +0100
++++ ctapi-cyberjack-2.0.13/pcsc/Makefile.am 2007-01-20 01:20:57.000000000 +0100
+@@ -1,21 +1,30 @@
+-INCLUDES=-I$(top_srcdir)/ctapi/include -I$(top_srcdir)/ctapi -I..
+
+ EXTRA_DIST=Info.plist PkgInfo
+
++ifd_cyberjack_la_SOURCES=ifdhandler.c
++
++noinst_HEADERS=\
++ ctbcs.h \
++ ifdhandler.h \
++ pcscdefines.h
++
++if PCSC
++
++INCLUDES=-I$(top_srcdir)/ctapi/include -I$(top_srcdir)/ctapi -I..
++
+ AM_CFLAGS=$(visibility_cflags)
+
+-bundledir=$(libdir)/pcsc/drivers/ifd-cyberjack.bundle/Contents
++bundledir=$(usbdropdir)/ifd-cyberjack.bundle/Contents
+ bundle_DATA=Info.plist PkgInfo
+
+-bundlelinuxdir=$(libdir)/pcsc/drivers/ifd-cyberjack.bundle/Contents/Linux
++bundlelinuxdir=$(usbdropdir)/ifd-cyberjack.bundle/Contents/Linux
+ bundlelinux_LTLIBRARIES=ifd-cyberjack.la
+
+ ifd_cyberjack_la_LDFLAGS=-module
+ ifd_cyberjack_la_LIBADD=$(top_builddir)/ctapi/libctapi-cyberjack.la
+-ifd_cyberjack_la_SOURCES=ifdhandler.c
+
+-noinst_HEADERS=\
+- ctbcs.h \
+- ifdhandler.h \
+- pcscdefines.h
++else
++
++EXTRA_DIST += $(ifd_cyberjack_la_SOURCES) $(noinst_HEADERS)
+
++endif
diff --git a/dev-libs/cyberjack/files/cyberjack-2.0.13-qa.patch b/dev-libs/cyberjack/files/cyberjack-2.0.13-qa.patch
new file mode 100644
index 000000000000..ef3427ddac9c
--- /dev/null
+++ b/dev-libs/cyberjack/files/cyberjack-2.0.13-qa.patch
@@ -0,0 +1,12 @@
+diff -urNp ctapi-cyberjack-2.0.13.org/ctapi/ppa/cjppUpdate.c ctapi-cyberjack-2.0.13.qa/ctapi/ppa/cjppUpdate.c
+--- ctapi-cyberjack-2.0.13.org/ctapi/ppa/cjppUpdate.c 2006-09-29 21:45:59.000000000 +0300
++++ ctapi-cyberjack-2.0.13.qa/ctapi/ppa/cjppUpdate.c 2007-01-18 23:15:54.000000000 +0200
+@@ -11,6 +11,8 @@
+ #endif /* _LINUX */
+
+
++int cjppVerifyKey(HANDLE cjppDevice,unsigned char *sign);
++
+ //extern int cjppVerifyData(HANDLE cjppDevice,unsigned short addr,unsigned char *Data,unsigned char len);
+
+ static void cjppWINAPI ProgressbarThread(ProgressStr *Params)
diff --git a/dev-libs/cyberjack/files/cyberjack-2.0.13-udev.patch b/dev-libs/cyberjack/files/cyberjack-2.0.13-udev.patch
new file mode 100644
index 000000000000..bac228d01f5f
--- /dev/null
+++ b/dev-libs/cyberjack/files/cyberjack-2.0.13-udev.patch
@@ -0,0 +1,15 @@
+diff -urN ctapi-cyberjack-2.0.13.orig/etc/udev/Makefile.am ctapi-cyberjack-2.0.13/etc/udev/Makefile.am
+--- ctapi-cyberjack-2.0.13.orig/etc/udev/Makefile.am 2006-11-22 15:49:56.000000000 +0100
++++ ctapi-cyberjack-2.0.13/etc/udev/Makefile.am 2007-02-12 13:24:55.066001224 +0100
+@@ -3,8 +3,8 @@
+ udevdir=/etc/udev/rules.d
+ udev_DATA=91-cyberjack.rules
+
+-udscriptdir=/sbin
+-udscript_SCRIPTS=udev.cyberjack.sh
++udscriptdir=/lib/udev
++udscript_SCRIPTS=cyberjack.sh
+
+-EXTRA_DIST=91-cyberjack.rules udev.cyberjack.sh
++EXTRA_DIST=91-cyberjack.rules cyberjack.sh
+
diff --git a/dev-libs/cyberjack/files/cyberjack.sh b/dev-libs/cyberjack/files/cyberjack.sh
new file mode 100755
index 000000000000..9993dffb1fee
--- /dev/null
+++ b/dev-libs/cyberjack/files/cyberjack.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+dev_group=cyberjack
+dev_mode=0664
+
+# using the cyberJack libusb driver
+if [ -n "${DEVICE}" ]; then
+ dev="${DEVICE}"
+fi
+
+# using the cyberJack kernel module
+if [ -n "${DEVNAME}" ]; then
+ dev="${DEVNAME}"
+fi
+
+# set device group and permissions
+/bin/chgrp "${dev_group}" "${dev}"
+/bin/chmod "${dev_mode}" "${dev}"
diff --git a/dev-libs/cyberjack/files/digest-cyberjack-2.0.13 b/dev-libs/cyberjack/files/digest-cyberjack-2.0.13
new file mode 100644
index 000000000000..12fed20ceb59
--- /dev/null
+++ b/dev-libs/cyberjack/files/digest-cyberjack-2.0.13
@@ -0,0 +1,3 @@
+MD5 c8d085d47223a75165b6c1126d872030 ctapi-cyberjack-2.0.13.tar.gz 662043
+RMD160 15e6cba26296115133dbfc1379e858468b581110 ctapi-cyberjack-2.0.13.tar.gz 662043
+SHA256 818bd4124c2edb398359b88e80831724dda81cf15a5ee97c312170b5b204891f ctapi-cyberjack-2.0.13.tar.gz 662043
diff --git a/dev-libs/cyberjack/metadata.xml b/dev-libs/cyberjack/metadata.xml
new file mode 100644
index 000000000000..a7162e9b7104
--- /dev/null
+++ b/dev-libs/cyberjack/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+</maintainer>
+</pkgmetadata>