summaryrefslogtreecommitdiff
path: root/net-proxy/traefik/traefik-3.3.1.ebuild
blob: 8a022d2a14fc414173a9ebd23ea414437047e8f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2025 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
}