git: ba512460613a - 2026Q3 - security/openvpn: Needs addition to SHEBANG_FILES and some cleanup

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 25 Jul 2026 02:04:48 UTC
The branch 2026Q3 has been updated by vvd:

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

commit ba512460613a7dec1c2f0409e9c5b875f30469e5
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2026-07-25 02:03:07 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-07-25 02:04:42 +0000

    security/openvpn: Needs addition to SHEBANG_FILES and some cleanup
    
    - Remove unnecessary GNU_CONFIGURE_MANPREFIX.
    - Improve post-install-EXAMPLES-on.
    
    PR:             296890
    Sponsored by:   UNIS Labs
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
    MFH:            2026Q3
    
    (cherry picked from commit 83283c284c4a9dd90ba4ce23a50d1cfb1005dbdf)
---
 security/openvpn/Makefile | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile
index a4e7892bf6e7..d23d8d0643e3 100644
--- a/security/openvpn/Makefile
+++ b/security/openvpn/Makefile
@@ -1,12 +1,12 @@
 PORTNAME=		openvpn
 DISTVERSION=		2.7.5
-PORTREVISION?=		0
+PORTREVISION=		1
 CATEGORIES=		security net net-vpn
 MASTER_SITES=		https://swupdate.openvpn.org/community/releases/ \
 			https://build.openvpn.net/downloads/releases/
 
 MAINTAINER=		mandree@FreeBSD.org
-COMMENT?=		Secure IP/Ethernet tunnel daemon
+COMMENT=		Secure IP/Ethernet tunnel daemon
 WWW=			https://openvpn.net/community/
 
 LICENSE=		GPLv2
@@ -14,24 +14,24 @@ LICENSE_FILE=		${WRKSRC}/COPYRIGHT.GPL
 
 BUILD_DEPENDS+=		cmocka>=0:sysutils/cmocka \
 			rst2man:textproc/py-docutils@${PY_FLAVOR}
-
 TEST_DEPENDS=		fping:net/fping
 
 USES=			cpe libtool localbase:ldflags pkgconfig python:build shebangfix ssl
 USE_RC_SUBR=		openvpn
 
-SHEBANG_FILES=		sample/sample-scripts/auth-pam.pl \
+SHEBANG_FILES=		sample/sample-plugins/keying-material-exporter-demo/http-client.py \
+			sample/sample-plugins/keying-material-exporter-demo/http-server.py \
+			sample/sample-scripts/auth-pam.pl \
 			sample/sample-scripts/totpauth.py \
 			sample/sample-scripts/ucn.pl \
 			sample/sample-scripts/verify-cn
 
 GNU_CONFIGURE=		yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 CONFIGURE_ARGS+=	--with-crypto-library=openssl
 # set PLUGIN_LIBDIR so that unqualified plugin paths are found:
 CONFIGURE_ENV+=		PLUGINDIR="${PREFIX}/lib/openvpn/plugins"
 
-CONFLICTS_INSTALL?=	openvpn-devel
+CONFLICTS_INSTALL=	openvpn-devel
 
 SUB_FILES=		pkg-message openvpn-client
 
@@ -117,9 +117,6 @@ post-patch:
 		${WRKSRC}/doc/man-sections/generic-options.rst
 
 pre-configure:
-	# just too many of sign-compare; bitwise-instead-of-logical was audited and is intentional,
-	# and unused-function affects test---these are developer-side warnings, not relevant on end systems
-	${REINPLACE_CMD} 's/-Wsign-compare/-Wno-unknown-warning-option -Wno-sign-compare -Wno-bitwise-instead-of-logical -Wno-unused-function/' ${WRKSRC}/configure
 .ifdef (LOG_OPENVPN)
 	@${ECHO} "Building with LOG_OPENVPN=${LOG_OPENVPN}"
 .else
@@ -168,8 +165,9 @@ post-install-DOCS-on:
 .endif
 
 post-install-EXAMPLES-on:
-	(cd ${WRKSRC}/sample && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}/)
-	${CHMOD} ${BINMODE} ${STAGEDIR}${EXAMPLESDIR}/sample-scripts/*
-	${RM} ${STAGEDIR}${EXAMPLESDIR}/sample-config-files/*.orig
+	(cd ${WRKSRC}/sample && \
+		${COPYTREE_SHARE} "sample-config-files sample-keys sample-plugins" \
+			${STAGEDIR}${EXAMPLESDIR} '! -name "*.orig"' && \
+		${COPYTREE_BIN} sample-scripts ${STAGEDIR}${EXAMPLESDIR} '! -name "*.orig"')
 
 .include <bsd.port.post.mk>