Ticket #44287: Portfile

File Portfile, 1.5 KB (added by dottedmag@…, 10 years ago)

Updated portfile

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        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
18checksums rmd160 34b174d90e8781e66b786f3aa944db728f256375 \
19    sha256 c2125415f129672977820bdc394ee3deb8dab8ea55be524bcd577660070644c2
20
21worksrcdir          EasyRSA-${version}
22
23patchfiles          patch-set-macports-paths.diff
24
25use_configure       no
26
27build {}
28
29destroot {
30    xinstall -d ${destroot}${prefix}/bin
31    xinstall -m 755 ${worksrcpath}/easyrsa ${destroot}${prefix}/bin
32
33    xinstall -d ${destroot}${prefix}/share/${name}/x509-types
34    xinstall -m 640 -W ${worksrcpath} openssl-1.0.cnf vars.example \
35        ${destroot}${prefix}/share/${name}
36    eval xinstall -m 640 [glob ${worksrcpath}/x509-types/*] \
37        ${destroot}${prefix}/share/${name}/x509-types
38
39    xinstall -d ${destroot}${prefix}/share/doc/${name}
40    xinstall -m 640 -W ${worksrcpath} COPYING ChangeLog Licensing/gpl-2.0.txt \
41        README.quickstart.md ${destroot}${prefix}/share/doc/${name}
42    eval xinstall -m 640 [glob ${worksrcpath}/doc/*] \
43        ${destroot}${prefix}/share/doc/${name}
44}