diff options
| author | 2024-10-16 20:51:50 +0200 | |
|---|---|---|
| committer | 2024-10-16 20:57:47 +0200 | |
| commit | 25e9e86f08ae637bd47f7db4eb5555e104e3c8a8 (patch) | |
| tree | a673fca57002cfcb531afa07327b2cd02f757b3c /net-proxy/traefik/traefik-3.1.6.ebuild | |
| parent | dev-db/garnet: new package, add 1.0.32 (diff) | |
| download | ebuilds-25e9e86f08ae637bd47f7db4eb5555e104e3c8a8.tar.xz | |
net-proxy/traefik: new package, add 3.1.6
Diffstat (limited to 'net-proxy/traefik/traefik-3.1.6.ebuild')
| -rw-r--r-- | net-proxy/traefik/traefik-3.1.6.ebuild | 36 | 
1 files changed, 36 insertions, 0 deletions
| diff --git a/net-proxy/traefik/traefik-3.1.6.ebuild b/net-proxy/traefik/traefik-3.1.6.ebuild new file mode 100644 index 0000000..6f15079 --- /dev/null +++ b/net-proxy/traefik/traefik-3.1.6.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="The Cloud Native Application Proxy " +HOMEPAGE="https://traefik.io/" +BDEPEND=">=dev-lang/go-1.23.0" +SRC_URI="https://github.com/traefik/traefik/releases/download/v${PV}/${PN}-v${PV}.src.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz" + +LICENSE="MIT" +LICENSE+=" Apache-2.0 BSD ISC MPL-2.0 " +SLOT="0" +KEYWORDS="~amd64" +S="${WORKDIR}" + +src_compile() { +	local BUILD_DATE +	BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) + +	ego generate +	ego build -ldflags=" +		-X github.com/traefik/traefik/v3/pkg/version.Version=${PV} +		-X github.com/traefik/traefik/v3/pkg/version.BuildDate=${BUILD_DATE} +		" ./cmd/traefik +} + +src_test() { +	ego test ./... +} + +src_install() { +	dobin traefik +} | 
