[125071] trunk/dports/security

khindenburg at macports.org khindenburg at macports.org
Thu Sep 4 06:53:12 PDT 2014


Revision: 125071
          https://trac.macports.org/changeset/125071
Author:   khindenburg at macports.org
Date:     2014-09-04 06:53:12 -0700 (Thu, 04 Sep 2014)
Log Message:
-----------
easy-rsa: new port w/ maintainer #44287

Added Paths:
-----------
    trunk/dports/security/easy-rsa/
    trunk/dports/security/easy-rsa/Portfile
    trunk/dports/security/easy-rsa/files/
    trunk/dports/security/easy-rsa/files/patch-set-macports-paths.diff

Added: trunk/dports/security/easy-rsa/Portfile
===================================================================
--- trunk/dports/security/easy-rsa/Portfile	                        (rev 0)
+++ trunk/dports/security/easy-rsa/Portfile	2014-09-04 13:53:12 UTC (rev 125071)
@@ -0,0 +1,45 @@
+# -*- 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$
+
+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 {}
+
+destroot {
+    xinstall -d ${destroot}${prefix}/bin
+    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}
+}


Property changes on: trunk/dports/security/easy-rsa/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/security/easy-rsa/files/patch-set-macports-paths.diff
===================================================================
--- trunk/dports/security/easy-rsa/files/patch-set-macports-paths.diff	                        (rev 0)
+++ trunk/dports/security/easy-rsa/files/patch-set-macports-paths.diff	2014-09-04 13:53:12 UTC (rev 125071)
@@ -0,0 +1,43 @@
+--- easyrsa
++++ easyrsa
+@@ -885,7 +885,7 @@ vars_setup() {
+ 	local vars=
+ 
+ 	# set up program path
+-	local prog_vars="${0%/*}/vars"
++	local prog_vars="/opt/local/share/easy-rsa"
+ 
+ 	# command-line path:
+ 	if [ -f "$EASYRSA_VARS_FILE" ]; then
+@@ -910,9 +910,9 @@ Note: using Easy-RSA configuration from: $vars"
+ 	fi
+ 	
+ 	# Set defaults, preferring existing env-vars if present
+-	set_var EASYRSA		"$PWD"
++	set_var EASYRSA		"/opt/local/share/easy-rsa"
+ 	set_var EASYRSA_OPENSSL	openssl
+-	set_var EASYRSA_PKI	"$EASYRSA/pki"
++	set_var EASYRSA_PKI	"$PWD/pki"
+ 	set_var EASYRSA_DN	cn_only
+ 	set_var EASYRSA_REQ_COUNTRY	"US"
+ 	set_var EASYRSA_REQ_PROVINCE	"California"
+--- vars.example
++++ vars.example
+@@ -42,7 +42,7 @@ fi
+ # This variable should point to the top level of the easy-rsa tree. By default,
+ # this is taken to be the directory you are currently in.
+ 
+-#set_var EASYRSA	"$PWD"
++#set_var EASYRSA	"/opt/local/share/easy-rsa"
+ 
+ # If your OpenSSL command is not in the system PATH, you will need to define the
+ # path to it here. Normally this means a full path to the executable, otherwise
+@@ -62,7 +62,7 @@ fi
+ # WARNING: init-pki will do a rm -rf on this directory so make sure you define
+ # it correctly! (Interactive mode will prompt before acting.)
+ 
+-#set_var EASYRSA_PKI		"$EASYRSA/pki"
++#set_var EASYRSA_PKI		"$PWD/pki"
+ 
+ # Define X509 DN mode.
+ # This is used to adjust what elements are included in the Subject field as the DN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140904/a32d3424/attachment-0001.html>


More information about the macports-changes mailing list