[125071] trunk/dports/security

Ryan Schmidt ryandesign at macports.org
Thu Sep 4 10:36:28 PDT 2014


On Sep 4, 2014, at 8:53 AM, khindenburg at macports.org wrote:
> 
> Revision
> 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


> +destroot {
> +    xinstall -d ${destroot}${prefix}/bin

No need to create this directory manually: MacPorts creates standard directories for you.


> --- 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"

> +-	set_var EASYRSA		"$PWD"
> ++	set_var EASYRSA		"/opt/local/share/easy-rsa"

> +-#set_var EASYRSA	"$PWD"
> ++#set_var EASYRSA	"/opt/local/share/easy-rsa"

"/opt/local" must not be hardcoded in this file; arrange (e.g. via a placeholder and a post-patch reinplace) to use the value of the ${prefix} variable. I guess this will change the files that get installed, which would mean the port's revision should increase when this is fixed.





More information about the macports-dev mailing list