From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- net-vpn/tailscale/Manifest | 9 ++++++ net-vpn/tailscale/files/tailscale.tmpfiles | 2 ++ net-vpn/tailscale/files/tailscaled.confd | 6 ++++ net-vpn/tailscale/files/tailscaled.initd | 14 ++++++++ net-vpn/tailscale/metadata.xml | 8 +++++ net-vpn/tailscale/tailscale-0.97_p45.ebuild | 50 +++++++++++++++++++++++++++++ 6 files changed, 89 insertions(+) create mode 100644 net-vpn/tailscale/Manifest create mode 100644 net-vpn/tailscale/files/tailscale.tmpfiles create mode 100644 net-vpn/tailscale/files/tailscaled.confd create mode 100644 net-vpn/tailscale/files/tailscaled.initd create mode 100644 net-vpn/tailscale/metadata.xml create mode 100644 net-vpn/tailscale/tailscale-0.97_p45.ebuild (limited to 'net-vpn/tailscale') diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest new file mode 100644 index 000000000000..e2c120e4fde3 --- /dev/null +++ b/net-vpn/tailscale/Manifest @@ -0,0 +1,9 @@ +AUX tailscale.tmpfiles 79 BLAKE2B 8391d38d1ba704d356f894040cf998c42397e567970d285cf0ef82a854b48d534446231597e4e50ef913c03d8540488eb81ef296c8dbd0dc2c61ebd9678ad708 SHA512 9c220d99fae73ef3b8d76d35e137b48254719836087d75859027ae087190e57eaa1de21379efde05cdf285fe4cbd767e2ba9d7280b699695294150d351598c88 +AUX tailscaled.confd 147 BLAKE2B abea10fa6d05304a0c953dfd0fa1a4c10054129294d8554846d961457164513a52c551cea2603daffb4cbaeea9c22332dbb32c251dab334e095253ad474206d3 SHA512 db2e0727b84aba6d473a65cee1029fff0058754f1474c1062f37215da51ea85942b5ab3aabfb3f904d47aa5ec5844cab2c7126313dcdca35f10144a7525dd916 +AUX tailscaled.initd 416 BLAKE2B b4196852147dad2bf9a948b3d36f2d3b02e18266174d0a1f3b252ceca71132d232fa1de63a1b03992ccb39dcbdbb29b69791bf51e2e130c7192271114887c1e5 SHA512 a65a386715cfd21a02723ec6c7d05f874e0ac370142867c8145a7f9701cce0eacc2861aed69041363ca6e01fa5f87941464c653822ae187f1ea5ab66a1587bd2 +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 +EBUILD tailscale-0.97_p45.ebuild 1148 BLAKE2B 51bdffb3879948dbfa6874f15885d6471bf0f971a3872bf789d49df150458eeacd94b43578f78adb625ee060a1dbf47008fde1229ac90b2f70081e0c6ec3dce1 SHA512 f03e1f52a4cc8893603e9603f38d51bf03a31aa76076c0d521d0cc3e59dc636b2457222343851402283a3dc40ce2417ebc31a799df95f58da3bf11711eba60b1 +MISC metadata.xml 249 BLAKE2B 51ba583d3f040316570785a91020f260c7eacf5a322cc4b905648f547f06f413976d1834f7f010db5b6183aad6d6503f9bccb21e74508b5a5af1a5d96e82c805 SHA512 276a98a5eb50222440ab5bba11bfc895a0f89be2c2f2e561214b97b6138fe7c4341f6ca1fcb29bc03fa5a89844ede7f82a942c20ed649ce3e7da459a1b2481d5 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 @@ + + + + + Patrick McLean + chutzpah@gentoo.org + + 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} +} -- cgit v1.2.3