aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail-filter/postfix-mta-sts-resolver/metadata.xml5
-rw-r--r--mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild40
2 files changed, 21 insertions, 24 deletions
diff --git a/mail-filter/postfix-mta-sts-resolver/metadata.xml b/mail-filter/postfix-mta-sts-resolver/metadata.xml
new file mode 100644
index 000000000..f830caa95
--- /dev/null
+++ b/mail-filter/postfix-mta-sts-resolver/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild b/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild
index bb1a56340..507810793 100644
--- a/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild
+++ b/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild
@@ -3,48 +3,40 @@
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
-PYPI_NO_NORMALIZE=1
DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1 pypi
+inherit distutils-r1 optfeature pypi
-DESCRIPTION="Daemon which provides TLS client policy for Postfix via socketmap, according to domain MTA-STS policy"
-HOMEPAGE="https://github.com/Snawoot/postfix-mta-sts-resolver https://pypi.org/project/postfix-mta-sts-resolver/"
-SRC_URI="https://github.com/Snawoot/postfix-mta-sts-resolver/releases/download/v${PV}/${P}.tar.gz"
+DESCRIPTION="Daemon which provides TLS client policy for Postfix via socketmap"
+HOMEPAGE="
+ https://github.com/Snawoot/postfix-mta-sts-resolver
+ https://pypi.org/project/postfix-mta-sts-resolver/
+"
+SRC_URI="https://github.com/Snawoot/${PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="uvloop sqlite redis postgres"
-
-DOCS="README.md"
RDEPEND="
- ${PYTHON_DEPS}
dev-python/aiodns[${PYTHON_USEDEP}]
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
- postgres? (
- dev-python/asyncpg[${PYTHON_USEDEP}]
- )
- sqlite? (
- dev-python/aiosqlite[${PYTHON_USEDEP}]
- )
- redis? (
- dev-python/redis[${PYTHON_USEDEP}]
- )
- uvloop? (
- dev-python/uvloop[${PYTHON_USEDEP}]
- )
"
-DEPEND="${RDEPEND}"
distutils_enable_tests pytest
-python_install() {
- distutils-r1_python_install
+src_install() {
+ distutils-r1_src_install
newinitd "${FILESDIR}"/mtasts-initd mta-sts
newconfd "${FILESDIR}"/mtasts-confd mta-sts
insinto /etc/
newins "${FILESDIR}"/mtasts-config mta-sts-daemon.yml
}
+
+pkg_postinst() {
+ optfeature "PostgreSQL support" dev-python/asyncpg
+ optfeature "Redis support" dev-python/redis
+ optfeature "SQLite support" dev-python/aiosqlite
+ optfeature "uvloop support" dev-python/uvloop
+}