git: af1c13c59344 - 2023Q4 - security/openvpn: add missing 2.6.x documentation,

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Wed, 22 Nov 2023 22:43:50 UTC
The branch 2023Q4 has been updated by mandree:

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

commit af1c13c593447dd0b5ee7205a97c47f11dbeff25
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2023-11-22 22:39:30 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2023-11-22 22:43:45 +0000

    security/openvpn: add missing 2.6.x documentation,
    
    ...for instance, README.dco.md but also others.
    
    Update DCO help text to refer to this .md file.
    
    Found while debugging
    PR:             275206
    MFH:            2023Q4
    
    (cherry picked from commit d67975600c84a139dea0cc29490273c79eccb564)
---
 security/openvpn/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile
index 9a7597924532..287566b2c685 100644
--- a/security/openvpn/Makefile
+++ b/security/openvpn/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=		openvpn
 DISTVERSION=		2.6.8
-PORTREVISION?=		0
+PORTREVISION?=		1
 CATEGORIES=		security net net-vpn
 MASTER_SITES=		https://swupdate.openvpn.org/community/releases/ \
 			https://build.openvpn.net/downloads/releases/ \
@@ -46,7 +46,7 @@ OPTIONS_EXCLUDE_FreeBSD_12=	DCO # FreeBSD 14 only
 OPTIONS_EXCLUDE_FreeBSD_13=	DCO # FreeBSD 14 only
 
 ASYNC_PUSH_DESC=	Enable async-push support
-DCO_DESC=		Build with Data Channel Offload (ovpn(4)) support
+DCO_DESC=		Data Channel Offload/ovpn(4) support->README.dco.md
 EASYRSA_DESC=		Install security/easy-rsa RSA helper package
 LZO_DESC=		LZO compression (incompatible with LibreSSL)
 PKCS11_DESC=		Use security/pkcs11-helper, needs same SSL lib!
@@ -156,9 +156,12 @@ post-install:
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}/
-.for i in AUTHORS ChangeLog PORTS
+.for i in AUTHORS ChangeLog Changes.rst CONTRIBUTING.rst PORTS README README.ec
 	${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
 .endfor
+.if !empty(PORT_OPTIONS:MDCO)
+	${INSTALL_MAN} ${WRKSRC}/README.dco.md ${STAGEDIR}${DOCSDIR}/
+.endif
 
 post-install-EXAMPLES-on:
 	(cd ${WRKSRC}/sample && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}/)