From 78b2ee203f7db638a5cccceb88585b13989c9c51 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sat, 6 Jan 2024 23:37:42 +0500 Subject: mail-filter/postfix-mta-sts-resolver: move deps to optfeatures Signed-off-by: Anna (cybertailor) Vyalkova --- mail-filter/postfix-mta-sts-resolver/metadata.xml | 5 +++ .../postfix-mta-sts-resolver-1.4.0.ebuild | 40 +++++++++------------- 2 files changed, 21 insertions(+), 24 deletions(-) create mode 100644 mail-filter/postfix-mta-sts-resolver/metadata.xml (limited to 'mail-filter') 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 @@ + + + + + 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 +} -- cgit v1.2.3-65-gdbad