diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2024-01-06 23:37:42 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2024-01-06 23:37:42 +0500 |
commit | 78b2ee203f7db638a5cccceb88585b13989c9c51 (patch) | |
tree | 8dfe78ab367a3dd29d08da6f1bcfde121ffed0c7 /mail-filter | |
parent | app-crypt/PBinCLI: disable py3.12 (diff) | |
download | guru-78b2ee203f7db638a5cccceb88585b13989c9c51.tar.gz guru-78b2ee203f7db638a5cccceb88585b13989c9c51.tar.bz2 guru-78b2ee203f7db638a5cccceb88585b13989c9c51.zip |
mail-filter/postfix-mta-sts-resolver: move deps to optfeatures
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/postfix-mta-sts-resolver/metadata.xml | 5 | ||||
-rw-r--r-- | mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild | 40 |
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 +} |