git: ae6cc1b955c9 - main - security/openvpn: fix up ${name}_flags option

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Tue, 04 Oct 2022 06:21:03 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ae6cc1b955c9ece4d45071ce6a80d6a8ff01c524

commit ae6cc1b955c9ece4d45071ce6a80d6a8ff01c524
Author:     VVD <vvd@unislabs.com>
AuthorDate: 2022-10-04 06:20:03 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2022-10-04 06:20:50 +0000

    security/openvpn: fix up ${name}_flags option
    
    was broken in previous commit; bumping PORTREVISION again
    
    PR:             266796
---
 security/openvpn/Makefile         | 2 +-
 security/openvpn/files/openvpn.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile
index fa3f70c8645c..7e8497100c9e 100644
--- a/security/openvpn/Makefile
+++ b/security/openvpn/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=		openvpn
 DISTVERSION=		2.5.7
-PORTREVISION?=		2
+PORTREVISION?=		3
 CATEGORIES=		security net net-vpn
 MASTER_SITES=		https://swupdate.openvpn.org/community/releases/ \
 			https://build.openvpn.net/downloads/releases/ \
diff --git a/security/openvpn/files/openvpn.in b/security/openvpn/files/openvpn.in
index c6440b0d2140..9a59ed6f011e 100644
--- a/security/openvpn/files/openvpn.in
+++ b/security/openvpn/files/openvpn.in
@@ -130,7 +130,7 @@ eval ": \${${name}_dir:=\"%%PREFIX%%/etc/openvpn\"}"
 configfile="$(eval echo \${${name}_configfile})"
 dir="$(eval echo \${${name}_dir})"
 interfaces="$(eval echo \${${name}_if})"
-flags="$(eval echo \${$name}_flags})"
+flags="$(eval echo \${${name}_flags})"
 
 required_modules=
 for i in $interfaces ; do