summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2022-08-19 13:59:28 +0000
committerwiz <wiz@pkgsrc.org>2022-08-19 13:59:28 +0000
commit5efe07a9bd82921e1c2158b803cacf1a7a8c8f0d (patch)
tree7f14b4af6526648f200f51f2e26918e5c058499f /mail
parent633bbd34ce506668c3a1614bf89a272458f26889 (diff)
downloadpkgsrc-5efe07a9bd82921e1c2158b803cacf1a7a8c8f0d.tar.gz
mail/py-postfix-mta-sts-resolver: import py-postfix-mta-sts-resolver-1.1.3
A daemon which provides TLS client policy for Postfix via socketmap, according to domain MTA-STS policy. The current support for RFC8461 is limited - the daemon lacks some minor features: * Fetch error reporting * Fetch ratelimit (but actual fetch rate partially restricted with `cache_grace` config option). The server has a configurable cache backend which allows storing cached STS policies in memory (`internal`), a file (`sqlite`) or in a Redis database (`redis`).
Diffstat (limited to 'mail')
-rw-r--r--mail/py-postfix-mta-sts-resolver/ALTERNATIVES2
-rw-r--r--mail/py-postfix-mta-sts-resolver/DESCR11
-rw-r--r--mail/py-postfix-mta-sts-resolver/Makefile36
-rw-r--r--mail/py-postfix-mta-sts-resolver/PLIST55
-rw-r--r--mail/py-postfix-mta-sts-resolver/distinfo5
5 files changed, 109 insertions, 0 deletions
diff --git a/mail/py-postfix-mta-sts-resolver/ALTERNATIVES b/mail/py-postfix-mta-sts-resolver/ALTERNATIVES
new file mode 100644
index 00000000000..51112919838
--- /dev/null
+++ b/mail/py-postfix-mta-sts-resolver/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/mta-sts-daemon @PREFIX@/bin/mta-sts-daemon-@PYVERSSUFFIX@
+bin/mta-sts-query @PREFIX@/bin/mta-sts-query-@PYVERSSUFFIX@
diff --git a/mail/py-postfix-mta-sts-resolver/DESCR b/mail/py-postfix-mta-sts-resolver/DESCR
new file mode 100644
index 00000000000..0c08ba6953d
--- /dev/null
+++ b/mail/py-postfix-mta-sts-resolver/DESCR
@@ -0,0 +1,11 @@
+A daemon which provides TLS client policy for Postfix via socketmap,
+according to domain MTA-STS policy. The current support for RFC8461
+is limited - the daemon lacks some minor features:
+
+* Fetch error reporting
+* Fetch ratelimit (but actual fetch rate partially restricted with
+ `cache_grace` config option).
+
+The server has a configurable cache backend which allows storing
+cached STS policies in memory (`internal`), a file (`sqlite`) or
+in a Redis database (`redis`).
diff --git a/mail/py-postfix-mta-sts-resolver/Makefile b/mail/py-postfix-mta-sts-resolver/Makefile
new file mode 100644
index 00000000000..dd0e8b3ad40
--- /dev/null
+++ b/mail/py-postfix-mta-sts-resolver/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2022/08/19 13:59:28 wiz Exp $
+
+DISTNAME= postfix_mta_sts_resolver-1.1.3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
+CATEGORIES= mail python
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/postfix_mta_sts_resolver/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/Snawoot/postfix-mta-sts-resolver
+COMMENT= Daemon providing TLS client policy for Postfix based on MTA-STS policy
+LICENSE= mit
+
+BUILD_DEPENDS+= ${PYPKGPREFIX}-cryptography>=1.6:../../security/py-cryptography
+BUILD_DEPENDS+= ${PYPKGPREFIX}-pylint>=0:../../devel/py-pylint
+BUILD_DEPENDS+= ${PYPKGPREFIX}-tox>=0:../../devel/py-tox
+BUILD_DEPENDS+= ${PYPKGPREFIX}-twine>=1.11.0:../../net/py-twine
+BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.31.0:../../devel/py-wheel
+DEPENDS+= ${PYPKGPREFIX}-aiodns>=0:../../net/py-aiodns
+DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.4.4:../../www/py-aiohttp
+DEPENDS+= ${PYPKGPREFIX}-aiosqlite>=0:../../databases/py-aiosqlite
+DEPENDS+= ${PYPKGPREFIX}-redis>=0:../../databases/py-redis
+DEPENDS+= ${PYPKGPREFIX}-yaml>=3.12:../../textproc/py-yaml
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=0:../../devel/py-coverage
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0:../../devel/py-test-asyncio
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout>=0:../../devel/py-test-timeout
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.0:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} mta-sts-daemon mta-sts-daemon-${PYVERSSUFFIX} || ${TRUE}
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} mta-sts-query mta-sts-query-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/py-postfix-mta-sts-resolver/PLIST b/mail/py-postfix-mta-sts-resolver/PLIST
new file mode 100644
index 00000000000..2a23fa4f681
--- /dev/null
+++ b/mail/py-postfix-mta-sts-resolver/PLIST
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1 2022/08/19 13:59:28 wiz Exp $
+bin/mta-sts-daemon-${PYVERSSUFFIX}
+bin/mta-sts-query-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
+${PYSITELIB}/postfix_mta_sts_resolver/__init__.py
+${PYSITELIB}/postfix_mta_sts_resolver/__init__.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/__init__.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/__main__.py
+${PYSITELIB}/postfix_mta_sts_resolver/__main__.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/__main__.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/asdnotify.py
+${PYSITELIB}/postfix_mta_sts_resolver/asdnotify.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/asdnotify.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/base_cache.py
+${PYSITELIB}/postfix_mta_sts_resolver/base_cache.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/base_cache.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/constants.py
+${PYSITELIB}/postfix_mta_sts_resolver/constants.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/constants.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/daemon.py
+${PYSITELIB}/postfix_mta_sts_resolver/daemon.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/daemon.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/defaults.py
+${PYSITELIB}/postfix_mta_sts_resolver/defaults.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/defaults.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/internal_cache.py
+${PYSITELIB}/postfix_mta_sts_resolver/internal_cache.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/internal_cache.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/netstring.py
+${PYSITELIB}/postfix_mta_sts_resolver/netstring.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/netstring.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/proactive_fetcher.py
+${PYSITELIB}/postfix_mta_sts_resolver/proactive_fetcher.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/proactive_fetcher.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/redis_cache.py
+${PYSITELIB}/postfix_mta_sts_resolver/redis_cache.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/redis_cache.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/resolver.py
+${PYSITELIB}/postfix_mta_sts_resolver/resolver.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/resolver.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/responder.py
+${PYSITELIB}/postfix_mta_sts_resolver/responder.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/responder.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/sqlite_cache.py
+${PYSITELIB}/postfix_mta_sts_resolver/sqlite_cache.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/sqlite_cache.pyo
+${PYSITELIB}/postfix_mta_sts_resolver/utils.py
+${PYSITELIB}/postfix_mta_sts_resolver/utils.pyc
+${PYSITELIB}/postfix_mta_sts_resolver/utils.pyo
diff --git a/mail/py-postfix-mta-sts-resolver/distinfo b/mail/py-postfix-mta-sts-resolver/distinfo
new file mode 100644
index 00000000000..275a554bb09
--- /dev/null
+++ b/mail/py-postfix-mta-sts-resolver/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/08/19 13:59:28 wiz Exp $
+
+BLAKE2s (postfix_mta_sts_resolver-1.1.3.tar.gz) = e91fa93b3eb5dfbd3e61ee16f640301412d2c90d7f53d3e298da59a5a0e3af7a
+SHA512 (postfix_mta_sts_resolver-1.1.3.tar.gz) = 154f363fae12be08d927446c86c13c61d500d704c9f4cdb314a550717fb59da7e8857a16d0d5aa070acfe80a49044c6550f59da662ad350a1d05a5a7b8572c21
+Size (postfix_mta_sts_resolver-1.1.3.tar.gz) = 25975 bytes