app-crypt/certbot: drop 2.10.0, 2.11.0, 2.11.0-r3, 3.0.1, 3.1.0, 3.2.0, 3.2.0-r103, 3.3.0-r3

Bug: https://bugs.gentoo.org/952977
Signed-off-by: Thibaud CANALE <thican@thican.net>
Part-of: https://github.com/gentoo/gentoo/pull/42482
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
This commit is contained in:
Thibaud CANALE
2025-05-19 19:25:02 +02:00
committed by Matthew Thode
parent 10593841e6
commit 755513ad03
9 changed files with 0 additions and 853 deletions

View File

@@ -1,8 +1,2 @@
DIST certbot-2.10.0.gh.tar.gz 2322931 BLAKE2B cb84815ec2db2b4b365f2f2bdee1749263b540a1b67f9195280bdb122307337d294beb403bc05b236a94ed0782b0d093e2b8527a65cb69cac949fa627388e8bd SHA512 444981952140376808a9aa475a692df91e60fffc6d45902a3f809bc07311a7d6597ad56e712d3dae234450eb1c735db431182e784bc748511e68bf4f5f2d6cbd
DIST certbot-2.11.0.gh.tar.gz 2322114 BLAKE2B d266483d1ffc9f9274df3d5e389ed961758e77e9455a7324132bb2bfe4896db663642a98ac7250d35fbbd60d6aef0d6d2a58f98ad17130958dcfcd61283c2479 SHA512 ba47fc98faaf47278c58e107356371c06039f70ad539d2ca1ac39462bb45c7a6c55ed525d8bd8b11cd35cf807f3423e19309022751a492ba19ded79cfbb6d7f4
DIST certbot-2.11.1.gh.tar.gz 2323842 BLAKE2B 6ff759bcac0e49139ae65c3f257ffad87e122184d36aa43446b700efad817fe78232edabfcbf57b4e6041ac8aa7ffa771b0d16e6194a0080e81ab4032c230a9f SHA512 985af624f6da30893db4bb527e3b6eeaa85de869dbb734dfe005c5f7b9638cef123963534290ee488612f77928d06461bbf6120ac77ce35aaa0c1adaeae3cb7c
DIST certbot-3.0.1.gh.tar.gz 2325233 BLAKE2B 247505fb500c829de875aa0886f27727de4ccc4f474dd13957b524b84af99e6ee5d1e86f09577422932a498ec9fda24ae36377d117365531ad1f8eddb0148272 SHA512 7aec63ec7705f4e13acb7cef5d770f103222ddf3dca30760c42cd3aeb0531d630111518960c299d89bccba4134b544a329fa02659fac5f977c9ca0321b2d1e2e
DIST certbot-3.1.0.gh.tar.gz 2299990 BLAKE2B 596f11d4ebb161ee6ba67f4f150a77e081399f11f4e4652923c94297661149c9cb889afc51b46b6111847820823d90edc3a7f1e14c451122f88e6e777bf48795 SHA512 efd0b0c1540a6e3b631fa80eac65c9e8b31b1e5e1242f56d3723ca7e1b1b2121dfe1bf8e122fe9a9b994460553f1fa085b11d1369b3160f5c51c939b2cccd638
DIST certbot-3.2.0.gh.tar.gz 2309823 BLAKE2B 30ff3f40dc4d7724ad7b9a5eaf48f15fa579d49902dd23d21d8b2d36a4371da05f8c9417b0b2bf49a12565ba9dec180a9d805f22e0e8d1342ae5ea64b43d5219 SHA512 8fc3753dcdc954e143da31a0308269b99abadcdefc008c54c2cabac14a3bf99e757f1007349806a7dabf4a8fe19fd3a365ddea85c1dbeb3b453ae91503ea2288
DIST certbot-3.3.0.gh.tar.gz 2312043 BLAKE2B c7525be3116badf8de8de068d5f6a7daf79630c72bf338c58bf770478f8d827d8de2d9eb15b4c44fcd6e23c1357344cbb8529eed95359d305a0b77043e1adccc SHA512 8cc8939dc37c8c354e673110a63335322e16745c63a562e896f3ee1429ca70ebbb22920984e7aafa7c38e10fa0fa17e458d206799eb36c86280590c606aeed19
DIST certbot-4.0.0.gh.tar.gz 2309431 BLAKE2B ddf38b29fe0db9a0434291b85c11f40b89411ae2261951390d542a694996ce89e11100b4a37832271737be55d8c114150bfc56782dc0be673a5d23ada8d91933 SHA512 a34c65c603a5e07ac95143168d651b7d76c3d9403b39b12201d74a23ddbd42019062cb2c0819faae82f2691462324538f1d4db6cdb44c82eddeb4782c0bd86f9

