diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2020-03-30 19:58:34 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-03-30 19:58:34 -0700 |
commit | ed5ccfe9186aa2de7246799ed685595b666e3c84 (patch) | |
tree | 3e89717bd9552242eeb33d93bd369d7c7a79cb43 /net-vpn | |
parent | profiles: Mask games-fps/ut2003 for removal (diff) | |
download | gentoo-ed5ccfe9186aa2de7246799ed685595b666e3c84.tar.gz gentoo-ed5ccfe9186aa2de7246799ed685595b666e3c84.tar.bz2 gentoo-ed5ccfe9186aa2de7246799ed685595b666e3c84.zip |
net-vpn/tailscale: new package
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/tailscale/Manifest | 4 | ||||
-rw-r--r-- | net-vpn/tailscale/files/tailscale.tmpfiles | 2 | ||||
-rw-r--r-- | net-vpn/tailscale/files/tailscaled.confd | 6 | ||||
-rw-r--r-- | net-vpn/tailscale/files/tailscaled.initd | 14 | ||||
-rw-r--r-- | net-vpn/tailscale/metadata.xml | 8 | ||||
-rw-r--r-- | net-vpn/tailscale/tailscale-0.97_p45.ebuild | 50 |
6 files changed, 84 insertions, 0 deletions
diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest new file mode 100644 index 000000000000..23037eae22e2 --- /dev/null +++ b/net-vpn/tailscale/Manifest @@ -0,0 +1,4 @@ +DIST tailscale_0.97-45_386.tgz 11879684 BLAKE2B 690e707e499e6986bd9676875af818f9fc68a7b9a4f66b2384efab4efa0c0d95cabe1a4c816152a7e61d14f33b16f1da00a8e7f9c26950412c2ac971a0ba090b SHA512 c81ae265c20bc2f8e9528b78dd39fd53d74b7a90d354617673912632d6599c9c0b866156ff8032b6a92f8452ae95789fdd0be3db87cf13aca2bb6ecdb13edf28 +DIST tailscale_0.97-45_amd64.tgz 12233156 BLAKE2B 120781c003be7cd244dd8b3659e817aea6567d0c0d4e34f468f2fb584b62a34cadec4e37b5d96076e7b4c9ffc6611b4dd7d41375ce6e54812e89d974af70a558 SHA512 6ed0dc7d847c75b3597deff0febb5a72b07d027e8b4889151c00126d77dd1dc3fd878080a2d0d4737a3b9a5f3b11993e2ff6991fc7e5fde2eed7838239515338 +DIST tailscale_0.97-45_arm.tgz 11328113 BLAKE2B 1ca588dfd8bb2c6e2b79d323b39f919ad2aebbb4c1812330a2875752b102bc461a304fa9c9761bd090d6361a966e04a06128535885383cb5baca0a679013e5b4 SHA512 78d8f44a07365ebc226df9c0a808f8da2a3e1f102db7aae3c9612c5c7e6ed5a32fcf0d43b43f23c507bba7ca4049be7a33c52473cff53d3fd7e9f9ae6b4d84bb +DIST tailscale_0.97-45_arm64.tgz 11321460 BLAKE2B bdaadbb8c384cab4d098b9aabab299767744bc0ada5b31f7510505e5dd83b507b369010ba4d9e96935fbe8cdd9fafe3fd9308d3ccd5aaf829c3aa85887bc144e SHA512 e6a68fe36219024fa01ce0bc5b2ab56614197dade1cdc131ef8f966684fa513e0e51589fc4e7740812f08f05a2b08127a8679de3005b925a613a1bef8675a48f diff --git a/net-vpn/tailscale/files/tailscale.tmpfiles b/net-vpn/tailscale/files/tailscale.tmpfiles new file mode 100644 index 000000000000..f27c77835201 --- /dev/null +++ b/net-vpn/tailscale/files/tailscale.tmpfiles @@ -0,0 +1,2 @@ +#type path mode user group age argument +d /run/tailscale 0755 - - - - diff --git a/net-vpn/tailscale/files/tailscaled.confd b/net-vpn/tailscale/files/tailscaled.confd new file mode 100644 index 000000000000..d65c42925ecf --- /dev/null +++ b/net-vpn/tailscale/files/tailscaled.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/tailscaled +# the port for tailscaled to listen on +#tailscaled_port=41641 + +# extra arguments passed to the daemon +#tailscaled_args="" diff --git a/net-vpn/tailscale/files/tailscaled.initd b/net-vpn/tailscale/files/tailscaled.initd new file mode 100644 index 000000000000..c7edf4a19f09 --- /dev/null +++ b/net-vpn/tailscale/files/tailscaled.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="tailscaled" +description="Tailscale node agent" +command=/usr/sbin/tailscaled +command_args="--state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port ${tailscaled_port:-41641} ${tailscaled_args}" +supervisor=supervise-daemon + +depend() { + need net + use logger +} diff --git a/net-vpn/tailscale/metadata.xml b/net-vpn/tailscale/metadata.xml new file mode 100644 index 000000000000..126b9ca42a25 --- /dev/null +++ b/net-vpn/tailscale/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Patrick McLean</name> + <email>chutzpah@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-vpn/tailscale/tailscale-0.97_p45.ebuild b/net-vpn/tailscale/tailscale-0.97_p45.ebuild new file mode 100644 index 000000000000..42558405f114 --- /dev/null +++ b/net-vpn/tailscale/tailscale-0.97_p45.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd tmpfiles + +DESCRIPTION="Tailscale vpn client" +HOMEPAGE="https://tailscale.com" + +MY_PV="${PV//_p/-}" +MY_P="${PN}_${MY_PV}" +SRC_URI=" + amd64? ( https://pkgs.tailscale.com/stable/${MY_P}_amd64.tgz ) + arm? ( https://pkgs.tailscale.com/stable/${MY_P}_arm.tgz ) + arm64? ( https://pkgs.tailscale.com/stable/${MY_P}_arm64.tgz ) + x86? ( https://pkgs.tailscale.com/stable/${MY_P}_386.tgz ) +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND="net-firewall/iptables" + +QA_PRECOMPILED="**" + +src_unpack() { + default + use amd64 && S="${WORKDIR}/${MY_P}_amd64" + use arm && S="${WORKDIR}/${MY_P}_arm" + use arm64 && S="${WORKDIR}/${MY_P}_arm64" + use x86 && S="${WORKDIR}/${MY_P}_386" +} + +src_install() { + dosbin ${PN}d + dobin ${PN} + + systemd_dounit systemd/*.service + insinto /etc/default + newins systemd/tailscaled.defaults ${PN} + 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} +} |