git: 63128d3c9727 - main - mail/hydroxide: new port, Open-source ProtonMail CardDAV, IMAP and SMTP bridge

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 09:36:24 UTC
The branch main has been updated by pi:

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

commit 63128d3c97271d593250ee3eaafabfb7e4520735
Author:     Yusuf Yaman <nxjosephofficial@protonmail.com>
AuthorDate: 2024-04-24 09:34:04 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2024-04-24 09:36:04 +0000

    mail/hydroxide: new port, Open-source ProtonMail CardDAV, IMAP and SMTP bridge
    
    A third-party, open-source ProtonMail bridge. Hydroxide supports CardDAV,
    IMAP and SMTP. hydroxide is a server that translates standard protocols
    (SMTP, IMAP, CardDAV) into ProtonMail API requests. It allows you to use
    your preferred e-mail client and git-send-email with ProtonMail.
    
    PR:             278362
    Author:         Yusuf Yaman <nxjosephofficial@protonmail.com>
---
 mail/Makefile            |  1 +
 mail/hydroxide/Makefile  | 39 +++++++++++++++++++++++++++++++++++++++
 mail/hydroxide/distinfo  | 35 +++++++++++++++++++++++++++++++++++
 mail/hydroxide/pkg-descr |  4 ++++
 4 files changed, 79 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index 0158a9b0024a..920e143be1b4 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -155,6 +155,7 @@
     SUBDIR += hashcash
     SUBDIR += hbiff
     SUBDIR += heirloom-mailx
+    SUBDIR += hydroxide
     SUBDIR += ifile
     SUBDIR += im
     SUBDIR += imapdedup
