git: d6fffc7a0604 - main - mail/opensmtpd-table-sqlite: fix installation path

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Mon, 11 Aug 2025 15:37:48 UTC
The branch main has been updated by gahr:

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

commit d6fffc7a06044caf9411c1bd8dd7e4688868d7b8
Author:     Pietro Cerutti <gahr@FreeBSD.org>
AuthorDate: 2025-08-11 15:35:40 +0000
Commit:     Pietro Cerutti <gahr@FreeBSD.org>
CommitDate: 2025-08-11 15:37:44 +0000

    mail/opensmtpd-table-sqlite: fix installation path
    
    PR:             288789
    Reported by:    Éric de la Musse <eric901@pouik.org>
---
 mail/opensmtpd-table-sqlite/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/mail/opensmtpd-table-sqlite/Makefile b/mail/opensmtpd-table-sqlite/Makefile
index dfd64f7c1ecf..bca3b4834255 100644
--- a/mail/opensmtpd-table-sqlite/Makefile
+++ b/mail/opensmtpd-table-sqlite/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	opensmtpd-table-sqlite
 DISTVERSION=	1.0.1
+PORTREVISION=	1
 CATEGORIES=	mail
 
 PATCH_SITES=	https://github.com/OpenSMTPD/table-sqlite/commit/
@@ -20,7 +21,10 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	opensmtpd
 GH_PROJECT=	table-sqlite
 
-PLIST_FILES=	libexec/smtpd/table-sqlite \
+PLIST_FILES=	libexec/opensmtpd/table-sqlite \
 		share/man/man5/table-sqlite.5.gz
 
+post-patch:
+	${REINPLACE_CMD} '/^smtpdir/s|smtpd$$|opensmtpd|' ${WRKSRC}/Makefile.am
+
 .include <bsd.port.mk>