On 2019/02/02 18:05, Sebastian Benoit wrote:
> Hi,
> 
> here is a port of the Yubico Personal Identity Verification (PIV) Tool:
> 
>   The Yubico PIV tool is used for interacting with the Privilege and
>   Identification Card (PIV) application on a YubiKey. With it you may
>   generate keys on the device, importing keys and certificates, and
>   create certificate requests, and other operations.
> 
>   See https://developers.yubico.com/PIV/ for more information.
> 
> I have used this to successfully add ssh keys to a Yubikey and use them for
> ssh authentication (without using gnupg).
> 
> Comments?
> Ok?
> 
> /Benno

I've had this sitting in my tree for ages but couldn't get it to work with
my Neo so didn't push it. Couple of tweaks and it's ok with me:


diff --git a/Makefile b/Makefile
index 4ec0d56..818281a 100644
--- a/Makefile
+++ b/Makefile
@@ -7,18 +7,21 @@ HOMEPAGE=     https://developers.yubico.com/yubico-piv-tool/
 YK_PROJECT=    yubico-piv-tool
 DISTNAME=      yubico-piv-tool-1.6.2
 
-SHARED_LIBS +=  ykcs11                    5.4 # 5.4
-SHARED_LIBS +=  ykpiv                     5.4 # 5.4
+SHARED_LIBS +=  ykcs11                    0.0 # 5.4
+SHARED_LIBS +=  ykpiv                     0.0 # 5.4
 
 CATEGORIES=    sysutils
 
-DEPENDS=       devel/check security/pcsc-lite
-
 WANTLIB +=     c pthread crypto pcsclite
 
+BUILD_DEPENDS= devel/check
 LIB_DEPENDS=   security/pcsc-lite
 
 USE_GMAKE=     Yes
 CONFIGURE_STYLE= gnu
+CONFIGURE_ARGS=        --disable-doxygen-doc
+
+post-patch:
+       ${SUBST_CMD} ${WRKSRC}/tool/tests/basic.sh
 
 .include <bsd.port.mk>
diff --git a/pkg/DESCR b/pkg/DESCR
index ee2de19..711d6ec 100644
--- a/pkg/DESCR
+++ b/pkg/DESCR
@@ -1,6 +1,8 @@
-The Yubico PIV tool is used for interacting with the Privilege and
-Identification Card (PIV) application on a YubiKey. With it you may
-generate keys on the device, importing keys and certificates, and
-create certificate requests, and other operations.
+This package provides a tool and library for interacting with the PIV
+("Personal Identity Verification") application on some YubiKey devices.
+This application provides the public key functionality.
+
+The tool allows you to generate keys on the device, import keys and
+certificates, create certificate requests, and perform other operations.
 
 See https://developers.yubico.com/PIV/ for more information.

Reply via email to