commit: e710a202fad897f2b0d1faf64707d71b0b8a3b2a Author: Thibaud CANALE <thican <AT> thican <DOT> net> AuthorDate: Mon Mar 3 14:23:22 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Mar 4 22:45:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e710a202
app-crypt/certbot-nginx: provide transition package The new merged app-crypt/certbot has blockers on all the old split modules like certbot-nginx, which leads to poor UX when users who have e.g. certbot-nginx in their world file now to try to upgrade. Add a dummy set of ebuilds for the old split modules to depend on the merged certbot with the right USE, which we can last-rite in a while. Signed-off-by: Thibaud CANALE <thican <AT> thican.net> Closes: https://github.com/gentoo/gentoo/pull/40872 Signed-off-by: Sam James <sam <AT> gentoo.org> .../certbot-nginx/certbot-nginx-3.2.0-r100.ebuild | 29 ++++++++++++++ app-crypt/certbot-nginx/certbot-nginx-9999.ebuild | 44 ++++++---------------- 2 files changed, 41 insertions(+), 32 deletions(-) diff --git a/app-crypt/certbot-nginx/certbot-nginx-3.2.0-r100.ebuild b/app-crypt/certbot-nginx/certbot-nginx-3.2.0-r100.ebuild new file mode 100644 index 000000000000..3c44041c645b --- /dev/null +++ b/app-crypt/certbot-nginx/certbot-nginx-3.2.0-r100.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Nginx plugin for Certbot (Let’s Encrypt client)" +HOMEPAGE=" + https://github.com/certbot/certbot + https://pypi.org/project/certbot-nginx/ + https://letsencrypt.org/ +" + +LICENSE="metapackage" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +# Meta package for transition +# No need to upgrade thanks to ">=" +RDEPEND=" + >=app-crypt/certbot-${PV}-r100[certbot-nginx] +" + +pkg_postinst() { + elog "This is a meta-package to help in transition to single package " + elog "app-crypt/certbot." + elog "It is advice to simply deselect this package and to emerge " + elog "app-crypt/certbot[certbot-nginx] for this module." +} diff --git a/app-crypt/certbot-nginx/certbot-nginx-9999.ebuild b/app-crypt/certbot-nginx/certbot-nginx-9999.ebuild index d2c0abefda66..4e32e5329c4d 100644 --- a/app-crypt/certbot-nginx/certbot-nginx-9999.ebuild +++ b/app-crypt/certbot-nginx/certbot-nginx-9999.ebuild @@ -1,47 +1,27 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) - -inherit distutils-r1 - -PARENT_PN="${PN%-nginx}" -PARENT_P="${PARENT_PN}-${PV}" - -if [[ "${PV}" == *9999 ]]; then - inherit git-r3 - - EGIT_REPO_URI="https://github.com/certbot/certbot.git" - EGIT_SUBMODULES=() - EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" -else - SRC_URI=" - https://github.com/certbot/certbot/archive/v${PV}.tar.gz - -> ${PARENT_P}.gh.tar.gz - " - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" -fi - DESCRIPTION="Nginx plugin for Certbot (Let’s Encrypt client)" HOMEPAGE=" https://github.com/certbot/certbot + https://pypi.org/project/certbot-nginx/ https://letsencrypt.org/ " -S="${WORKDIR}/${PARENT_P}/${PN}" -LICENSE="Apache-2.0" +LICENSE="metapackage" SLOT="0" -# The requirement is really 17.5.0 but easier to require latest stable >= 23.1.1 -# to avoid broken 23.1.0. +# Meta package for transition +# No need to upgrade thanks to ">=" RDEPEND=" - >=app-crypt/acme-${PV}[${PYTHON_USEDEP}] - >=app-crypt/certbot-${PV}[${PYTHON_USEDEP}] - >=dev-python/pyopenssl-23.1.1[${PYTHON_USEDEP}] - >=dev-python/pyparsing-2.2.1[${PYTHON_USEDEP}] + >=app-crypt/certbot-9999[certbot-nginx] " -distutils_enable_tests pytest +pkg_postinst() { + elog "This is a meta-package to help in transition to single package " + elog "app-crypt/certbot." + elog "It is advice to simply deselect this package and to emerge " + elog "app-crypt/certbot[certbot-nginx] for this module." +}
