mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-08 00:10:15 +03:00
Closes: https://github.com/gentoo/gentoo/pull/44396 Signed-off-by: jinqiang zhang <peeweep@0x0.ee> Signed-off-by: Yixun Lan <dlan@gentoo.org>
32 lines
738 B
Bash
32 lines
738 B
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module
|
|
|
|
DESCRIPTION="A command-line client and tunneling daemon for Cloudflare Tunnel"
|
|
HOMEPAGE="https://github.com/cloudflare/cloudflared"
|
|
SRC_URI="https://github.com/cloudflare/cloudflared/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
# "make test" fails since cloudflared-2024.12.1, and fails with network-sanbox
|
|
RESTRICT="test"
|
|
|
|
BDEPEND=">=dev-lang/go-1.24.9"
|
|
|
|
src_compile(){
|
|
local ldflags="
|
|
-X main.Version=${PV}
|
|
-X 'main.BuildTime=$(date +'%F %T %z')'"
|
|
ego build -ldflags "${ldflags}" ./cmd/cloudflared
|
|
}
|
|
|
|
src_install(){
|
|
dobin cloudflared
|
|
einstalldocs
|
|
}
|