commit: 01cd059b9bbd389366da1b74181fe906b8d93415 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Mon Jan 12 18:28:19 2026 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Mon Jan 12 18:30:31 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01cd059b
app-crypt/lego: add 4.31.0 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> app-crypt/lego/Manifest | 3 ++ app-crypt/lego/lego-4.31.0.ebuild | 78 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/app-crypt/lego/Manifest b/app-crypt/lego/Manifest index 0616174d6c4d..dff8ae2fcda7 100644 --- a/app-crypt/lego/Manifest +++ b/app-crypt/lego/Manifest @@ -7,3 +7,6 @@ DIST lego-4.29.0.tar.gz 928800 BLAKE2B 935bb7e8008b3ef61d439a1adc4282c567dd58ab1 DIST lego-4.30.1-deps.tar.xz 7400940 BLAKE2B df8f4b2221f24b19f959b547e78028459a3453d1913869cc7c13c589b584b9d8c78cc02a0f47d1b5a3bb4eeead633417b4d94f4df9f3e0ea2b7a2e36a74ca36b SHA512 d068244c818575c5075cf6ea28adfddab90e616e82111708d19e640e499e3759e175b21787cc671a1d0d416df860b2f4ef0c9a3f94c27bf558c2d25aba19f7c3 DIST lego-4.30.1-docs.tar.gz 3750156 BLAKE2B 4ace3a598111907137ed40e02cef8e8eaefe9b0da9e80bc9e8ea24b94feb607f991e9d6d4d47c0c960d21e794919e361e0148f5cde5fed553c3c1895a8722d7a SHA512 a27ed251e48233c1ff84d73f5cc053483aaa8bf7f4885dacb4623f3b4bd60466ad7a0e72493abe0801b2d17e586d20e559117c26a014e4ad56470e18ab230ecf DIST lego-4.30.1.tar.gz 951127 BLAKE2B e3e724f0d342bdf80cb7eb7369bc9fe695011e18bb8b96bc4cc089dec4c262612a0b12b458a004a74cfe5daa53ff20efca60302e39e0c49d3f0c2a035571ea76 SHA512 12e2b765953aff79b8b0bcc7c26c6d9d2c0120bc1f3fc2ff18f59692bcf4b9b9ddebc6ec4826dca36d4da242991477eb91e1295683bf1410d0b3d19628cb2939 +DIST lego-4.31.0-deps.tar.xz 7628304 BLAKE2B fa11fb6eca0971babcb080512b5a22e41c7b581db9a55792089d55108321c65de773be41dd431d89709891ef835a6dfa4068a2da734828708ef87b53a5e06657 SHA512 ea6d49e72cbe67949eb4901519794a08e08b7c8c3a3fc777db23932891423a6a0bc5773146a0744fc6d29369c32cdb7d07f2646332409a557fd879ebbca627ce +DIST lego-4.31.0-docs.tar.gz 3805375 BLAKE2B 890c960400adb46b5a5cb9c79a7f48a86409b835cdb777cecdbee74bfaac69799be781b0eefedb293657d2389d05b3d4428873142084eabe7147e80f79363ba3 SHA512 3c33df4658224b454096e91f3e8dc1f3f67f9f73c8da1f00d63f758323d768f968e317f63510a8fd77f004c7ead82ac297f74f79008e1e53417c63d945f7ffa7 +DIST lego-4.31.0.tar.gz 969855 BLAKE2B 8651b67117269d94433c2810bbb7cd315a68fff4d941407ee6e5d928cf62fecf08807dc42835ad2555680bb969898e0de88d6954d5a0f6d44acb71addae510fc SHA512 7f5f316bf937d00d4cf2db2eff3674bd272e866e2427e997f7ebea6ba3463711d89103b8b4332e1804656db67caa23c3d772b3b234b36b7f3752aa3053826989 diff --git a/app-crypt/lego/lego-4.31.0.ebuild b/app-crypt/lego/lego-4.31.0.ebuild new file mode 100644 index 000000000000..88742a6dae5e --- /dev/null +++ b/app-crypt/lego/lego-4.31.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go" +HOMEPAGE="https://github.com/go-acme/lego/" + +DOCUMENTATION_COMMIT=d2350eaec31e3fea57b8e65cbd095f99bff82ce5 + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/go-acme/lego.git" +else + SRC_URI=" + https://github.com/go-acme/lego/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/go-acme/lego/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz + https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}-deps.tar.xz +" + KEYWORDS="~amd64 ~arm64" +fi + +# main +LICENSE="MIT" +# deps +LICENSE+=" Apache-2.0 BSD-2 BSD ISC MPL-2.0" +SLOT="0" + +# some tests require network access otherwise get following error +# expected: "zoneee: unexpected status code: [status code: 401] body: Unauthorized" +# actual : "zoneee: could not find zone for domain \"prefix.example.com\" (_acme-challenge.prefix.example.com.): could not find the start of authority for _acme-challenge.prefix.example.com.: read udp 10.0.0.1:54729->10.0.0.1:53: read: connection refused" +PROPERTIES="test_network" +RESTRICT="test" + +src_unpack() { + if [[ ${PV} == 9999* ]]; then + git-r3_src_unpack + go-module_live_vendor + EGIT_BRANCH="gh-pages" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${DOCUMENTATION_COMMIT}" + git-r3_src_unpack + else + default + fi +} + +src_prepare() { + default + find ../"${PN}"-"${DOCUMENTATION_COMMIT}"/ -type f -not -name '*.html' -delete || die +} + +src_compile() { + export CGO_ENABLED=0 + + local VERSION + if [[ ${PV} == 9999* ]]; then + VERSION="$(git rev-parse HEAD)" || die + else + VERSION="${PV}" + fi + + ego build -trimpath -ldflags "-X main.version=${VERSION}" -o dist/"${PN}" ./cmd/lego/ +} + +src_test() { + ego test -v -cover ./... +} + +src_install() { + # primary program + dobin dist/"${PN}" + + # docs + einstalldocs + dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/* +}
