diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2011-05-21 19:50:18 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2011-05-21 19:50:18 +0000 |
commit | dddda85f6107390ed80e34ea281449a78b6f9b39 (patch) | |
tree | 98ca0515c8ed93e56acdd39472407a9bfa9c81da /devel/ocfpcsc | |
parent | 17381dea8a9e6e5d5a023c9a3adb70be5915cbf5 (diff) | |
download | ports-dddda85f6107390ed80e34ea281449a78b6f9b39.tar.gz ports-dddda85f6107390ed80e34ea281449a78b6f9b39.zip |
Notes
Diffstat (limited to 'devel/ocfpcsc')
-rw-r--r-- | devel/ocfpcsc/Makefile | 5 | ||||
-rw-r--r-- | devel/ocfpcsc/distinfo | 1 | ||||
-rw-r--r-- | devel/ocfpcsc/files/patch-OCFPCSC1.cpp | 11 | ||||
-rw-r--r-- | devel/ocfpcsc/files/patch-PcscExceptions.cpp | 11 |
4 files changed, 25 insertions, 3 deletions
diff --git a/devel/ocfpcsc/Makefile b/devel/ocfpcsc/Makefile index 3103a7a513de..a89656326b34 100644 --- a/devel/ocfpcsc/Makefile +++ b/devel/ocfpcsc/Makefile @@ -1,17 +1,18 @@ # New ports collection makefile for: ocfpcsc # Date created: 2009-01-07 -# Whom: Marcin Cieslak <saper@SYSTEM.PL> +# Whom: Marcin Cieslak <saper@saper.info> # # $FreeBSD$ # PORTNAME= ocfpcsc PORTVERSION= 0.0.1 +PORTREVISION= 1 CATEGORIES= devel security java MASTER_SITES= http://www.musclecard.com/middleware/files/ DISTNAME= OCFPCSC1-${PORTVERSION} -MAINTAINER= saper@SYSTEM.PL +MAINTAINER= saper@saper.info COMMENT= Open Card Framework to PC/SC bridge LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite diff --git a/devel/ocfpcsc/distinfo b/devel/ocfpcsc/distinfo index 518fc80ac1c2..e971586174ff 100644 --- a/devel/ocfpcsc/distinfo +++ b/devel/ocfpcsc/distinfo @@ -1,3 +1,2 @@ -MD5 (OCFPCSC1-0.0.1.tar.gz) = bf397949bffe3b75b652c6ba44a431dd SHA256 (OCFPCSC1-0.0.1.tar.gz) = 56deb4d4c8b5adb74ca47027d4772353bdb4043a7b414adf3bbed537296518a1 SIZE (OCFPCSC1-0.0.1.tar.gz) = 11436 diff --git a/devel/ocfpcsc/files/patch-OCFPCSC1.cpp b/devel/ocfpcsc/files/patch-OCFPCSC1.cpp new file mode 100644 index 000000000000..27db9875b2d1 --- /dev/null +++ b/devel/ocfpcsc/files/patch-OCFPCSC1.cpp @@ -0,0 +1,11 @@ +--- OCFPCSC1.cpp.orig 2011-05-12 01:27:28.000000000 +0200 ++++ OCFPCSC1.cpp 2011-05-12 01:31:53.000000000 +0200 +@@ -140,7 +140,7 @@ + CONTEXT_INFO cInfo; + + /* check if context exists */ +- if (cPos = isContextAvailable((long)context) < 0) { ++ if ((cPos = isContextAvailable((long)context)) < 0) { + throwPcscException(env, obj, "SCardConnect", "PC/SC Wrapper Error: context not in table", 0); + return 0; + } diff --git a/devel/ocfpcsc/files/patch-PcscExceptions.cpp b/devel/ocfpcsc/files/patch-PcscExceptions.cpp new file mode 100644 index 000000000000..7ea6e8259247 --- /dev/null +++ b/devel/ocfpcsc/files/patch-PcscExceptions.cpp @@ -0,0 +1,11 @@ +--- PcscExceptions.cpp.orig 2011-05-12 01:27:15.000000000 +0200 ++++ PcscExceptions.cpp 2011-05-12 01:28:07.000000000 +0200 +@@ -77,7 +77,7 @@ + /* allocate enough bufferspace for the complete exception message */ + completeMsg = (char *)malloc(strlen(method) + strlen(msg) + 50); + sprintf(completeMsg, "PCSC Exception in method %s: %s\n" \ +- "return code = %8.8x\n", method, msg,returnCode); ++ "return code = %8.8lx\n", method, msg,returnCode); + + if ((exceptionMsg = env->NewStringUTF(completeMsg)) == NULL) { + free(completeMsg); |