From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5243D158098 for ; Fri, 13 Jun 2025 00:15:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3A08E34231F for ; Fri, 13 Jun 2025 00:15:48 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id DA95E1104DC; Fri, 13 Jun 2025 00:15:43 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id CC2591104DB for ; Fri, 13 Jun 2025 00:15:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FE1C3423E0 for ; Fri, 13 Jun 2025 00:15:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 187E525EE for ; Fri, 13 Jun 2025 00:15:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749773493.061727633e1b02ef31d6bda58e464bdfdadcccc9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/certbot/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/certbot/Manifest app-crypt/certbot/certbot-4.1.1.ebuild X-VCS-Directories: app-crypt/certbot/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 061727633e1b02ef31d6bda58e464bdfdadcccc9 X-VCS-Branch: master Date: Fri, 13 Jun 2025 00:15:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 424fdff6-ae2d-4c19-a822-96261026fcc5 X-Archives-Hash: 3fbc13b62fd5d521b5e606c59d26f753 commit: 061727633e1b02ef31d6bda58e464bdfdadcccc9 Author: Thibaud CANALE thican net> AuthorDate: Thu Jun 12 22:00:13 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jun 13 00:11:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06172763 app-crypt/certbot: add 4.1.1 Closes: https://bugs.gentoo.org/957984 Signed-off-by: Thibaud CANALE thican.net> Part-of: https://github.com/gentoo/gentoo/pull/42571 Closes: https://github.com/gentoo/gentoo/pull/42571 Signed-off-by: Sam James gentoo.org> app-crypt/certbot/Manifest | 1 + app-crypt/certbot/certbot-4.1.1.ebuild | 231 +++++++++++++++++++++++++++++++++ 2 files changed, 232 insertions(+) diff --git a/app-crypt/certbot/Manifest b/app-crypt/certbot/Manifest index 7eaf81215af3..ed8985c937f3 100644 --- a/app-crypt/certbot/Manifest +++ b/app-crypt/certbot/Manifest @@ -1,2 +1,3 @@ DIST certbot-2.11.1.gh.tar.gz 2323842 BLAKE2B 6ff759bcac0e49139ae65c3f257ffad87e122184d36aa43446b700efad817fe78232edabfcbf57b4e6041ac8aa7ffa771b0d16e6194a0080e81ab4032c230a9f SHA512 985af624f6da30893db4bb527e3b6eeaa85de869dbb734dfe005c5f7b9638cef123963534290ee488612f77928d06461bbf6120ac77ce35aaa0c1adaeae3cb7c DIST certbot-4.0.0.gh.tar.gz 2309431 BLAKE2B ddf38b29fe0db9a0434291b85c11f40b89411ae2261951390d542a694996ce89e11100b4a37832271737be55d8c114150bfc56782dc0be673a5d23ada8d91933 SHA512 a34c65c603a5e07ac95143168d651b7d76c3d9403b39b12201d74a23ddbd42019062cb2c0819faae82f2691462324538f1d4db6cdb44c82eddeb4782c0bd86f9 +DIST certbot-4.1.1.gh.tar.gz 2325999 BLAKE2B 9bc3f3c3ce84c1a9846274901565db26745e1734570af026bd1343f085a306a50f6c397778adc284ede5a8e67f4a228898ea37cab05386de1debdd4dfc941ffc SHA512 c4949b8a5c50d347b5bbbba74d6779c4dfa95f9ef625476461aa97c3ae95b646cc701377f98aed2f42fadfcaa45ca2253dbe745e4171c87958b06244f6d500da diff --git a/app-crypt/certbot/certbot-4.1.1.ebuild b/app-crypt/certbot/certbot-4.1.1.ebuild new file mode 100644 index 000000000000..c993f4710d62 --- /dev/null +++ b/app-crypt/certbot/certbot-4.1.1.ebuild @@ -0,0 +1,231 @@ +# 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 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 ~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=" + !=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-2.0.0[${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+=" +# !=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/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 + + 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 +}