From 5255c873c1d1d5a43e39389b0338425007bce643 Mon Sep 17 00:00:00 2001 From: mandree Date: Sat, 5 Jun 2010 14:12:29 +0000 Subject: [PATCH] Fix bashisms (source FILE -> . FILE) replace shebang-lines /bin/bash -> /bin/sh bump portrevision (changed files) based on: PR: ports/147472 Submitted by: Olli Hauer Approved by: miwi (mentor) --- security/openvpn/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile index 8239c8c128875..efb663981b4ec 100644 --- a/security/openvpn/Makefile +++ b/security/openvpn/Makefile @@ -7,6 +7,7 @@ PORTNAME= openvpn DISTVERSION= 2.1.1 +PORTREVISION= 1 CATEGORIES= security net # MASTER_SITES points to hosts in distinct data centers, # so just one MASTER_SITES entry should be OK. @@ -73,6 +74,9 @@ CONFIGURE_ARGS+= --disable-pkcs11 .endif post-patch: + @${FIND} ${WRKSRC}/easy-rsa/?.0 -type f \ + -exec ${REINPLACE_CMD} -e 's;#!/bin/bash;#!/bin/sh;' \ + -e 's,source ./vars,. ./vars,' \{\} + @${FIND} ${WRKSRC} -name \*.orig -delete @${FIND} ${WRKSRC} -name \*.bak -delete