diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-25 03:50:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-25 03:50:40 +0000 |
commit | 1e17db840dfd2f8b2b43a0a385c106812ebcfea9 (patch) | |
tree | 2c4c952ad148d645e2530f9c50315c4125f3517a /net-vpn/tailscale/tailscale-1.36.2.ebuild | |
parent | a1c55a7e2f400a6170fd3df167bfdc299c05e2db (diff) |
gentoo auto-resync : 25:02:2023 - 03:50:40
Diffstat (limited to 'net-vpn/tailscale/tailscale-1.36.2.ebuild')
-rw-r--r-- | net-vpn/tailscale/tailscale-1.36.2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net-vpn/tailscale/tailscale-1.36.2.ebuild b/net-vpn/tailscale/tailscale-1.36.2.ebuild new file mode 100644 index 000000000000..a1e8ad6739c7 --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.36.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 2020-2023 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="1.36" +VERSION_SHORT="1.36.2" +VERSION_LONG="1.36.2-t0438c67e2" +VERSION_GIT_HASH="0438c67e2517c78feeaf0d9f61ea2a6303dd875c" + +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 ~riscv ~x86" + +RDEPEND="net-firewall/iptables" + +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.Long=${VERSION_LONG} + -X tailscale.com/version.Short=${VERSION_SHORT} + -X tailscale.com/version.GitCommit=${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 +} |