[154025] trunk/dports/security

cal at macports.org cal at macports.org
Tue Oct 18 20:08:32 CEST 2016


Revision: 154025
          https://trac.macports.org/changeset/154025
Author:   cal at macports.org
Date:     2016-10-18 11:08:32 -0700 (Tue, 18 Oct 2016)
Log Message:
-----------
yubico-piv-tool: new port

Closes: #52493

Added Paths:
-----------
    trunk/dports/security/yubico-piv-tool/
    trunk/dports/security/yubico-piv-tool/Portfile
    trunk/dports/security/yubico-piv-tool/files/
    trunk/dports/security/yubico-piv-tool/files/p11-kit.module
    trunk/dports/security/yubico-piv-tool/files/patch-num-slots.diff

Added: trunk/dports/security/yubico-piv-tool/Portfile
===================================================================
--- trunk/dports/security/yubico-piv-tool/Portfile	                        (rev 0)
+++ trunk/dports/security/yubico-piv-tool/Portfile	2016-10-18 18:08:32 UTC (rev 154025)
@@ -0,0 +1,46 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           github 1.0
+
+github.setup        Yubico yubico-piv-tool ae63ca7ce854c0e03cf30a74d191b01ea63529cd
+version             1.4.3-pre-20161003
+categories          security
+platforms           darwin
+license             BSD-2-Clause
+maintainers         schenkel.net:leonardo openmaintainer
+
+description         Command line tool for the YubiKey PIV application
+long_description    \
+    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. \
+    A shared library and a command-line tool is included.
+homepage            https://developers.yubico.com/yubico-piv-tool
+
+checksums           rmd160  cb12eb38294b6e742b227d87b7de3ca4205f91e7 \
+                    sha256  1342bb25f43ed7d3857d812cda1ce46b72786a063c1eb632c583e657f481cb72
+
+depends_build       port:gengetopt port:help2man port:pkgconfig
+depends_lib         path:lib/libssl.dylib:openssl
+
+patchfiles          patch-num-slots.diff
+patch.args          -p1
+use_autoreconf      yes
+
+post-destroot {
+    # symlink PKCS#11 module in the standard pkcs11 module directory
+    set p11kit_module_path ${prefix}/lib/pkcs11
+    xinstall -d ${destroot}${p11kit_module_path}
+    ln -s ${prefix}/lib/libykcs11.dylib \
+          ${destroot}${p11kit_module_path}/libykcs11.so
+
+    # register PKCS#11 module so it will be auto-discovered by p11-kit
+    set p11kit_module_configs ${prefix}/share/p11-kit/modules
+    xinstall -d ${destroot}${p11kit_module_configs}
+    xinstall ${filespath}/p11-kit.module \
+             ${destroot}${p11kit_module_configs}/${name}.module
+}
+


Property changes on: trunk/dports/security/yubico-piv-tool/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/security/yubico-piv-tool/files/p11-kit.module
===================================================================
--- trunk/dports/security/yubico-piv-tool/files/p11-kit.module	                        (rev 0)
+++ trunk/dports/security/yubico-piv-tool/files/p11-kit.module	2016-10-18 18:08:32 UTC (rev 154025)
@@ -0,0 +1,2 @@
+module: libykcs11.so
+

Added: trunk/dports/security/yubico-piv-tool/files/patch-num-slots.diff
===================================================================
--- trunk/dports/security/yubico-piv-tool/files/patch-num-slots.diff	                        (rev 0)
+++ trunk/dports/security/yubico-piv-tool/files/patch-num-slots.diff	2016-10-18 18:08:32 UTC (rev 154025)
@@ -0,0 +1,23 @@
+Upstream-Status: Backport [https://github.com/Yubico/yubico-piv-tool/commit/af78e18151766754b07778060e1f7e302a150431]
+--- a/ykcs11/ykcs11.c
++++ b/ykcs11/ykcs11.c
+@@ -198,14 +198,17 @@ CK_DEFINE_FUNCTION(CK_RV, C_GetSlotList)(
+     return CKR_CRYPTOKI_NOT_INITIALIZED;
+   }
+
+-  if (pSlotList == NULL_PTR) {
+-    // Just return the number of slots
++  if (pulCount) {
+     *pulCount = n_slots;
+
+     if (tokenPresent)
+       *pulCount = n_slots_with_token;
+     else
+       *pulCount = n_slots;
++  }
++
++  if (pSlotList == NULL_PTR) {
++    // Just return the number of slots
+
+     DOUT;
+     return CKR_OK;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161018/ecac4f96/attachment-0002.html>


More information about the macports-changes mailing list