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 <ohauer@gmx.de>

Approved by: miwi (mentor)
This commit is contained in:
Matthias Andree 2010-06-05 14:12:29 +00:00
parent 107565e69e
commit 614a8b617c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255784

View File

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