From 68638c04d2ef703cdc04681a5612844ecd3201d6 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Mon, 23 Dec 2024 00:45:12 +0000 Subject: app-crypt/lego: add 4.21.0, drop 4.19.2 --- app-crypt/lego/lego-4.21.0.ebuild | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app-crypt/lego/lego-4.21.0.ebuild (limited to 'app-crypt/lego/lego-4.21.0.ebuild') diff --git a/app-crypt/lego/lego-4.21.0.ebuild b/app-crypt/lego/lego-4.21.0.ebuild new file mode 100644 index 0000000..87c9e85 --- /dev/null +++ b/app-crypt/lego/lego-4.21.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Let's Encrypt/ACME client and library written in Go " +HOMEPAGE="https://github.com/go-acme/lego" +BDEPEND=">=dev-lang/go-1.22.0" +SRC_URI="https://github.com/go-acme/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz" + +LICENSE="MIT" +LICENSE+=" Apache-2.0 BSD MPL-2.0 BSD-2 " +SLOT="0" +KEYWORDS="~amd64" + +# tests require reaching out to DNS servers +PROPERTIES="test_network" +RESTRICT="test" + +src_compile() { + mkdir bin || die + ego build -trimpath --ldflags "-X main.version=${PV}" -o bin/lego ./cmd/lego/... +} + +src_test() { + ego test ./... +} + +src_install() { + dobin bin/lego +} -- cgit v1.2.3