# -*- 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: Portfile 125085 2014-09-05 01:23:33Z khindenburg@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup OpenVPN easy-rsa 3.0.0-rc2 v categories security platforms darwin supported_archs noarch license GPL-2 maintainers dottedmag.net:dottedmag description Command-line CA tool long_description Command-line CA tool from OpenVPN project distfiles EasyRSA-${version}.tgz github.tarball_from releases checksums rmd160 34b174d90e8781e66b786f3aa944db728f256375 \ sha256 c2125415f129672977820bdc394ee3deb8dab8ea55be524bcd577660070644c2 worksrcdir EasyRSA-${version} patchfiles patch-set-macports-paths.diff use_configure no build {} post-patch { reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/easyrsa reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/vars.example } destroot { xinstall -m 755 ${worksrcpath}/easyrsa ${destroot}${prefix}/bin xinstall -d ${destroot}${prefix}/share/${name}/x509-types xinstall -m 640 -W ${worksrcpath} openssl-1.0.cnf vars.example \ ${destroot}${prefix}/share/${name} eval xinstall -m 640 [glob ${worksrcpath}/x509-types/*] \ ${destroot}${prefix}/share/${name}/x509-types xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 640 -W ${worksrcpath} COPYING ChangeLog Licensing/gpl-2.0.txt \ README.quickstart.md ${destroot}${prefix}/share/doc/${name} eval xinstall -m 640 [glob ${worksrcpath}/doc/*] \ ${destroot}${prefix}/share/doc/${name} }