mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-vpn/tailscale: add 1.84.3
Closes: https://bugs.gentoo.org/960516 Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST tailscale-1.82.5-deps.tar.xz 265161016 BLAKE2B eb50d34ecda207f623efe213c81f38d39953c8c984a0d35ede0b052ae9cc021404d3f596c5e4c74cd60b68c31d9873b60ac98ca600216fd157f42c9d27eb103d SHA512 877fedabdac139dfb73395ff27d915139c250f6308920cb57974b1d0d32c47ef14d9cc4dc47e89ce32adea36d7c558ee42caddac317f145f62ecfd59af493c22
|
||||
DIST tailscale-1.82.5.tar.gz 3793962 BLAKE2B 49ea1f878ce2ff6198d6ced1e4f49e557e7b1b9e2a2dd65079d5343aa46e57eee23b9d24561771c06af28d28cde4139d445e05e5d5c24f715ffc54b07c905050 SHA512 bed02f09c4905cba13fd3de3d45e027511420d76ece211312e153b6e50d8a10d2fb968a09ec1121f2150d414a74ca128430740173c16c0bef2696d141496849a
|
||||
DIST tailscale-1.84.3-deps.tar.xz 265133640 BLAKE2B 4c041513f2c9c86f58e1ec449a67eaed6bff1cba0ee5d615eae45a65b751caf5c0a65843d6547d62c34b7bd766d871db78e9eb688159e6324ec93783f073fec1 SHA512 cc61248ebd49cba634bde39278f4eb9574d2e958a6751b0b956cb4f453cb2506895f3b9f70c6795f1aaf13401794edd1800611b7487de9f5dd219c7992b4adac
|
||||
DIST tailscale-1.84.3.tar.gz 3963497 BLAKE2B 2dadfffa203883a0aaa7e0148d9925be93954eda8bb0638224cefe4bf24a50112ee08fd71e5d0d5caf19bd2fe963e8bb796a3033796e576b63a954a6ae26f057 SHA512 23e185ae2b7ced0d93632b891f3150d31a5b053d69a30c8cdc361fc9fab0d4bab54b730caa4cdd04cd5d82fef48a46ee509a1b4b590e6beae29ab1da6660cbc0
|
||||
|
||||
63
net-vpn/tailscale/tailscale-1.84.3.ebuild
Normal file
63
net-vpn/tailscale/tailscale-1.84.3.ebuild
Normal file
@@ -0,0 +1,63 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module linux-info systemd tmpfiles
|
||||
|
||||
# These settings are obtained by running ./build_dist.sh shellvars` in
|
||||
# the upstream repo.
|
||||
# They should be updated on every bump.
|
||||
VERSION_MINOR="84"
|
||||
VERSION_SHORT="1.84.3"
|
||||
VERSION_LONG="1.84.3-t7648989bc"
|
||||
VERSION_GIT_HASH="7648989bc54738b1e40dde74fa822984a63cbc05"
|
||||
|
||||
DESCRIPTION="Tailscale vpn client"
|
||||
HOMEPAGE="https://tailscale.com"
|
||||
SRC_URI="https://github.com/tailscale/tailscale/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
CONFIG_CHECK="~TUN"
|
||||
|
||||
RDEPEND="|| ( net-firewall/iptables net-firewall/nftables )"
|
||||
BDEPEND=">=dev-lang/go-1.24"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
# This translates the build command from upstream's build_dist.sh to an
|
||||
# ebuild equivalent.
|
||||
build_dist() {
|
||||
ego build -tags xversion -ldflags "
|
||||
-X tailscale.com/version.longStamp=${VERSION_LONG}
|
||||
-X tailscale.com/version.shortStamp=${VERSION_SHORT}
|
||||
-X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}" "$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
build_dist ./cmd/tailscale
|
||||
build_dist ./cmd/tailscaled
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin tailscaled
|
||||
dobin tailscale
|
||||
|
||||
systemd_dounit cmd/tailscaled/tailscaled.service
|
||||
insinto /etc/default
|
||||
newins cmd/tailscaled/tailscaled.defaults tailscaled
|
||||
keepdir /var/lib/${PN}
|
||||
fperms 0750 /var/lib/${PN}
|
||||
|
||||
newtmpfiles "${FILESDIR}/${PN}.tmpfiles" ${PN}.conf
|
||||
|
||||
newinitd "${FILESDIR}/${PN}d.initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}d.confd" ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process ${PN}.conf
|
||||
}
|
||||
Reference in New Issue
Block a user