git: 02ad15eb59ba - main - net/samba422: Refactor handling of FRUIT and GLUSTERFS manuals

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Wed, 10 Dec 2025 22:31:15 UTC
The branch main has been updated by 0mp:

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

commit 02ad15eb59bad69967b55748a1392a8157c0adf5
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-12-10 22:26:57 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-12-10 22:30:01 +0000

    net/samba422: Refactor handling of FRUIT and GLUSTERFS manuals
---
 net/samba422/Makefile | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/net/samba422/Makefile b/net/samba422/Makefile
index 67669cbcd9b0..64366265665f 100644
--- a/net/samba422/Makefile
+++ b/net/samba422/Makefile
@@ -335,10 +335,12 @@ FAM_CONFIGURE_WITH=		fam
 
 FRUIT_PREVENTS=			ZEROCONF_NONE
 FRUIT_PREVENTS_MSG=		MacOSX support requires Zeroconf(AVAHI or MDNSRESPONDER)
+FRUIT_PLIST_FILES=		%%MANPAGES%%share/man/man8/vfs_fruit.8.gz
 FRUIT_VARS=			SAMBA4_MODULES+=vfs_fruit
 
 GLUSTERFS_LIB_DEPENDS=		libglusterfs.so:net/glusterfs
 GLUSTERFS_CONFIGURE_ENABLE=	glusterfs
+GLUSTERFS_PLIST_FILES=		%%MANPAGES%%share/man/man8/vfs_glusterfs.8.gz
 GLUSTERFS_VARS=			SAMBA4_MODULES+=vfs_glusterfs
 
 GPGME_LIB_DEPENDS=		libgpgme.so:security/gpgme
@@ -475,16 +477,6 @@ PLIST_FILES+=			${SAMBA4_LIBDIR}/private/libldb-mdb-int-private-samba.so \
 .	endif
 .endif
 
-.if ${PORT_OPTIONS:MFRUIT}
-.	if ${PORT_OPTIONS:MMANPAGES}
-PLIST_FILES+=			share/man/man8/vfs_fruit.8.gz
-.	endif
-.endif
-.if ${PORT_OPTIONS:MGLUSTERFS}
-.	if ${PORT_OPTIONS:MMANPAGES}
-PLIST_FILES+=			share/man/man8/vfs_glusterfs.8.gz
-.	endif
-.endif
 # for libexecinfo: (so that __builtin_frame_address() finds the top of the stack)
 CFLAGS_amd64+=			-fno-omit-frame-pointer
 # No fancy color error messages