git: 5563ffe84ff5 - main - security/tripwire: Fix manual build

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 24 Nov 2025 21:51:36 UTC
The branch main has been updated by cy:

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

commit 5563ffe84ff5eda3601925f7dfe0eeef3952ab7c
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-11-24 21:21:44 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-11-24 21:37:01 +0000

    security/tripwire: Fix manual build
    
    When building by hand ${PREFIX}/man with no subdirectories is created.
    A less invasive fix is to remove the directory after the fact but before
    packaging.
    
    MFH:    2025Q4
---
 security/tripwire/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/security/tripwire/Makefile b/security/tripwire/Makefile
index 0acc88efb096..f217260b56b0 100644
--- a/security/tripwire/Makefile
+++ b/security/tripwire/Makefile
@@ -182,5 +182,6 @@ create-database:
 
 post-install:	install-config-files create-database make-pkg-install
 	${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
+	@ ${RMDIR} ${STAGEDIR}${PREFIX}/man || ${TRUE}
 
 .include <bsd.port.post.mk>