diff --git a/mail/hydroxide/Makefile b/mail/hydroxide/Makefile
new file mode 100644
index 000000000000..b08e9d9561e5
--- /dev/null
+++ b/mail/hydroxide/Makefile
@@ -0,0 +1,39 @@
+PORTNAME=	hydroxide
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.28
+CATEGORIES=	mail
+
+MAINTAINER=	nxjoseph@protonmail.com
+COMMENT=	Open-source ProtonMail CardDAV, IMAP and SMTP bridge
+WWW=		https://github.com/emersion/hydroxide
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	emersion
+
+GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_TARGET=	./cmd/hydroxide
+GH_TUPLE=	ProtonMail:go-crypto:5aa5874ade95:protonmail_go_crypto/vendor/github.com/ProtonMail/go-crypto \
+		boltdb:bolt:v1.3.1:boltdb_bolt/vendor/github.com/boltdb/bolt \
+		cloudflare:circl:v1.3.3:cloudflare_circl/vendor/github.com/cloudflare/circl \
+		emersion:go-bcrypt:6e724a1baa63:emersion_go_bcrypt/vendor/github.com/emersion/go-bcrypt \
+		emersion:go-imap:v1.2.1:emersion_go_imap/vendor/github.com/emersion/go-imap \
+		emersion:go-mbox:v1.0.3:emersion_go_mbox/vendor/github.com/emersion/go-mbox \
+		emersion:go-message:v0.16.0:emersion_go_message/vendor/github.com/emersion/go-message \
+		emersion:go-sasl:0145f2c60ead:emersion_go_sasl/vendor/github.com/emersion/go-sasl \
+		emersion:go-smtp:v0.18.0:emersion_go_smtp/vendor/github.com/emersion/go-smtp \
+		emersion:go-textwrapper:65d896831594:emersion_go_textwrapper/vendor/github.com/emersion/go-textwrapper \
+		emersion:go-vcard:8fda7d206ec9:emersion_go_vcard/vendor/github.com/emersion/go-vcard \
+		emersion:go-webdav:5d845721d8f7:emersion_go_webdav/vendor/github.com/emersion/go-webdav \
+		golang:crypto:v0.12.0:golang_crypto/vendor/golang.org/x/crypto \
+		golang:sys:v0.11.0:golang_sys/vendor/golang.org/x/sys \
+		golang:term:v0.11.0:golang_term/vendor/golang.org/x/term \
+		golang:text:v0.12.0:golang_text/vendor/golang.org/x/text
+
+PLIST_FILES=	bin/hydroxide
+
+.include <bsd.port.mk>
diff --git a/mail/hydroxide/distinfo b/mail/hydroxide/distinfo
new file mode 100644
index 000000000000..c455283a01ed
--- /dev/null
+++ b/mail/hydroxide/distinfo
@@ -0,0 +1,35 @@
+TIMESTAMP = 1713103932
+SHA256 (emersion-hydroxide-v0.2.28_GH0.tar.gz) = c860a15617dce7916917ef6e3d906e5728114ec2a54f5c07fb489ee6bdbeb0f4
+SIZE (emersion-hydroxide-v0.2.28_GH0.tar.gz) = 45101
+SHA256 (ProtonMail-go-crypto-5aa5874ade95_GH0.tar.gz) = 0a39257c4c126603311ee2090609446a8bf8536c40420d51f80fa79b57503186
+SIZE (ProtonMail-go-crypto-5aa5874ade95_GH0.tar.gz) = 333554
+SHA256 (boltdb-bolt-v1.3.1_GH0.tar.gz) = b5ae498b780f535a5d308c188dee1329b3536275d29ad6758876084c0b8586a8
+SIZE (boltdb-bolt-v1.3.1_GH0.tar.gz) = 83437
+SHA256 (cloudflare-circl-v1.3.3_GH0.tar.gz) = 926bf915fc36a92af1f0d43282e0b9749c8d74a12514d9e9387725e4842aa23c
+SIZE (cloudflare-circl-v1.3.3_GH0.tar.gz) = 4913044
+SHA256 (emersion-go-bcrypt-6e724a1baa63_GH0.tar.gz) = 2d60f0085689c8356014b806718ed6de476f8f35ff5096cc68201b77e3866609
+SIZE (emersion-go-bcrypt-6e724a1baa63_GH0.tar.gz) = 6311
+SHA256 (emersion-go-imap-v1.2.1_GH0.tar.gz) = 5491725275b90e05f2ed98e5273688e5f05a8a488b0c5ce504f60aa19c9d8791
+SIZE (emersion-go-imap-v1.2.1_GH0.tar.gz) = 103546
+SHA256 (emersion-go-mbox-v1.0.3_GH0.tar.gz) = 54c85831ececafb417939741b00da573c5dab61a746834b9977e7dde8dba523e
+SIZE (emersion-go-mbox-v1.0.3_GH0.tar.gz) = 5692
+SHA256 (emersion-go-message-v0.16.0_GH0.tar.gz) = b0d02ecf0cbeb84608f5724d1ebd7f09093688bd5788e5b380002f64c240592c
+SIZE (emersion-go-message-v0.16.0_GH0.tar.gz) = 45519
+SHA256 (emersion-go-sasl-0145f2c60ead_GH0.tar.gz) = ac6669e609678af1229e136040988789ffaacca51a18ced3b89383c3cf7ac8c7
+SIZE (emersion-go-sasl-0145f2c60ead_GH0.tar.gz) = 7355
+SHA256 (emersion-go-smtp-v0.18.0_GH0.tar.gz) = a2c2dee23fe17ec60ca75dfbc5c9211c8b392ea2f53e4bb1de3de9e640788b88
+SIZE (emersion-go-smtp-v0.18.0_GH0.tar.gz) = 38239
+SHA256 (emersion-go-textwrapper-65d896831594_GH0.tar.gz) = 2cd1f28952b8cd549baee90207fdaca1d81a963b1b2974c9e54ea6fb060a123a
+SIZE (emersion-go-textwrapper-65d896831594_GH0.tar.gz) = 2309
+SHA256 (emersion-go-vcard-8fda7d206ec9_GH0.tar.gz) = cd43a941aad3d7688089564193a8bd50fa1b95ca24f13d73f6dc3985b80f59c7
+SIZE (emersion-go-vcard-8fda7d206ec9_GH0.tar.gz) = 11503
+SHA256 (emersion-go-webdav-5d845721d8f7_GH0.tar.gz) = c73f395d099107e0726660a116a1034b3c2a660adc310ec9b616684ec5da8f69
+SIZE (emersion-go-webdav-5d845721d8f7_GH0.tar.gz) = 33916
+SHA256 (golang-crypto-v0.12.0_GH0.tar.gz) = f2e422baedd3a599471bfe6adb8e4b337a80bb8a9665d283a8d0810edadbd31c
+SIZE (golang-crypto-v0.12.0_GH0.tar.gz) = 1792261
+SHA256 (golang-sys-v0.11.0_GH0.tar.gz) = 907778fbdf5a900ee51fc45e0a3f2cc7bc693af8a9c972c00679b194b61ea24c
+SIZE (golang-sys-v0.11.0_GH0.tar.gz) = 1445078
+SHA256 (golang-term-v0.11.0_GH0.tar.gz) = a09581b0ccda33a5b9ee62bf59cb64d738e7fdfc21c354955ae5f01e6fb23b80
+SIZE (golang-term-v0.11.0_GH0.tar.gz) = 14797
+SHA256 (golang-text-v0.12.0_GH0.tar.gz) = 223318d6bd0b76fe5cdff3499a0ad0b3bfe573336951b0b141af6cde704252da
+SIZE (golang-text-v0.12.0_GH0.tar.gz) = 8967035
diff --git a/mail/hydroxide/pkg-descr b/mail/hydroxide/pkg-descr
new file mode 100644
index 000000000000..522beaeb945c
--- /dev/null
+++ b/mail/hydroxide/pkg-descr
@@ -0,0 +1,4 @@
+A third-party, open-source ProtonMail bridge. Hydroxide supports CardDAV,
+IMAP and SMTP. hydroxide is a server that translates standard protocols
+(SMTP, IMAP, CardDAV) into ProtonMail API requests. It allows you to use
+your preferred e-mail client and git-send-email with ProtonMail.