git: b5f374dcd505 - main - mail/dovecot-coi: new port Dovecot chat over IMAP

From: Larry Rosenman <ler_at_FreeBSD.org>
Date: Sat, 07 May 2022 16:58:58 UTC
The branch main has been updated by ler:

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

commit b5f374dcd5054c4a559f043aa7c5437292c88e31
Author:     Larry Rosenman <ler@FreeBSD.org>
AuthorDate: 2022-05-07 16:54:29 +0000
Commit:     Larry Rosenman <ler@FreeBSD.org>
CommitDate: 2022-05-07 16:58:37 +0000

    mail/dovecot-coi: new port Dovecot chat over IMAP
    
    PR: 244433
    Reported By: andrej@ebert.su
---
 mail/Makefile                |  1 +
 mail/dovecot-coi/Makefile    | 41 +++++++++++++++++++++++++++++++++++++++++
 mail/dovecot-coi/distinfo    |  3 +++
 mail/dovecot-coi/pkg-descr   | 11 +++++++++++
 mail/dovecot-coi/pkg-message | 18 ++++++++++++++++++
 mail/dovecot-coi/pkg-plist   | 27 +++++++++++++++++++++++++++
 6 files changed, 101 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index 3d2951c6accf..b7231371e3f9 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -94,6 +94,7 @@
     SUBDIR += dma
     SUBDIR += dot-forward
     SUBDIR += dovecot
+    SUBDIR += dovecot-coi
     SUBDIR += dovecot-fts-elastic
     SUBDIR += dovecot-fts-flatcurve
     SUBDIR += dovecot-fts-xapian
diff --git a/mail/dovecot-coi/Makefile b/mail/dovecot-coi/Makefile
new file mode 100644
index 000000000000..f7dec2f4fbae
--- /dev/null
+++ b/mail/dovecot-coi/Makefile
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME=	coi
+PORTVERSION=	2.3.9
+CATEGORIES=	mail
+PKGNAMEPREFIX=	dovecot-
+
+MAINTAINER=	andrej@ebert.su
+COMMENT=	Dovecot COI (Chat-over-IMAP) plugin
+
+LICENSE=	MPL20
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	dovecot>=2.3.8:mail/dovecot
+RUN_DEPENDS=	dovecot>=2.3.8:mail/dovecot
+
+USES=		autoreconf compiler:c++11-lang libtool pkgconfig
+
+DOVECOTVERSION=	2.3
+
+GNU_CONFIGURE=	yes
+
+CONFIGURE_ARGS=	--exec-prefix=${PREFIX} \
+		--without-dovecot-install-dirs \
+		--with-dovecot="${LOCALBASE}/lib/dovecot"
+
+MAKE_ARGS=	LD_RUN_PATH="${PREFIX}/lib/dovecot" \
+
+INSTALL_TARGET=	install-strip
+USE_LDCONFIG=	yes
+
+OPTIONS_DEFINE=	UNFINISHED
+OPTIONS_SUB=	yes
+
+UNFINISHED_DESC=	Build unfinished modules, currently doveadm-coi and submission-coi
+UNFINISHED_CONFIGURE_ENABLE=	unfinished
+
+USE_GITHUB=yes
+GH_ACCOUNT=	dovecot
+
+.include <bsd.port.mk>
diff --git a/mail/dovecot-coi/distinfo b/mail/dovecot-coi/distinfo
new file mode 100644
index 000000000000..3cff2e9dc75b
--- /dev/null
+++ b/mail/dovecot-coi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1582638253
+SHA256 (dovecot-coi-2.3.9_GH0.tar.gz) = 80a06b32b6202261d1968bf3dd904b7124222918dd9244ce9ed845760c6e503a
+SIZE (dovecot-coi-2.3.9_GH0.tar.gz) = 64787
diff --git a/mail/dovecot-coi/pkg-descr b/mail/dovecot-coi/pkg-descr
new file mode 100644
index 000000000000..c4dc07cc05cb
--- /dev/null
+++ b/mail/dovecot-coi/pkg-descr
@@ -0,0 +1,11 @@
+Beta version disclaimer
+The purpose of this BETA version of this Dovecot plugin is solely to test its
+features, to obtain defects, failures and malfunctions.
+By using the software, you acknowledge that all of the data that you are
+handling with the BETA version might be subject to such defects, failures
+and malfunctions, up to the point of total loss.
+You are aware to not rely on the functionality and that the use of the software
+in a professional productive environment is not recommended.
+
+This package provides an implementation of the Chat over IMAP protcool.
+A webpush plugin, and plugins for the imap and lmtp services are provided.
diff --git a/mail/dovecot-coi/pkg-message b/mail/dovecot-coi/pkg-message
new file mode 100644
index 000000000000..e1227835df42
--- /dev/null
+++ b/mail/dovecot-coi/pkg-message
@@ -0,0 +1,18 @@
+[
+{ type: install
+  message: <<EOM
+
+Beta version disclaimer
+The purpose of this BETA version of this Dovecot plugin is solely to test its
+features, to obtain defects, failures and malfunctions.
+By using the software, you acknowledge that all of the data that you are
+handling with the BETA version might be subject to such defects, failures
+and malfunctions, up to the point of total loss.
+You are aware to not rely on the functionality and that the use of the software
+in a professional productive environment is not recommended.
+
+Configuration instructions are at https://doc.dovecot.org/configuration_manual/coi/
+
+EOM
+}
+]
diff --git a/mail/dovecot-coi/pkg-plist b/mail/dovecot-coi/pkg-plist
new file mode 100644
index 000000000000..b03dc78b02f8
--- /dev/null
+++ b/mail/dovecot-coi/pkg-plist
@@ -0,0 +1,27 @@
+include/dovecot-coi/coi-common.h
+include/dovecot-coi/coi-config.h
+include/dovecot-coi/coi-contact-list.h
+include/dovecot-coi/coi-contact.h
+include/dovecot-coi/coi-secret.h
+include/dovecot-coi/coi-storage.h
+include/dovecot-coi/webpush-message.h
+include/dovecot-coi/webpush-notify.h
+include/dovecot-coi/webpush-payload.h
+include/dovecot-coi/webpush-plugin.h
+include/dovecot-coi/webpush-send.h
+include/dovecot-coi/webpush-subscription.h
+include/dovecot-coi/webpush-vapid.h
+lib/dovecot-coi/libdovecot-coi.a
+lib/dovecot-coi/libdovecot-coi.so
+lib/dovecot-coi/libdovecot-coi.so.0
+lib/dovecot-coi/libdovecot-coi.so.0.0.0
+%%UNFINISHED%%lib/dovecot/doveadm/lib10_doveadm_coi_plugin.a
+%%UNFINISHED%%lib/dovecot/doveadm/lib10_doveadm_coi_plugin.so
+lib/dovecot/lib11_imap_coi_plugin.a
+lib/dovecot/lib11_imap_coi_plugin.so
+lib/dovecot/lib11_lmtp_coi_plugin.a
+lib/dovecot/lib11_lmtp_coi_plugin.so
+%%UNFINISHED%%lib/dovecot/lib11_submission_coi_plugin.a
+%%UNFINISHED%%lib/dovecot/lib11_submission_coi_plugin.so
+lib/dovecot/lib30_webpush_plugin.a
+lib/dovecot/lib30_webpush_plugin.so