git: 89db7c235ea0 - main - mail/mfmod_ldap: new port had been added (+)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 09 Aug 2023 07:03:47 UTC
The branch main has been updated by danfe:

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

commit 89db7c235ea048c92ca5c3964dba6555a648f0c7
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-08-09 07:02:46 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-08-09 07:02:46 +0000

    mail/mfmod_ldap: new port had been added (+)
    
    Loadable module for mailfromd that provides mail filtering
    language (MFL) support for searching in LDAP directories.
    
    Requested by:   maintainer
---
 mail/Makefile             |  1 +
 mail/mfmod_ldap/Makefile  | 33 +++++++++++++++++++++++++++++++++
 mail/mfmod_ldap/distinfo  |  3 +++
 mail/mfmod_ldap/pkg-descr |  2 ++
 4 files changed, 39 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index 5ff2034cd6d6..b8a86885fd3e 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -226,6 +226,7 @@
     SUBDIR += metamail
     SUBDIR += mew
     SUBDIR += mew-devel
+    SUBDIR += mfmod_ldap
     SUBDIR += milter-bogom
     SUBDIR += milter-callback
     SUBDIR += milter-greylist
diff --git a/mail/mfmod_ldap/Makefile b/mail/mfmod_ldap/Makefile
new file mode 100644
index 000000000000..de70622c06e1
--- /dev/null
+++ b/mail/mfmod_ldap/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	mfmod_ldap
+PORTVERSION=	1.2
+CATEGORIES=	mail
+MASTER_SITES=	http://download.gnu.org.ua/pub/release/${PORTNAME}/ \
+		http://download.gnu.org.ua/pub/alpha/${PORTNAME}/
+
+MAINTAINER=	zeus@gnu.org.ua
+COMMENT=	LDAP support loadable module for mailfromd
+WWW=		https://puszcza.gnu.org.ua/projects/mfmod_ldap/
+
+LICENSE=	GPLv3+
+
+BUILD_DEPENDS=	${LOCALBASE}/include/mailfromd/mfmod.h:mail/mailfromd
+
+USES=		ldap libtool localbase makeinfo
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+
+INFO=		${PORTNAME}
+PORTDOCS=	NEWS README
+PLIST_FILES=	lib/mailfromd/mfmod_ldap.so share/mailfromd/ldap.mfl
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,g' \
+		${WRKSRC}/mfmod_ldap.c ${WRKSRC}/doc/mfmod_ldap.texi
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/mail/mfmod_ldap/distinfo b/mail/mfmod_ldap/distinfo
new file mode 100644
index 000000000000..156b05d10d16
--- /dev/null
+++ b/mail/mfmod_ldap/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688731719
+SHA256 (mfmod_ldap-1.2.tar.gz) = 0630c5abeff56f1b061d22401daa3971c34ed8fc89a42c3774f071aaf9c07fd0
+SIZE (mfmod_ldap-1.2.tar.gz) = 484371
diff --git a/mail/mfmod_ldap/pkg-descr b/mail/mfmod_ldap/pkg-descr
new file mode 100644
index 000000000000..065448fe8b25
--- /dev/null
+++ b/mail/mfmod_ldap/pkg-descr
@@ -0,0 +1,2 @@
+This package is a loadable module for mailfromd that adds support for
+searching in LDAP directories to the mail filtering language (MFL).