pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/gpshell Import gpshell-1.4.4 as security/gpsh...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3952d4f2be6d
branches: trunk
changeset: 631729:3952d4f2be6d
user: gdt <gdt%pkgsrc.org@localhost>
date: Wed Mar 12 21:29:24 2014 +0000
description:
Import gpshell-1.4.4 as security/gpshell.
Packaged in wip by Richard Hansen of BBN.
GPShell is a script interpreter which talks to a smart card which
complies to the GlobalPlatform Card Specification. It is written on
top of the GlobalPlatform Library. It uses the PC-SC Connection
Plugin for accessing smart cards. It can establish a secure channel
with a smart card, load, instantiate, delete and list applications on
supported smart cards. These applications are practically always
JavaCard applets.
diffstat:
security/gpshell/DESCR | 7 +++++++
security/gpshell/Makefile | 19 +++++++++++++++++++
security/gpshell/PLIST | 3 +++
security/gpshell/distinfo | 6 ++++++
security/gpshell/patches/patch-src_gpshell.c | 25 +++++++++++++++++++++++++
5 files changed, 60 insertions(+), 0 deletions(-)
diffs (80 lines):
diff -r 8a9fa53806e2 -r 3952d4f2be6d security/gpshell/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gpshell/DESCR Wed Mar 12 21:29:24 2014 +0000
@@ -0,0 +1,7 @@
+GPShell is a script interpreter which talks to a smart card which
+complies to the GlobalPlatform Card Specification. It is written on
+top of the GlobalPlatform Library. It uses the PC-SC Connection
+Plugin for accessing smart cards. It can establish a secure channel
+with a smart card, load, instantiate, delete and list applications on
+supported smart cards. These applications are practically always
+JavaCard applets.
diff -r 8a9fa53806e2 -r 3952d4f2be6d security/gpshell/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gpshell/Makefile Wed Mar 12 21:29:24 2014 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2014/03/12 21:29:24 gdt Exp $
+
+DISTNAME= gpshell-1.4.4
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=globalplatform/GPShell/GPShell-${PKGVERSION_NOREV}/}
+
+MAINTAINER= rhansen%bbn.com@localhost
+HOMEPAGE= http://globalplatform.sourceforge.net/
+COMMENT= Shell to manage the contents of GlobalPlatform smart cards
+LICENSE= gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES+= c
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+.include "../../security/pcsc-lite/buildlink3.mk"
+.include "../../security/libglobalplatform/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8a9fa53806e2 -r 3952d4f2be6d security/gpshell/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gpshell/PLIST Wed Mar 12 21:29:24 2014 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/03/12 21:29:24 gdt Exp $
+bin/gpshell
+man/man1/gpshell.1
diff -r 8a9fa53806e2 -r 3952d4f2be6d security/gpshell/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gpshell/distinfo Wed Mar 12 21:29:24 2014 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/03/12 21:29:24 gdt Exp $
+
+SHA1 (gpshell-1.4.4.tar.gz) = 3efeb92263e881ff0886e73a7b790051a317df61
+RMD160 (gpshell-1.4.4.tar.gz) = cfada5b508651973e7f272d713104d0ec2787178
+Size (gpshell-1.4.4.tar.gz) = 155861 bytes
+SHA1 (patch-src_gpshell.c) = bd70f712c90dcae959d6d25bb5df0f67c8e17490
diff -r 8a9fa53806e2 -r 3952d4f2be6d security/gpshell/patches/patch-src_gpshell.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gpshell/patches/patch-src_gpshell.c Wed Mar 12 21:29:24 2014 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_gpshell.c,v 1.1 2014/03/12 21:29:25 gdt Exp $
+
+Don't exit with an error if the card is locked. See:
+http://sourceforge.net/mailarchive/forum.php?thread_name=CADr12F1tV04Atz-n5f43%2BenQNYF09HXMextZsLF-2QpomQAJWw%40mail.gmail.com&forum_name=opensc-devel
+Not yet reported upstream.
+
+--- src/gpshell.c.orig 2010-10-12 19:49:35.000000000 +0000
++++ src/gpshell.c
+@@ -935,8 +935,14 @@ static int handleCommands(FILE *fd)
+ {
+ _tprintf (_T("select_application() returns 0x%08lX (%s)\n"),
+ status.errorCode, status.errorMessage);
+- rv = EXIT_FAILURE;
+- goto end;
++
++ /* 6283 is warning we want to continue and unlock */
++ if (status.errorCode != OPGP_ISO7816_WARNING_CM_LOCKED)
++ {
++ rv = EXIT_FAILURE;
++ goto end;
++ }
++ status.errorStatus = OPGP_ERROR_STATUS_SUCCESS;
+ }
+ memcpy(selectedAID, optionStr.AID, optionStr.AIDLen);
+ selectedAIDLength = optionStr.AIDLen;
Home |
Main Index |
Thread Index |
Old Index