View | Details | Raw Unified | Return to bug 76091
Collapse All | Expand All

(-)Makefile (-2 / +3 lines)
Lines 14-22 Link Here
14
MAINTAINER=	toni@soth.at
14
MAINTAINER=	toni@soth.at
15
COMMENT=	PC/SC Lite driver for the Reflex 62 serial smart card reader
15
COMMENT=	PC/SC Lite driver for the Reflex 62 serial smart card reader
16
16
17
LIB_DEPENDS=	pcsclite.0:${PORTSDIR}/devel/pcsc-lite
17
LIB_DEPENDS=	pcsclite.1:${PORTSDIR}/devel/pcsc-lite
18
18
19
USE_GMAKE=	yes
19
USE_GMAKE=	yes
20
CFLAGS+=	-fPIC
20
21
21
PKGMESSAGE=	${WRKDIR}/pkg-message
22
PKGMESSAGE=	${WRKDIR}/pkg-message
22
WRKSRC=		${WRKDIR}/${PORTNAME:S/^ifd-//}
23
WRKSRC=		${WRKDIR}/${PORTNAME:S/^ifd-//}
Lines 25-31 Link Here
25
PLIST_FILES=	pcsc/drivers/libslb_rf60.so
26
PLIST_FILES=	pcsc/drivers/libslb_rf60.so
26
27
27
do-install:
28
do-install:
28
	test -f ${PREFIX}/pcsc/drivers/ || ${MKDIR} ${PREFIX}/pcsc/drivers/
29
	test -d ${PREFIX}/pcsc/drivers/ || ${MKDIR} ${PREFIX}/pcsc/drivers/
29
	${INSTALL_DATA} ${WRKSRC}/libslb_rf60.so \
30
	${INSTALL_DATA} ${WRKSRC}/libslb_rf60.so \
30
		${PREFIX}/pcsc/drivers/libslb_rf60.so
31
		${PREFIX}/pcsc/drivers/libslb_rf60.so
31
32
(-)files/patch-Makefile (-14 / +22 lines)
Lines 1-14 Link Here
1
1
--- Makefile.bak	Tue Jan 11 10:59:54 2005
2
$FreeBSD: ports/security/ifd-slb_rf60/files/patch-Makefile,v 1.1 2005/01/08 11:11:18 krion Exp $
2
+++ Makefile	Tue Jan 11 11:00:03 2005
3
3
@@ -16,19 +16,13 @@
4
--- Makefile.orig
4
 	$(LD) -shared $(OBJS) -o $(LIBN)
5
+++ Makefile
5
 
6
@@ -2,7 +2,7 @@
6
 test: test.c $(OBJS)
7
 # Linux Serial Driver
7
-	$(CC) -o test test.c $(OBJS)
8
 # Implementation
8
 
9
 
9
 ifdhandler.o: ifdhandler.h ifdhandler.c
10
-CC   = gcc -DCPU_ICAP_PC=1
10
-	$(CC) -c ifdhandler.c
11
+CC   = gcc -DCPU_ICAP_PC=1 -fPIC
11
 
12
 LD   = ld
12
 T1Hndlr.o: T1Hndlr.h T1Hndlr.c
13
 OBJS = serial.o ifdhandler.o ctapi.o AdmHndlr.o T1Hndlr.o
13
-	$(CC) -c T1Hndlr.c
14
 LIBN = libslb_rf60.so
14
 
15
 AdmHndlr.o: AdmHndlr.h AdmHndlr.c
16
-	$(CC) -c AdmHndlr.c
17
 
18
 ctapi.o: ctapi.h ctapi.c
19
-	$(CC) -c ctapi.c
20
 
21
 scio.o: serial.h serial.c
22
-	$(CC) -c serial.c
(-)files/patch-ctapi.c (-4 / +4 lines)
Lines 5-11 Link Here
5
 
5
 
6
     #ifndef SUN_SPARC
6
     #ifndef SUN_SPARC
7
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS0");
7
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS0");
8
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa0");
8
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad0");
9
     #endif
9
     #endif
10
 
10
 
11
     break;
11
     break;
Lines 14-20 Link Here
14
 
14
 
15
     #ifndef SUN_SPARC
15
     #ifndef SUN_SPARC
16
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS1");
16
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS1");
17
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa1");
17
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad1");
18
     #endif
18
     #endif
19
 
19
 
20
     break;
20
     break;
Lines 23-29 Link Here
23
 
23
 
24
     #ifndef SUN_SPARC
24
     #ifndef SUN_SPARC
25
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS2");
25
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS2");
26
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa2");
26
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad2");
27
     #endif
27
     #endif
28
 
28
 
29
     break;
29
     break;
Lines 32-38 Link Here
32
 
32
 
33
     #ifndef SUN_SPARC
33
     #ifndef SUN_SPARC
34
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS3");
34
-     BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS3");
35
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa3");
35
+     BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad3");
36
     #endif
36
     #endif
37
 
37
 
38
     break;
38
     break;
(-)files/pkg-message.in (-2 / +2 lines)
Lines 1-10 Link Here
1
------------------------------------------------------------------------
1
------------------------------------------------------------------------
2
2
3
You can activate the driver on /dev/cuaa0 by adding the following
3
You can activate the driver on /dev/cuad0 by adding the following
4
lines to %%PREFIX%%/etc/reader.conf:
4
lines to %%PREFIX%%/etc/reader.conf:
5
5
6
FRIENDLYNAME     "Reflex 62"
6
FRIENDLYNAME     "Reflex 62"
7
DEVICENAME       GEN_SMART_RDR
7
DEVICENAME       /dev/cuad0
8
LIBPATH          %%PREFIX%%/pcsc/drivers/libslb_rf60.so
8
LIBPATH          %%PREFIX%%/pcsc/drivers/libslb_rf60.so
9
CHANNELID        0x0103F8
9
CHANNELID        0x0103F8

Return to bug 76091