pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

email-oauth2-proxy: add version 2022.12.14.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Sun Feb 5 14:05:37 2023 +0000
Changeset:	abff2847d6bb6a63b2386c8f5058bfef72ac4509

Added Files:
	email-oauth2-proxy/DESCR
	email-oauth2-proxy/Makefile
	email-oauth2-proxy/PLIST
	email-oauth2-proxy/distinfo

Log Message:
email-oauth2-proxy: add version 2022.12.14.

Transparently add OAuth 2.0 support to IMAP/POP/SMTP client
applications, scripts or any other email use-cases that don't
support this authentication method.

Motivation and capabilities

Email services that support IMAP, POP and/or SMTP access are
increasingly requiring the use of OAuth 2.0 to authenticate
connections, but not all clients support this method. This script
creates a simple local proxy that intercepts the traditional
IMAP/POP/SMTP authentication commands and transparently replaces
them with the appropriate SASL (X)OAuth 2.0 commands and credentials.
Your email client can continue to use the login or auth/authenticate
options, with no need to make it aware of OAuth's existence. The
proxy works in the background with a menu bar/taskbar helper or as
a system service, and is compatible with macOS, Windows and Linux.

TODO:
  testing...

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=abff2847d6bb6a63b2386c8f5058bfef72ac4509

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 email-oauth2-proxy/DESCR    | 16 ++++++++++++++++
 email-oauth2-proxy/Makefile | 37 +++++++++++++++++++++++++++++++++++++
 email-oauth2-proxy/PLIST    |  3 +++
 email-oauth2-proxy/distinfo |  5 +++++
 4 files changed, 61 insertions(+)

diffs:
diff --git a/email-oauth2-proxy/DESCR b/email-oauth2-proxy/DESCR
new file mode 100644
index 0000000000..50f6e29cdb
--- /dev/null
+++ b/email-oauth2-proxy/DESCR
@@ -0,0 +1,16 @@
+Transparently add OAuth 2.0 support to IMAP/POP/SMTP client
+applications, scripts or any other email use-cases that don't
+support this authentication method.
+
+Motivation and capabilities
+
+Email services that support IMAP, POP and/or SMTP access are
+increasingly requiring the use of OAuth 2.0 to authenticate
+connections, but not all clients support this method. This script
+creates a simple local proxy that intercepts the traditional
+IMAP/POP/SMTP authentication commands and transparently replaces
+them with the appropriate SASL (X)OAuth 2.0 commands and credentials.
+Your email client can continue to use the login or auth/authenticate
+options, with no need to make it aware of OAuth's existence. The
+proxy works in the background with a menu bar/taskbar helper or as
+a system service, and is compatible with macOS, Windows and Linux.
diff --git a/email-oauth2-proxy/Makefile b/email-oauth2-proxy/Makefile
new file mode 100644
index 0000000000..09ebce66d2
--- /dev/null
+++ b/email-oauth2-proxy/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+UPSTR_VERS=	2022-12-14
+PVER=		${UPSTR_VERS:S/-/./g}
+DISTNAME=	email-oauth2-proxy-${PVER}
+#PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+GITHUB_TAG=	${UPSTR_VERS}
+CATEGORIES=	mail
+MASTER_SITES=	${MASTER_SITE_GITHUB:=simonrob/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/simonrob/email-oauth2-proxy
+COMMENT=	IMAP and SMTP proxy supporting Oauth2 authentication
+LICENSE=	apache-2.0
+
+DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+DEPENDS+=	${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+DEPENDS+=	${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
+DEPENDS+=	${PYPKGPREFIX}-timeago-[0-9]*:../../wip/py-timeago
+DEPENDS+=	${PYPKGPREFIX}-pystray>=0.19.4:../../wip/py-pystray
+DEPENDS+=	${PYPKGPREFIX}-pywebview-[0-9]*:../../wip/py-pywebview
+
+REPLACE_PYTHON+=	emailproxy.py
+
+EGDIR=			${PREFIX}/share/examples/email-oauth2-proxy/
+CONF_FILES=		${EGDIR}/emailproxy.config ${PKG_SYSCONFDIR}/emailproxy.config
+INSTALLATION_DIRS=	bin ${EGDIR}
+
+do-configure:	# nothing
+do-build:	# nothing
+
+do-install:
+	${INSTALL} -c -m 644 ${WRKSRC}/emailproxy.config ${DESTDIR}/${EGDIR}/emailproxy.config
+	${INSTALL} -c -m 555 ${WRKSRC}/emailproxy.py ${DESTDIR}/${PREFIX}/bin/emailproxy.py
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/email-oauth2-proxy/PLIST b/email-oauth2-proxy/PLIST
new file mode 100644
index 0000000000..681a78f0e4
--- /dev/null
+++ b/email-oauth2-proxy/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/emailproxy.py
+share/examples/email-oauth2-proxy/emailproxy.config
diff --git a/email-oauth2-proxy/distinfo b/email-oauth2-proxy/distinfo
new file mode 100644
index 0000000000..2b9c0f19f1
--- /dev/null
+++ b/email-oauth2-proxy/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (email-oauth2-proxy-2022.12.14.tar.gz) = 680b3632438331545860f2826fbc218f3e15b550aa448bf764ce7bbd1b1ed011
+SHA512 (email-oauth2-proxy-2022.12.14.tar.gz) = 82849e5ec58b0b9fa02af3f8c99d376888b795ede3fb9e0f85a40180a0d76fa59bbb6d7a2d4bc625eecbf1db99574b54748bf41126566a9f2b2eca90197801fe
+Size (email-oauth2-proxy-2022.12.14.tar.gz) = 55690 bytes


Home | Main Index | Thread Index | Old Index