Install this version:
emerge -a =net-vpn/derper-1.100.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-vpn/derper-1.100.0
Or alternatively:
emerge --autounmask-write -a =net-vpn/derper-1.100.0
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module linux-info systemd
# share same source with net-vpn/tailscale
VERSION_GIT_HASH="c811bb19bf3b0c89061ac7b7a073f6cd23b504d0"
VERSION_MINOR=$(ver_cut 2)
VERSION_SHORT=${PV}
VERSION_LONG=${PV}-t${VERSION_GIT_HASH::9}
MY_P="tailscale-${PV}"
DESCRIPTION="DERP server for tailscale network"
HOMEPAGE="https://tailscale.com"
SRC_URI="https://github.com/tailscale/tailscale/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/tailscale/releases/download/v${PV}/${MY_P}-vendor.tar.xz"
S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
CONFIG_CHECK="~TUN"
BDEPEND="
acct-group/derper
acct-user/derper
>=dev-lang/go-1.26.4
"
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/derper
build_dist ./cmd/derpprobe
}
src_install() {
dobin derper
dobin derpprobe
insinto /etc/default
newins "${FILESDIR}"/derper.defaults derper
systemd_dounit "${FILESDIR}"/derper.service
systemd_install_serviced "${FILESDIR}"/derper.service.conf derper
newinitd "${FILESDIR}"/derper.initd derper
keepdir /var/lib/${PN}
fperms 0750 /var/lib/${PN}
exeinto /usr/libexec
doexe "${FILESDIR}"/derper-pre.sh
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | tailscale-1.100.0.tar.gz | 4889482 bytes | https://github.com/tailscale/tailscale/archive/v1.100.0.tar.gz |