Ticket #52493: Portfile

File Portfile, 1.8 KB (added by lbschenkel (Leonardo Brondani Schenkel), 8 years ago)
Line 
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
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        Yubico yubico-piv-tool ae63ca7ce854c0e03cf30a74d191b01ea63529cd
8version             1.4.3-pre-20161003
9categories          security
10platforms           darwin
11license             BSD-2-Clause
12maintainers         schenkel.net:leonardo openmaintainer
13
14description         Command line tool for the YubiKey PIV application
15long_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.
21homepage            https://developers.yubico.com/yubico-piv-tool
22
23checksums           rmd160  cb12eb38294b6e742b227d87b7de3ca4205f91e7 \
24                    sha256  1342bb25f43ed7d3857d812cda1ce46b72786a063c1eb632c583e657f481cb72
25
26depends_build       port:gengetopt port:help2man
27depends_lib         path:lib/libssl.dylib:openssl
28
29patchfiles          patch-num-slots.diff
30patch.args          -p1
31use_autoreconf      yes
32
33post-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