| 1 | # -*- 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 |
| 2 | # $Id$ |
| 3 | |
| 4 | PortSystem 1.0 |
| 5 | PortGroup github 1.0 |
| 6 | |
| 7 | github.setup Yubico yubico-piv-tool ae63ca7ce854c0e03cf30a74d191b01ea63529cd |
| 8 | version 1.4.3-pre-20161003 |
| 9 | categories security |
| 10 | platforms darwin |
| 11 | license BSD-2-Clause |
| 12 | maintainers schenkel.net:leonardo openmaintainer |
| 13 | |
| 14 | description Command line tool for the YubiKey PIV application |
| 15 | long_description \ |
| 16 | The Yubico PIV tool is used for interacting with the Privilege and \ |
| 17 | Identification Card (PIV) application on a YubiKey.\ |
| 18 | With it you may generate keys on the device, importing keys and \ |
| 19 | certificates, and create certificate requests, and other operations. \ |
| 20 | A shared library and a command-line tool is included. |
| 21 | homepage https://developers.yubico.com/yubico-piv-tool |
| 22 | |
| 23 | checksums rmd160 cb12eb38294b6e742b227d87b7de3ca4205f91e7 \ |
| 24 | sha256 1342bb25f43ed7d3857d812cda1ce46b72786a063c1eb632c583e657f481cb72 |
| 25 | |
| 26 | depends_build port:help2man |
| 27 | depends_lib lib:libcrypto:openssl |
| 28 | |
| 29 | patchfiles patch-num-slots.diff |
| 30 | patch.args -p1 |
| 31 | use_autoreconf yes |
| 32 | |
| 33 | post-destroot { |
| 34 | # symlink PKCS#11 module in the standard pkcs11 module directory |
| 35 | set p11kit_module_path ${prefix}/lib/pkcs11 |
| 36 | xinstall -d ${destroot}${p11kit_module_path} |
| 37 | ln -s ${prefix}/lib/libykcs11.dylib \ |
| 38 | ${destroot}${p11kit_module_path}/libykcs11.so |
| 39 | |
| 40 | # register PKCS#11 module so it will be auto-discovered by p11-kit |
| 41 | set p11kit_module_configs ${prefix}/share/p11-kit/modules |
| 42 | xinstall -d ${destroot}/${p11kit_module_configs} |
| 43 | xinstall ${filespath}/p11-kit.module \ |
| 44 | ${destroot}${p11kit_module_configs}/${name}.module |
| 45 | } |
| 46 | |