app-crypt/lego: update to 4.30.1

remove symlinking of vendor/ as it is placed rightly in deps tarball

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Part-of: https://github.com/gentoo/gentoo/pull/45067
Closes: https://github.com/gentoo/gentoo/pull/45067
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Rahil Bhimjiani 2025-12-18 11:01:38 +05:30 committed by Sam James
parent 48a3295b9a
commit 0589d36f6c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 83 additions and 3 deletions

View File

@ -4,3 +4,6 @@ DIST lego-4.28.1.tar.gz 915199 BLAKE2B 286c9a723fca6159aba191253f8c1288fa934a753
DIST lego-4.29.0-deps.tar.xz 7561544 BLAKE2B 1603b393d9cba30e237129d51ae356388b668d6c62554da2cf7c1f4272a62b2c65f0888515fb33b713a9b3bd78f18a238f345dd7ef821870f2e6103c3a051865 SHA512 5d6b7e8f27531090894a4d8bacdc4e58eec69caeaf4e055b033b05d558818800ada4cc4c6c3a3291a78de8f288691391c2790ea0d16d6a1eb4eec70fd581fde1
DIST lego-4.29.0-docs.tar.gz 3689897 BLAKE2B 7edf36b6fa53248cfbafdd504acde1c0b95bdb0c5b8e56bb891437436be2d72282911e74abfd337a4adee74c4cace979541a0a5603c05eadcc1b5b21a801056f SHA512 8b4aabe9c2b41004aedd3f2deaf93f6ed3419c0de8cda265d7c7ff13a8f5804c57a7afd9074c88b6be12c82a1da42933937875006009e79d77a511f685f7a74f
DIST lego-4.29.0.tar.gz 928800 BLAKE2B 935bb7e8008b3ef61d439a1adc4282c567dd58ab1480b1a769ba4d2ef7ed53f92b8167d1b65e91d946cefc247a7a463a30582b18dd5a91c0312e6a1aab2115d9 SHA512 9b9d52cf218f6103c5bea87f68d4980f882850557c3f833bce6eee07ac03373821a67ae4cf41910deb20af1b1b59bddec1932a94a2cbe2eec3f27e7c32ac8c4a
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

View File

@ -0,0 +1,78 @@
# Copyright 1999-2025 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=093311eaa03c9f9f4cfdd9ef6bbc24547abfea4f
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://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${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}"/*
}

View File

@ -8,7 +8,7 @@ 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=2dabd1b0049c85b8d1770602491f699bd1d6fbfd
DOCUMENTATION_COMMIT=093311eaa03c9f9f4cfdd9ef6bbc24547abfea4f
if [[ ${PV} == 9999* ]]; then
inherit git-r3
@ -17,7 +17,7 @@ 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
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
"
KEYWORDS="~amd64 ~arm64"
fi
@ -59,7 +59,6 @@ src_compile() {
VERSION="$(git rev-parse HEAD)" || die
else
VERSION="${PV}"
ln -sv ../vendor ./ || die
fi
ego build -trimpath -ldflags "-X main.version=${VERSION}" -o dist/"${PN}" ./cmd/lego/