net-vpn/tailscale - 1.98.1 (jaredallard)

Search

Install

Install this version:

emerge -a =net-vpn/tailscale-1.98.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-vpn/tailscale-1.98.1

Or alternatively:

emerge --autounmask-write -a =net-vpn/tailscale-1.98.1

Package Information

Description:
Tailscale vpn client
Homepage:
https://tailscale.com
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.98.1 8 amd64 ~arm arm64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module systemd tmpfiles

# These settings are obtained by running ./build_dist.sh shellvars in
# the upstream repo.
VERSION_MINOR="98"
VERSION_SHORT="1.98.1"
VERSION_LONG="1.98.1-t87ab41993"
VERSION_GIT_HASH="87ab41993e0aba0965ef887af38c2543572bef3a"

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://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~riscv ~x86"

RDEPEND="net-firewall/iptables"
BDEPEND=">=dev-lang/go-1.26"

RESTRICT="test"

# This translates the build command from upstream's build_dist.sh to an
# ebuild equivalent.
build_dist() {
  ego build \
    -ldflags "-X tailscale.com/version.longStamp=${VERSION_LONG} -X tailscale.com/version.shortStamp=${VERSION_SHORT}" \
    "$@"
}

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
}

Inherited Eclasses

Dependencies

RDEPEND

net-firewall/iptables

BDEPEND

>=dev-lang/go-1.26

Manifest for 1.98.1

Type File Size Source URLs
DIST tailscale-1.98.1.tar.gz 4755446 bytes https://github.com/tailscale/tailscale/archive/v1.98.1.tar.gz