diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/pcsc-slb-rf72-drv/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/pcsc-slb-rf72-drv/files')
-rw-r--r-- | sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch | 41 | ||||
-rw-r--r-- | sys-apps/pcsc-slb-rf72-drv/files/reader.conf | 11 |
2 files changed, 52 insertions, 0 deletions
diff --git a/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch b/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch new file mode 100644 index 000000000000..c7ddb87a5a7f --- /dev/null +++ b/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch @@ -0,0 +1,41 @@ +From a0822b820d59a53b0aab87cc12c4d1eae2228561 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Fri, 17 Jun 2016 18:58:05 +0300 +Subject: [PATCH] build: use openct instead of embedded binary ctapi + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> +--- + Makefile | 4 ++-- + ifdhandler.c | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index cdba2b6..319449a 100644 +--- a/Makefile ++++ b/Makefile +@@ -16,7 +16,7 @@ clean: + rm -f test *.o *.lo *.so + + lib: $(OBJ) +- $(LD) -G ifdhandler.o lib/libctapi.a -o libslb_rf72.so ++ $(CC) $(LDFLAGS) -shared `pkg-config --libs-only-L libopenct` -lopenctapi ifdhandler.o -o libslb_rf72.so + + ifdhandler.o: ifdhandler.h ifdhandler.c +- $(CC) $(CFLAGS) -c ifdhandler.c $(INCLUDES) ++ $(CC) $(CFLAGS) `pkg-config --cflags libopenct` -fPIC -DHAVE_PTHREAD_H -c ifdhandler.c $(INCLUDES) +diff --git a/ifdhandler.c b/ifdhandler.c +index cbb3a65..256605e 100644 +--- a/ifdhandler.c ++++ b/ifdhandler.c +@@ -29,7 +29,7 @@ + #include "pcscdefines.h" + #include "ifdhandler.h" + #include <ctapidefines.h> +-#include <ctapi.h> ++#include <openct/ctapi.h> + #include <ctbcs.h> + #include <stdio.h> + #include <string.h> +-- +2.7.3 + diff --git a/sys-apps/pcsc-slb-rf72-drv/files/reader.conf b/sys-apps/pcsc-slb-rf72-drv/files/reader.conf new file mode 100644 index 000000000000..fbf7898ba65e --- /dev/null +++ b/sys-apps/pcsc-slb-rf72-drv/files/reader.conf @@ -0,0 +1,11 @@ +# Configuration file for pcsc-lite +# + +# Schlumberger Reflex 72 reader +FRIENDLYNAME "Schlumberger Reflex 72" +# Update the following to the right COM port +DEVICENAME /dev/null +LIBPATH %PCSC_DRIVERS_DIR%/serial/libslb_rf72.so +CHANNELID 1 + +# End of file |