diff options
author | arved <arved@FreeBSD.org> | 2005-04-20 20:42:06 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2005-04-20 20:42:06 +0800 |
commit | 8f29541cdda116f17b42492fd66caf0dbcc84edf (patch) | |
tree | 40041e9f93c74c32adb784067db0b309b3e02003 /security/ifd-gpr400 | |
parent | f4edb5ec167492553740055a83b8643eabcb02de (diff) | |
download | freebsd-ports-gnome-8f29541cdda116f17b42492fd66caf0dbcc84edf.tar.gz freebsd-ports-gnome-8f29541cdda116f17b42492fd66caf0dbcc84edf.tar.zst freebsd-ports-gnome-8f29541cdda116f17b42492fd66caf0dbcc84edf.zip |
pcsc-lite:
- Upgrade to 1.2.9.b.7
- Use libtool15
- make hier(7)-compliant by moving the pcsc/drivers to lib/pcsc/drivers
- Compile with USB support per default. Use WITHOUT_USB to disable usb
support
- Chase libusb shared library version (Forgotten by leeym)
Based on: PR 76068
Reviewed by: maintainer, sem (earlier patch)
ifd-devkit:
- Chase pcsclite sharedlibrary version
ifd-gempc410:
- Unbreak by updating to 0.9.3
- Move library to lib/pcsc/drivers
- Chase pcsclite sharedlibrary version
NOTE: This was not tested, I don't own the specific hardware
ifd-gpr400:
- Chase pcsclite sharedlibrary version
- Fix build with new pcsc-lite
- Chase new pcsclite drivers location
ifd-slb_rf60:
- Chase pcsclite sharedlibrary version
ifd-test:
- Chase pcsclite sharedlibrary version
- Fix build with new pcsclite
libchipcard:
- Update to 0.9.1[1]
- Chase pcsclite shared library version
- Fix build with new pcsclite
[1]PR: 78815
[1]Submitted by: lofi
opensc:
- Chase pcsclite shared library version
- Fix build on CURRENT
opensc-esteid
- Chase pcsclite shared library version
- Fix build with new pcsclite
p5-PCSC-Card:
- Update to 1.4.2
- Chase pcsclite shared library version
- Fix build with new pcsclite
ruby-pcsc-lite
- Mark broken, does not compile with new pcsc-lite
Maintainer will work on new version
Submitted by: maintainer
Diffstat (limited to 'security/ifd-gpr400')
-rw-r--r-- | security/ifd-gpr400/Makefile | 2 | ||||
-rw-r--r-- | security/ifd-gpr400/files/patch-Makefile | 60 | ||||
-rw-r--r-- | security/ifd-gpr400/files/patch-gpr400_ifd.c | 21 |
3 files changed, 46 insertions, 37 deletions
diff --git a/security/ifd-gpr400/Makefile b/security/ifd-gpr400/Makefile index c130e86d696f..a3268b384adc 100644 --- a/security/ifd-gpr400/Makefile +++ b/security/ifd-gpr400/Makefile @@ -14,7 +14,7 @@ MAINTAINER= bms@FreeBSD.org COMMENT= PC/SC Lite driver for Gemplus GPR400 PCMCIA Smart Card Readers BUILD_DEPENDS= ${LOCALBASE}/include/ifdhandler.h:${PORTSDIR}/security/ifd-devkit -LIB_DEPENDS= pcsclite.0:${PORTSDIR}/devel/pcsc-lite +LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite MAKE_ENV+= DESTDIR="${PREFIX}" diff --git a/security/ifd-gpr400/files/patch-Makefile b/security/ifd-gpr400/files/patch-Makefile index 08bead01bc8f..2fe1fd689fe1 100644 --- a/security/ifd-gpr400/files/patch-Makefile +++ b/security/ifd-gpr400/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig Thu Aug 9 06:14:42 2001 -+++ Makefile Sun Sep 8 18:11:11 2002 -@@ -1,36 +1,41 @@ +--- Makefile.orig Thu Aug 9 07:14:42 2001 ++++ Makefile Mon Apr 11 21:07:03 2005 +@@ -1,36 +1,39 @@ -# GPR400 IFD Handler Makefile -# -# Author: Joe Phillips <joe.phillips@innovationsw.com> @@ -16,32 +16,43 @@ -LEX = flex -OBJ := $(filter-out test.o, $(patsubst %.c,%.o,$(wildcard *.c))) -INCLUDE = -I. -+#XXX -+PREFIX?= /usr/local +DESTDIR?= ${PREFIX} -+ + +-MAKEXE = make +-LIBNAME = libgpr400_ifd.so +-PREFIX = /usr/local/pcsc +# XXX +LIBDIR= /lib +#LIBDIR= /pcsc +INCSDIR= /include -+ + +-DEFS = -DPCSC_DEBUG=1 #-DATR_DEBUG=1 +SHLIB_NAME= libgpr400_ifd.so +SHLIB_MAJOR= 0 +SHLIB_MINOR= 3 -+ + +-all: unix +NOMAN= 1 +NOPROFILE= 1 -+ + +-clean: +- rm -f *.o $(LIBNAME) core +.if !defined(NO_DEBUG) +CFLAGS+= -g -Wall +.endif -+ + +-osx: $(OBJ) +- $(CC) -dynamiclib $(OBJ) -o $(LIBNAME) +GPRDEVNAME?= /dev/gprsc0 -+ -+CFLAGS+= -I. -I${DESTDIR}${INCSDIR} -DGPRDEVNAME=\"${GPRDEVNAME}\" + +-unix: $(OBJ) +- $(LD) -shared $(OBJ) -o $(LIBNAME) ++CFLAGS+= -I. -I${DESTDIR}${INCSDIR}/PCSC -I${DESTDIR}${INCSDIR} -DGPRDEVNAME=\"${GPRDEVNAME}\" +LDFLAGS+= -L${DESTDIR}/lib +LDADD+= -lpcsclite -+ + +-$(patsubst %.c,%.o,$(wildcard *.c)) : %.o : %.c +- $(CC) $(CFLAGS) -c $< $(INCLUDE) $(DEFS) +.if !defined(NO_PCSC_DEBUG) +CFLAGS+= -DPCSC_DEBUG=1 +.if defined(PCSC_ATR_DEBUG) @@ -49,27 +60,8 @@ +.endif +.endif --MAKEXE = make --LIBNAME = libgpr400_ifd.so --PREFIX = /usr/local/pcsc +-## +SRCS= gpr400_ifd.c +INCS= gpr400.h - --DEFS = -DPCSC_DEBUG=1 #-DATR_DEBUG=1 -- --all: unix -- --clean: -- rm -f *.o $(LIBNAME) core -- --osx: $(OBJ) -- $(CC) -dynamiclib $(OBJ) -o $(LIBNAME) -- --unix: $(OBJ) -- $(LD) -shared $(OBJ) -o $(LIBNAME) -- --$(patsubst %.c,%.o,$(wildcard *.c)) : %.o : %.c -- $(CC) $(CFLAGS) -c $< $(INCLUDE) $(DEFS) -- --## ++ +.include <bsd.lib.mk> diff --git a/security/ifd-gpr400/files/patch-gpr400_ifd.c b/security/ifd-gpr400/files/patch-gpr400_ifd.c index ff08a8b8f152..eab88a809cfc 100644 --- a/security/ifd-gpr400/files/patch-gpr400_ifd.c +++ b/security/ifd-gpr400/files/patch-gpr400_ifd.c @@ -1,5 +1,5 @@ ---- gpr400_ifd.c.orig Wed Aug 22 03:21:43 2001 -+++ gpr400_ifd.c Sun Sep 8 18:10:47 2002 +--- gpr400_ifd.c.orig Wed Aug 22 04:21:43 2001 ++++ gpr400_ifd.c Mon Apr 11 21:09:23 2005 @@ -77,7 +77,7 @@ printf("IFDHCreateChannel:\n"); #endif @@ -9,3 +9,20 @@ if(gpr_fd < 0){ return IFD_COMMUNICATION_ERROR; } +@@ -597,16 +597,6 @@ + RxLength should be zero on error. + * + **/ +-RESPONSECODE IFDHControl ( DWORD Lun, PUCHAR TxBuffer, +- DWORD TxLength, PUCHAR RxBuffer, +- PDWORD RxLength ) +-{ +-#ifdef PCSC_DEBUG +- printf("IFDHControl:\n"); +-#endif +- return IFD_NOT_SUPPORTED; +- +-}/* IFDHControl */ + + /** + * check if there is a smartcard in the reader |