diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-16 10:53:11 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-16 10:53:11 -0500 |
| commit | 8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b (patch) | |
| tree | bb1e83c18d1cc77cdebfc5aeb9b12ad39c9787b5 /app-crypt/lego | |
| parent | f997c3ee588099e4f43e9ec845935868e3e60b8e (diff) | |
| download | baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.gz baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.xz baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.zip | |
Adding metadata
Diffstat (limited to 'app-crypt/lego')
| -rw-r--r-- | app-crypt/lego/Manifest | 3 | ||||
| -rw-r--r-- | app-crypt/lego/lego-5.0.4.ebuild | 6 | ||||
| -rw-r--r-- | app-crypt/lego/lego-5.1.0.ebuild | 6 | ||||
| -rw-r--r-- | app-crypt/lego/lego-5.2.2.ebuild | 86 | ||||
| -rw-r--r-- | app-crypt/lego/lego-9999.ebuild | 10 |
5 files changed, 109 insertions, 2 deletions
diff --git a/app-crypt/lego/Manifest b/app-crypt/lego/Manifest index a5f1be24ab7f..9ee0bb0de6a4 100644 --- a/app-crypt/lego/Manifest +++ b/app-crypt/lego/Manifest @@ -7,3 +7,6 @@ DIST lego-5.0.4.tar.gz 1248257 BLAKE2B d9d9b6251f93c372e2bf584229e71afaa79a69ed8 DIST lego-5.1.0-deps.tar.xz 7076936 BLAKE2B 1e2dae9e8625deb48f47c2a7d78a7afecc001168b3c2c58ed5d46034228b8c32d713f042721d5b81cb30a4f00e5c066ca04833d8021b4194845853da3f9b1d08 SHA512 edfc71429153e225ac5243c5322d412a9d0ebcbb57f717935a30f9852ec53b44680d000e4d8505f82c31aed85eb8d44de0744251fed210bcf39b671e9eff3de4 DIST lego-5.1.0-docs.tar.gz 4307899 BLAKE2B 2482c766bb484062d9ccec253b43f6ab4939336f1a2a55859e961a63e32b8795d8e3099a49cd5822c7a7467e19485980a6418c1bd5676d918f9ea9a943b4568a SHA512 24cd651f1d888e382addb186e29e570b5b505b55129ad49a12c450ef96a04090ab0fba579c74f60750b0dc105c87c761a4532689b96745fcb94754875806b530 DIST lego-5.1.0.tar.gz 1261300 BLAKE2B a84b68deea9196d4594798c5e2be379f1f0440b2c743d1cae3d285064cc8314d96b27af255c87760d6ee64656b0174ec8a39e00cb40f4585caca658b6833a183 SHA512 742833acd69b9ac6086247242d15c785feeea30a78cfcf52a286672ec806cd0ca150c5cd35fb4728cd41b2c7a7f7ad9dc5d56252207eca529721c4cf9afff414 +DIST lego-5.2.2-deps.tar.xz 6952972 BLAKE2B 003e73166d82612b362bdc7856cb4237a3f97da8f72b4084d9cdfe8f79ab4e0a4079558a3f49be0de341563ebf4226a2369b67fe8cd36a615053eeae331f554b SHA512 e16e80a9a0e980c3f44ffec2752091a6575843dc7ea2a5143eb65100ee1bbe639d24ae4fb3843c66f962075c07740fb27b542aee83aa74b0b3abb94bf4880332 +DIST lego-5.2.2-docs.tar.gz 4318878 BLAKE2B 7269a4ef7ab697603b98e6917088f5fd10851aa32408dd16298e0ff8b6e341d46174557da9c81e22d3de224dd8d9a1fccd177c6821bb59cf05ba28b0fe2cafdf SHA512 ce9a7131784b44c8ce2206fe95e7af4f1d2e468f31de05f97cbfe1fea7e344627edcdb57d87a9edf3f1796d34b257e5451836339f63edfdee3774ba9b4fad411 +DIST lego-5.2.2.tar.gz 1271038 BLAKE2B 3a22d05128cff54ca38b1a0059bdc667c31c76bb483e3d461014be1aa629cdb0fc131be7d2eb5257a8bd9679c022c55b5ce0ee7fda0c90f1d13fe0201271660d SHA512 b807ad884b5c3812f46b4ff91b65072bb5140ccd9fff6b78dce65dffdd72bd0d78833193d9f396b1404dadbefdcabd0bf080712f044538a52759343c63d09af7 diff --git a/app-crypt/lego/lego-5.0.4.ebuild b/app-crypt/lego/lego-5.0.4.ebuild index 822b0a3a9fa1..58f2e62bf45b 100644 --- a/app-crypt/lego/lego-5.0.4.ebuild +++ b/app-crypt/lego/lego-5.0.4.ebuild @@ -81,3 +81,9 @@ src_install() { einstalldocs dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/* } + +pkg_postinst() { + ewarn "If you're upgrading from v4 to v5 then you MUST migrate" + ewarn "Follow this migration guide" + ewarn "https://go-acme.github.io/lego/migration/cli/index.html" +} diff --git a/app-crypt/lego/lego-5.1.0.ebuild b/app-crypt/lego/lego-5.1.0.ebuild index 8fa57fd06439..4c8f4f954a04 100644 --- a/app-crypt/lego/lego-5.1.0.ebuild +++ b/app-crypt/lego/lego-5.1.0.ebuild @@ -78,3 +78,9 @@ src_install() { einstalldocs dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/* } + +pkg_postinst() { + ewarn "If you're upgrading from v4 to v5 then you MUST migrate" + ewarn "Follow this migration guide" + ewarn "https://go-acme.github.io/lego/migration/cli/index.html" +} diff --git a/app-crypt/lego/lego-5.2.2.ebuild b/app-crypt/lego/lego-5.2.2.ebuild new file mode 100644 index 000000000000..bad67c4d468e --- /dev/null +++ b/app-crypt/lego/lego-5.2.2.ebuild @@ -0,0 +1,86 @@ +# 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=97a2bbc957a597e7e831148142c4648a1e13f0b4 + +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" + +BDEPEND=">=dev-lang/go-1.25.0" + +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 + go-module_src_unpack + 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}" . +} + +src_test() { + ego test -v -cover ./... +} + +src_install() { + # primary program + dobin dist/"${PN}" + + # docs + einstalldocs + dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/* +} + +pkg_postinst() { + ewarn "If you're upgrading from v4 to v5 then you MUST migrate" + ewarn "Follow this migration guide" + ewarn "https://go-acme.github.io/lego/migration/cli/index.html" +} diff --git a/app-crypt/lego/lego-9999.ebuild b/app-crypt/lego/lego-9999.ebuild index 0c8e3f6d820c..bad67c4d468e 100644 --- a/app-crypt/lego/lego-9999.ebuild +++ b/app-crypt/lego/lego-9999.ebuild @@ -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=c63fcf074dec8093e443f6e028c82ef3a7c73285 +DOCUMENTATION_COMMIT=97a2bbc957a597e7e831148142c4648a1e13f0b4 if [[ ${PV} == 9999* ]]; then inherit git-r3 @@ -44,7 +44,7 @@ src_unpack() { EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${DOCUMENTATION_COMMIT}" git-r3_src_unpack else - default + go-module_src_unpack fi } @@ -78,3 +78,9 @@ src_install() { einstalldocs dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/* } + +pkg_postinst() { + ewarn "If you're upgrading from v4 to v5 then you MUST migrate" + ewarn "Follow this migration guide" + ewarn "https://go-acme.github.io/lego/migration/cli/index.html" +} |
