source: trunk/dports/security/easy-rsa/Portfile @ 125085

Last change on this file since 125085 was 125085, checked in by khindenburg@…, 5 years ago

easy-rsa: do not use /opt/local in diff - instead use dummy variable and reinplace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
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: Portfile 125085 2014-09-05 01:23:33Z khindenburg@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        OpenVPN easy-rsa 3.0.0-rc2 v
8categories          security
9platforms           darwin
10supported_archs     noarch
11license             GPL-2
12maintainers         dottedmag.net:dottedmag
13description         Command-line CA tool
14long_description    Command-line CA tool from OpenVPN project
15
16distfiles           EasyRSA-${version}.tgz
17github.tarball_from releases
18
19checksums           rmd160 34b174d90e8781e66b786f3aa944db728f256375 \
20                    sha256 c2125415f129672977820bdc394ee3deb8dab8ea55be524bcd577660070644c2
21
22worksrcdir          EasyRSA-${version}
23
24patchfiles          patch-set-macports-paths.diff
25
26use_configure       no
27
28build {}
29
30post-patch {
31    reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/easyrsa
32    reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/vars.example
33}
34
35destroot {
36    xinstall -m 755 ${worksrcpath}/easyrsa ${destroot}${prefix}/bin
37
38    xinstall -d ${destroot}${prefix}/share/${name}/x509-types
39    xinstall -m 640 -W ${worksrcpath} openssl-1.0.cnf vars.example \
40        ${destroot}${prefix}/share/${name}
41    eval xinstall -m 640 [glob ${worksrcpath}/x509-types/*] \
42        ${destroot}${prefix}/share/${name}/x509-types
43
44    xinstall -d ${destroot}${prefix}/share/doc/${name}
45    xinstall -m 640 -W ${worksrcpath} COPYING ChangeLog Licensing/gpl-2.0.txt \
46        README.quickstart.md ${destroot}${prefix}/share/doc/${name}
47    eval xinstall -m 640 [glob ${worksrcpath}/doc/*] \
48        ${destroot}${prefix}/share/doc/${name}
49}
Note: See TracBrowser for help on using the repository browser.