git: f5f3db908caa - main - mail/spamassassin*: Redundant and empty directories should be created

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 29 Oct 2024 15:47:59 UTC
The branch main has been updated by cy:

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

commit f5f3db908caa953a05ff77bf6963edebdef0ea00
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-10-29 15:34:06 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-10-29 15:47:50 +0000

    mail/spamassassin*: Redundant and empty directories should be created
    
    Make sure redunant ane empty directories are actually gone.
    
    Discovered during spamassassin-devel make check-orphans.
    
    Fixes:          96194a7a6e88
    PR:             282317
    MFH:            2024Q4
---
 mail/spamassassin-devel/Makefile | 2 +-
 mail/spamassassin/Makefile       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mail/spamassassin-devel/Makefile b/mail/spamassassin-devel/Makefile
index f365155956d9..c9519f9bc57e 100644
--- a/mail/spamassassin-devel/Makefile
+++ b/mail/spamassassin-devel/Makefile
@@ -211,7 +211,7 @@ pre-su-install:
 
 post-install::
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spamc
-	@${MKDIR} ${STAGEDIR}/var/lib/spamassassin ${STAGEDIR}${DBDIR}/spamassassin ${STAGEDIR}/var/run/spamd
+	@${MKDIR} ${STAGEDIR}${DBDIR}/spamassassin ${STAGEDIR}/var/run/spamd
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} "sql ldap" ${STAGEDIR}${DOCSDIR})
diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile
index 6aa7b6591fdd..a9371193350d 100644
--- a/mail/spamassassin/Makefile
+++ b/mail/spamassassin/Makefile
@@ -207,7 +207,7 @@ pre-su-install:
 
 post-install::
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spamc
-	@${MKDIR} ${STAGEDIR}/var/lib/spamassassin ${STAGEDIR}${DBDIR}/spamassassin ${STAGEDIR}/var/run/spamd
+	@${MKDIR} ${STAGEDIR}${DBDIR}/spamassassin ${STAGEDIR}/var/run/spamd
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} "sql ldap" ${STAGEDIR}${DOCSDIR})