diff --git a/app-crypt/certbot/Manifest b/app-crypt/certbot/Manifest index 12b23a64fc5d9..e843224f15fcb 100644 --- a/app-crypt/certbot/Manifest +++ b/app-crypt/certbot/Manifest @@ -2,3 +2,4 @@ DIST certbot-5.5.0.gh.tar.gz 2339278 BLAKE2B 0b0a7402540db95180f1b04497958f2a368 DIST certbot-5.6.0.gh.tar.gz 2345701 BLAKE2B 3c726dc351294e93aeecd1b9dfe449ff765d2b2a1bf5d27572ea37311923b1b60c10d80b4f1d845f7b846eb2ae0467d75de7ce1577902fc941a639c28e508db3 SHA512 ee047f8b4c1ca461995b1d5df935316ca11e424dd77223ce49713c550d0e2c8bf8945f774aaa896e9fe7b90b0970997b50fd603113f17bb31f03e2e3d3bc6427 DIST certbot-5.7.0.gh.tar.gz 2342623 BLAKE2B 441614c53849ce994b330c45b26021a9b55478ca1ca1610693cacc88c15a54e34c860f842b7119fc2bf015c493d029a7ed0bfaa45c7baa5394b1f7d8d5f60676 SHA512 336beb35d9690caf6c0ae72f0822ca3bcc1d898bf486be7dee710d7b0ec333d43bccc0981b39580b436e8c2bf37365f6c045e6eb525446b85b1e6a200feb4da9 DIST certbot-5.8.0.gh.tar.gz 2353559 BLAKE2B c332a6c3bed909ae4c57480dfee6e83d8d333a90052163d6d9db57d56273894e16a06db9ccd303af7f6f8c000dd67082e76bc2a4b0abfb20f5ae5b93a93226a0 SHA512 c014bcaec84f5316d729d5d19127b07e871ecc464f571b5730d4702911cb09043e7019f254e76d11bd0421914e6b8bba4a953b0dd5a3b4dca8227ce6113b0a84 +DIST certbot-5.9.0.gh.tar.gz 2348460 BLAKE2B 6f8b058c35f1a3fde6882751d6a3a79727a49964a327e2d5103750c4062fccfca394e9b32aec29d7099327f864c90891a0495e06cebcb03466f3468027998ff6 SHA512 7d2be2fab06e81138c484807608db730e5ac5d3d9d5d049bbc7b4974b6d99ba3835b2b0b3c937c5b40f0a48d3f0d45ec579dfe1b86367f31c52be8bc8c806567 diff --git a/app-crypt/certbot/certbot-5.9.0.ebuild b/app-crypt/certbot/certbot-5.9.0.ebuild new file mode 100644 index 0000000000000..ab7985762d103 --- /dev/null +++ b/app-crypt/certbot/certbot-5.9.0.ebuild @@ -0,0 +1,222 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 systemd toolchain-funcs + +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" +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 + #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=" + >=dev-python/configargparse-1.5.3[${PYTHON_USEDEP}] + >=dev-python/configobj-5.0.6[${PYTHON_USEDEP}] + >=dev-python/cryptography-47.0.0[${PYTHON_USEDEP}] + >=dev-python/distro-1.7.0[${PYTHON_USEDEP}] + >=dev-python/josepy-2.0.0[${PYTHON_USEDEP}] + >=dev-python/parsedatetime-2.6[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-25.0.0[${PYTHON_USEDEP}] + dev-python/pyrfc3339[${PYTHON_USEDEP}] + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}] + certbot-apache? ( + dev-python/python-augeas[${PYTHON_USEDEP}] + ) + certbot-dns-cloudflare? ( + >=dev-python/cloudflare-4.0:0[${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-3.0.0[${PYTHON_USEDEP}] + ) + selinux? ( sec-policy/selinux-certbot ) +" +# RDEPEND+=" +# >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] # @TODO is still necessary? +# certbot-dns-digitalocean? ( +# # Available in GURU +# >=dev-python/digitalocean-1.15.0[${PYTHON_USEDEP}] +# ) +# " + +EPYTEST_PLUGINS=() +# 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() { + tc-has-64bit-time_t || EPYTEST_DESELECT+=( + 'certbot/_internal/tests/storage_test.py::RenewableCertTests::test_time_interval_judgments' + ) + + # Change for pytest rootdir is required. + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + epytest +} + +src_install() { + distutils-r1_src_install + + systemd_dounit "${FILESDIR}"/certbot.{service,timer} +}