diff options
Diffstat (limited to 'dev-libs/cyberjack/files')
-rw-r--r-- | dev-libs/cyberjack/files/cyberjack-3.99.5_p03-gcc47.patch | 34 | ||||
-rw-r--r-- | dev-libs/cyberjack/files/cyberjack-manpages.patch | 34 | ||||
-rw-r--r-- | dev-libs/cyberjack/files/cyberjack-r1.rules | 18 | ||||
-rw-r--r-- | dev-libs/cyberjack/files/cyberjack-returnvalue.patch | 29 | ||||
-rw-r--r-- | dev-libs/cyberjack/files/cyberjack.rules | 10 |
5 files changed, 125 insertions, 0 deletions
diff --git a/dev-libs/cyberjack/files/cyberjack-3.99.5_p03-gcc47.patch b/dev-libs/cyberjack/files/cyberjack-3.99.5_p03-gcc47.patch new file mode 100644 index 000000000000..035d414a09d9 --- /dev/null +++ b/dev-libs/cyberjack/files/cyberjack-3.99.5_p03-gcc47.patch @@ -0,0 +1,34 @@ +http://bugs.gentoo.org/423757 + +--- libcyberjack/checksuite/cm_distri.cpp ++++ libcyberjack/checksuite/cm_distri.cpp +@@ -15,6 +15,7 @@ + #include "cm_distri.h" + #include "checksuite.h" + ++#include <unistd.h> /* unlink */ + #include <stdlib.h> + #include <stdio.h> + #include <errno.h> +--- tools/fox-dialog/main.cpp ++++ tools/fox-dialog/main.cpp +@@ -9,6 +9,8 @@ + + #include <fx.h> + ++#include <unistd.h> /* unlink */ ++ + #include <sys/types.h> + #include <sys/stat.h> + #include <pwd.h> +--- tools/mac-ui-helper/main.m ++++ tools/mac-ui-helper/main.m +@@ -31,6 +31,8 @@ + #import "PinDialog.h" + #import "Delegate.h" + ++#include <unistd.h> /* unlink */ ++ + #include <sys/types.h> + #include <sys/stat.h> + #include <pwd.h> diff --git a/dev-libs/cyberjack/files/cyberjack-manpages.patch b/dev-libs/cyberjack/files/cyberjack-manpages.patch new file mode 100644 index 000000000000..98568f34910d --- /dev/null +++ b/dev-libs/cyberjack/files/cyberjack-manpages.patch @@ -0,0 +1,34 @@ +From e5d3ac2ab70cb773671a63dfed45816d6e24d36d Mon Sep 17 00:00:00 2001 +From: Christian Ruppert <idl0r@gentoo.org> +Date: Thu, 13 Feb 2014 21:40:48 +0100 +Subject: [PATCH 1/3] Fix installation of man pages + +Signed-off-by: Christian Ruppert <idl0r@gentoo.org> +--- + doc/Makefile.am | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index a0a68f4..cba2e30 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -6,14 +6,12 @@ DOCFILES=\ + #docfiledir=$(datarootdir)/doc/$(PACKAGE) + #docfile_DATA=$(DOCFILES) + +-manpagedir=$(mandir) +-manpage_DATA= \ +- cyberjack.8 ++man8_MANS=cyberjack.8 + + EXTRA_DIST=\ + README.xml LIESMICH.xml \ + verifypin_ascii.c verifypin_fpin2.c \ +- $(DOCFILES) $(manpage_DATA) ++ $(DOCFILES) $(man8_MANS) + + + %.ps: %.xml +-- +1.8.3.2 + diff --git a/dev-libs/cyberjack/files/cyberjack-r1.rules b/dev-libs/cyberjack/files/cyberjack-r1.rules new file mode 100644 index 000000000000..775ed4cb592d --- /dev/null +++ b/dev-libs/cyberjack/files/cyberjack-r1.rules @@ -0,0 +1,18 @@ +# If not adding the device, go away +ACTION!="add", GOTO="cyberjack_rules_end" +SUBSYSTEM!="usb", GOTO="cyberjack_rules_end" +ENV{DEVTYPE}!="usb_device", GOTO="cyberjack_rules_end" + + +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0100", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0300", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0400", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0401", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0500", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0501", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0502", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0504", MODE="660", GROUP="pcscd" +ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0505", MODE="660", GROUP="pcscd" + +# All done +LABEL="cyberjack_rules_end" diff --git a/dev-libs/cyberjack/files/cyberjack-returnvalue.patch b/dev-libs/cyberjack/files/cyberjack-returnvalue.patch new file mode 100644 index 000000000000..0bdf275ff0c8 --- /dev/null +++ b/dev-libs/cyberjack/files/cyberjack-returnvalue.patch @@ -0,0 +1,29 @@ +From b6d3ab6d0324f8b462f57aaa551bd1d4aa1465f3 Mon Sep 17 00:00:00 2001 +From: Christian Ruppert <idl0r@gentoo.org> +Date: Thu, 13 Feb 2014 22:19:40 +0100 +Subject: [PATCH 2/3] Fix return value of rsct_platform_create_com if + --disable-nonserial + +Return NULL instead of CJ_ERR_OPENING_DEVICE (int). + +Signed-off-by: Christian Ruppert <idl0r@gentoo.org> +--- + cjeca32/Platform_unix.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cjeca32/Platform_unix.cpp b/cjeca32/Platform_unix.cpp +index e3f4997..cbe6876 100644 +--- a/cjeca32/Platform_unix.cpp ++++ b/cjeca32/Platform_unix.cpp +@@ -54,7 +54,7 @@ CBaseCommunication *rsct_platform_create_com(const char *deviceName, CReader *re + com=new CUSBUnix(deviceName, reader); + # else + /* libusb and libhal not supported for serial devices */ +- return CJ_ERR_OPENING_DEVICE; ++ return NULL; + # endif + else + com=new CSerialUnix(deviceName, reader); +-- +1.8.3.2 + diff --git a/dev-libs/cyberjack/files/cyberjack.rules b/dev-libs/cyberjack/files/cyberjack.rules new file mode 100644 index 000000000000..ac94b1b663f5 --- /dev/null +++ b/dev-libs/cyberjack/files/cyberjack.rules @@ -0,0 +1,10 @@ +# If not adding the device, go away +ACTION!="add", GOTO="cyberjack_rules_end" +SUBSYSTEM!="usb", GOTO="cyberjack_rules_end" +ENV{DEVTYPE}!="usb_device", GOTO="cyberjack_rules_end" + +# Tested on cyberJack RFID standard +ATTRS{idVendor}=="0c4b", ATTRS{idProduct}=="0500", ENV{PCSCD}="1" + +# All done +LABEL="cyberjack_rules_end" |