initial import wrt bug #62919
authorWolfram Schlich <wschlich@gentoo.org>
Mon, 12 Feb 2007 13:16:53 +0000 (13:16 +0000)
committerWolfram Schlich <wschlich@gentoo.org>
Mon, 12 Feb 2007 13:16:53 +0000 (13:16 +0000)
Package-Manager: portage-2.1.2_rc2-r3

dev-libs/cyberjack/ChangeLog [new file with mode: 0644]
dev-libs/cyberjack/Manifest [new file with mode: 0644]
dev-libs/cyberjack/cyberjack-2.0.13.ebuild [new file with mode: 0644]
dev-libs/cyberjack/files/91-cyberjack.rules [new file with mode: 0644]
dev-libs/cyberjack/files/cyberjack-2.0.13-build.patch [new file with mode: 0644]
dev-libs/cyberjack/files/cyberjack-2.0.13-qa.patch [new file with mode: 0644]
dev-libs/cyberjack/files/cyberjack-2.0.13-udev.patch [new file with mode: 0644]
dev-libs/cyberjack/files/cyberjack.sh [new file with mode: 0755]
dev-libs/cyberjack/files/digest-cyberjack-2.0.13 [new file with mode: 0644]
dev-libs/cyberjack/metadata.xml [new file with mode: 0644]

diff --git a/dev-libs/cyberjack/ChangeLog b/dev-libs/cyberjack/ChangeLog
new file mode 100644 (file)
index 0000000..fde13d4
--- /dev/null
@@ -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 (file)
index 0000000..ecd5668
--- /dev/null
@@ -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 2998 RMD160 c31eae4f37c43e396907767730b2a6cc28b5d216 SHA1 ccfa77c3cd8ea2a1d68523a7216e6f21bfc9345d SHA256 0ad244b9131bdf8966bacf525594001f0775d6911fc2c8dd4e96e0b53c2b138f
+MD5 04811a9bf11aa8d98c77bbc25fd797f4 cyberjack-2.0.13.ebuild 2998
+RMD160 c31eae4f37c43e396907767730b2a6cc28b5d216 cyberjack-2.0.13.ebuild 2998
+SHA256 0ad244b9131bdf8966bacf525594001f0775d6911fc2c8dd4e96e0b53c2b138f cyberjack-2.0.13.ebuild 2998
+MISC ChangeLog 517 RMD160 fe8737f213a76250d11a9fd1b123be5c534294e5 SHA1 9f21df807ccd4cfa6fea6fba2ab493cc52ff5f62 SHA256 0c46c6f8f8e51f2a91ee2dada34729577e5d19512c592bdbf8647bee850fec83
+MD5 3ba6a84f917b29fbcd3fd51aac80016d ChangeLog 517
+RMD160 fe8737f213a76250d11a9fd1b123be5c534294e5 ChangeLog 517
+SHA256 0c46c6f8f8e51f2a91ee2dada34729577e5d19512c592bdbf8647bee850fec83 ChangeLog 517
+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 (file)
index 0000000..0c05478
--- /dev/null
@@ -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 (file)
index 0000000..e75c9f6
--- /dev/null
@@ -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 (file)
index 0000000..6515ba2
--- /dev/null
@@ -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 (file)
index 0000000..ef3427d
--- /dev/null
@@ -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 */\r
\r
\r
++int cjppVerifyKey(HANDLE cjppDevice,unsigned char *sign);\r
++\r
+ //extern int cjppVerifyData(HANDLE cjppDevice,unsigned short addr,unsigned char *Data,unsigned char len);\r
\r
+ static void cjppWINAPI ProgressbarThread(ProgressStr *Params)\r
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 (file)
index 0000000..bac228d
--- /dev/null
@@ -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 (executable)
index 0000000..9993dff
--- /dev/null
@@ -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 (file)
index 0000000..12fed20
--- /dev/null
@@ -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 (file)
index 0000000..a7162e9
--- /dev/null
@@ -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>