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/files
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/files')
-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
6 files changed, 136 insertions, 0 deletions
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