View File

@@ -1,65 +0,0 @@
# Copyright 1999-2024 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot/
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
S="${WORKDIR}/${P}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="selinux"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See certbot/setup.py for acme >= dep
RDEPEND="
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-certbot )
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,65 +0,0 @@
# Copyright 1999-2024 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot/
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
S="${WORKDIR}/${P}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="selinux"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See certbot/setup.py for acme >= dep
RDEPEND="
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-certbot )
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,65 +0,0 @@
# Copyright 1999-2024 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot/
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
S="${WORKDIR}/${P}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="selinux"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See certbot/setup.py for acme >= dep
RDEPEND="
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-certbot )
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,66 +0,0 @@
# Copyright 1999-2024 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot/
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
S="${WORKDIR}/${P}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="selinux"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See certbot/setup.py for acme >= dep
RDEPEND="
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
<dev-python/josepy-2[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-certbot )
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,66 +0,0 @@
# 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot/
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
S="${WORKDIR}/${P}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="selinux"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See certbot/setup.py for acme >= dep
RDEPEND="
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
<dev-python/josepy-2[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-certbot )
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,227 +0,0 @@
# 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
LICENSE="Apache-2.0"
SLOT="0"
# acme required for certbot, and then required for modules
CERTBOT_BASE=(acme certbot)
# List of "subpackages" from tools/_release.sh (without acme which is already above)
CERTBOT_MODULES_EXTRA=(
apache
#dns-cloudflare # Requires missing packages, already in GURU
#dns-digitalocean # Requires missing packages, already in GURU
dns-dnsimple
dns-dnsmadeeasy
dns-gehirn
dns-google
dns-linode
dns-luadns
dns-nsone
dns-ovh
dns-rfc2136
dns-route53
dns-sakuracloud
nginx
)
IUSE="selinux"
for module in "${CERTBOT_MODULES_EXTRA[@]}"; do
IUSE+=" certbot-${module}"
done
BDEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See each setup.py for dependencies
# Also discard the previous related packages
# except their transition step
RDEPEND="
!<app-crypt/acme-3.2.0-r100
!<app-crypt/certbot-apache-3.2.0-r100
!<app-crypt/certbot-dns-desec-3.2.0-r100
!<app-crypt/certbot-dns-dnsimple-3.2.0-r100
!<app-crypt/certbot-dns-nsone-3.2.0-r100
!<app-crypt/certbot-dns-rfc2136-3.2.0-r100
!<app-crypt/certbot-nginx-3.2.0-r100
dev-python/chardet[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-43.0.0[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
<dev-python/josepy-2[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-25.0.0[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
certbot-apache? (
dev-python/python-augeas[${PYTHON_USEDEP}]
)
certbot-dns-dnsimple? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-dnsmadeeasy? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-gehirn? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-google? (
>=dev-python/google-api-python-client-1.6.5[${PYTHON_USEDEP}]
>=dev-python/google-auth-2.16.0[${PYTHON_USEDEP}]
)
certbot-dns-linode? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-luadns? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-nsone? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-ovh? (
>=dev-python/dns-lexicon-3.15.1[${PYTHON_USEDEP}]
)
certbot-dns-rfc2136? (
>=dev-python/dnspython-2.6.1[${PYTHON_USEDEP}]
)
certbot-dns-route53? (
>=dev-python/boto3-1.15.15[${PYTHON_USEDEP}]
)
certbot-dns-sakuracloud? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-nginx? (
>=dev-python/pyopenssl-25.0.0[${PYTHON_USEDEP}]
>=dev-python/pyparsing-2.4.7[${PYTHON_USEDEP}]
)
selinux? ( sec-policy/selinux-certbot )
"
# RDEPEND+="
# !<app-crypt/certbot-dns-cloudflare-3.2.0-r100
#
# >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] # @TODO is still necessary?
# certbot-dns-cloudflare? (
# # Available in GURU
# >=dev-python/cloudflare-2.19[${PYTHON_USEDEP}]
# <dev-python/cloudflare-2.20[${PYTHON_USEDEP}]
# )
# certbot-dns-digitalocean? (
# # Available in GURU
# >=dev-python/digitalocean-1.11[${PYTHON_USEDEP}]
# )
# "
# Note: "docs" is not an actual directory under "S", they are actually
# under each modules, see python_compile_all redefinition, but keep
# this instruction enabled for dependency configuration.
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
CERTBOT_DIRS=()
# Stores temporary modules docs in each subdirectories,
# will be used for HTML_DOCS
CERTBOT_DOCS="${T}/docs"
src_prepare() {
default
# set CERTBOT_DIRS
local base module
for base in "${CERTBOT_BASE[@]}"; do
CERTBOT_DIRS+=("${base}")
done
for module in "${CERTBOT_MODULES_EXTRA[@]}"; do
use "certbot-${module}" &&
CERTBOT_DIRS+=("certbot-${module}")
done
# Used to build documentation
mkdir "${CERTBOT_DOCS}" || die
# Remove "broken" symbolic link used as documentation.
# Copy actual file, removing source breaks wheel building.
rm -f "${S}/README.rst"
cp "${S}/certbot/README.rst" "${S}/README.rst" || die
}
python_compile() {
local dir
for dir in "${CERTBOT_DIRS[@]}"; do
pushd "${dir}" > /dev/null || die
distutils-r1_python_compile
popd > /dev/null || die
done
}
# Used to build documentation
python_compile_all() {
use doc || return
local dir
for dir in "${CERTBOT_DIRS[@]}"; do
# There is no documentation in certbot-apache or certbot-nginx.
if has "${dir}" "certbot-apache" "certbot-nginx"; then
continue
fi
pushd "${dir}" > /dev/null || die
sphinx_compile_all
# Note: discard the `/.` in last entry suffix to avoid error
# with `mv` command.
mv "${HTML_DOCS[-1]%/.}" "${CERTBOT_DOCS}/${dir}" || die
popd > /dev/null || die
done
# And finally give the result.
# Note: the suffix `/.` here is to discard the holding directory.
HTML_DOCS=( "${CERTBOT_DOCS}/." )
}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
# Change for pytest rootdir is required.
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
epytest
}

View File

@@ -1,66 +0,0 @@
# 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
S="${WORKDIR}/${P}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="selinux"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See certbot/setup.py for acme >= dep
RDEPEND="
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-43.0.0[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
<dev-python/josepy-2[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-certbot )
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,227 +0,0 @@
# 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
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
else
SRC_URI="
https://github.com/certbot/certbot/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
DESCRIPTION="Let's Encrypt client to automate deployment of X.509 certificates"
HOMEPAGE="
https://github.com/certbot/certbot
https://pypi.org/project/certbot/
https://letsencrypt.org/
"
LICENSE="Apache-2.0"
SLOT="0"
# acme required for certbot, and then required for modules
CERTBOT_BASE=(acme certbot)
# List of "subpackages" from tools/_release.sh (without acme which is already above)
CERTBOT_MODULES_EXTRA=(
apache
#dns-cloudflare # Requires missing packages, already in GURU
#dns-digitalocean # Requires missing packages, already in GURU
dns-dnsimple
dns-dnsmadeeasy
dns-gehirn
dns-google
dns-linode
dns-luadns
dns-nsone
dns-ovh
dns-rfc2136
dns-route53
dns-sakuracloud
nginx
)
IUSE="selinux"
for module in "${CERTBOT_MODULES_EXTRA[@]}"; do
IUSE+=" certbot-${module}"
done
BDEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
# See each setup.py for dependencies
# Also discard the previous related packages
# except their transition step
RDEPEND="
!<app-crypt/acme-3.2.0-r100
!<app-crypt/certbot-apache-3.2.0-r100
!<app-crypt/certbot-dns-desec-3.2.0-r100
!<app-crypt/certbot-dns-dnsimple-3.2.0-r100
!<app-crypt/certbot-dns-nsone-3.2.0-r100
!<app-crypt/certbot-dns-rfc2136-3.2.0-r100
!<app-crypt/certbot-nginx-3.2.0-r100
dev-python/chardet[${PYTHON_USEDEP}]
>=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}]
>=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
>=dev-python/cryptography-43.0.0[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.1[${PYTHON_USEDEP}]
>=dev-python/josepy-1.13.0[${PYTHON_USEDEP}]
<dev-python/josepy-2[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.4[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-25.0.0[${PYTHON_USEDEP}]
dev-python/pyrfc3339[${PYTHON_USEDEP}]
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
certbot-apache? (
dev-python/python-augeas[${PYTHON_USEDEP}]
)
certbot-dns-dnsimple? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-dnsmadeeasy? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-gehirn? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-google? (
>=dev-python/google-api-python-client-1.6.5[${PYTHON_USEDEP}]
>=dev-python/google-auth-2.16.0[${PYTHON_USEDEP}]
)
certbot-dns-linode? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-luadns? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-nsone? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-dns-ovh? (
>=dev-python/dns-lexicon-3.15.1[${PYTHON_USEDEP}]
)
certbot-dns-rfc2136? (
>=dev-python/dnspython-2.6.1[${PYTHON_USEDEP}]
)
certbot-dns-route53? (
>=dev-python/boto3-1.15.15[${PYTHON_USEDEP}]
)
certbot-dns-sakuracloud? (
>=dev-python/dns-lexicon-3.14.1[${PYTHON_USEDEP}]
)
certbot-nginx? (
>=dev-python/pyopenssl-25.0.0[${PYTHON_USEDEP}]
>=dev-python/pyparsing-2.4.7[${PYTHON_USEDEP}]
)
selinux? ( sec-policy/selinux-certbot )
"
# RDEPEND+="
# !<app-crypt/certbot-dns-cloudflare-3.2.0-r100
#
# >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] # @TODO is still necessary?
# certbot-dns-cloudflare? (
# # Available in GURU
# >=dev-python/cloudflare-2.19[${PYTHON_USEDEP}]
# <dev-python/cloudflare-2.20[${PYTHON_USEDEP}]
# )
# certbot-dns-digitalocean? (
# # Available in GURU
# >=dev-python/digitalocean-1.11[${PYTHON_USEDEP}]
# )
# "
# Note: "docs" is not an actual directory under "S", they are actually
# under each modules, see python_compile_all redefinition, but keep
# this instruction enabled for dependency configuration.
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
CERTBOT_DIRS=()
# Stores temporary modules docs in each subdirectories,
# will be used for HTML_DOCS
CERTBOT_DOCS="${T}/docs"
src_prepare() {
default
# set CERTBOT_DIRS
local base module
for base in "${CERTBOT_BASE[@]}"; do
CERTBOT_DIRS+=("${base}")
done
for module in "${CERTBOT_MODULES_EXTRA[@]}"; do
use "certbot-${module}" &&
CERTBOT_DIRS+=("certbot-${module}")
done
# Used to build documentation
mkdir "${CERTBOT_DOCS}" || die
# Remove "broken" symbolic link used as documentation.
# Copy actual file, removing source breaks wheel building.
rm -f "${S}/README.rst"
cp "${S}/certbot/README.rst" "${S}/README.rst" || die
}
python_compile() {
local dir
for dir in "${CERTBOT_DIRS[@]}"; do
pushd "${dir}" > /dev/null || die
distutils-r1_python_compile
popd > /dev/null || die
done
}
# Used to build documentation
python_compile_all() {
use doc || return
local dir
for dir in "${CERTBOT_DIRS[@]}"; do
# There is no documentation in certbot-apache or certbot-nginx.
if has "${dir}" "certbot-apache" "certbot-nginx"; then
continue
fi
pushd "${dir}" > /dev/null || die
sphinx_compile_all
# Note: discard the `/.` in last entry suffix to avoid error
# with `mv` command.
mv "${HTML_DOCS[-1]%/.}" "${CERTBOT_DOCS}/${dir}" || die
popd > /dev/null || die
done
# And finally give the result.
# Note: the suffix `/.` here is to discard the holding directory.
HTML_DOCS=( "${CERTBOT_DOCS}/." )
}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
# Change for pytest rootdir is required.
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
epytest
}