diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest new file mode 100644 index 0000000..5c3f3cb --- /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_1.0.5_386.tgz 13086757 BLAKE2B 10008c639d76af8653172c29de8b93327fc43a76295b0a1b604c5d733436149e972b8ab5245db08715351318ea02e3a8bc12ab81f9e9798558b0a8f61ce84e25 SHA512 4413df8b1a5f75aa2c9575318930eac2c7f05d33291c8e57d054bf364c4ded29c926d079c9b0fdd2836e3820d969295e3acea1af501cc0dc7f95586a0d9e1920 +DIST tailscale_1.0.5_amd64.tgz 13437178 BLAKE2B c5f0aa343370395c22d9f56cc06e1f0dec079bdd5bdf286d7f0a38d638add79734dd347c67b02cdc5615d50e22a241ae5c6388f4d48d40bb1a0ecff7ab5dd848 SHA512 b348f27ae643c021d173289dd746a267d3acf53b757b4c8db02a58750147d9c53acf23ca36da8d27d3d7ac5049d0dc354a824f94ee782e18ddc358c14ac8578c +DIST tailscale_1.0.5_arm.tgz 12540712 BLAKE2B d03606805611718d32c492ffde38bc699878c3db791246fc02f8bad7278d73ddffd3c792421311422465f4cc08e5af0cf7fa671db9df5ebb2ae188732aacd8d6 SHA512 abb0d0424c2bbebd522329f42000652eb0e31d16f19f67cd56769b904490a9a8b7093dc1c1529f0a7aeb87a6af2abac53e831762291de15a9f2f2947a9bbe033 +DIST tailscale_1.0.5_arm64.tgz 12556625 BLAKE2B 7b2cfce4a007164d697429feecb23b36b3b7ba48b10dbd18e7cbf3ccdce121036b832c52666ab721b3fa92623a96977757e882279da633941de3199df5ceabeb SHA512 99fd723103520b8ae1bdf480a112456f88272bdb8860e238cbd56a6a73db797192b36ca934a73007db3d5bb9212b86c4a20e86a2525224fd9838fa0daf1abca5 +EBUILD tailscale-1.0.5.ebuild 1149 BLAKE2B 1521c4a30ee1380cb3b0317a0a23d0002a6a6f5ebf9bcc11e719e223d5eb908e4d50dbce367e9a0cac36688e7a83b5f94250c2c5395cac9df8c3a56f7b8db79a SHA512 bfe31ac24857f4840c4c2549256a9ea9567f979f217a4f9c7ce6bedb2e2e30f588074540eacf0ca2b14845eddbca67fabfdd48c8ffa7fe2d7b12ac7736f91f5c +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 0000000..f27c778 --- /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 0000000..d65c429 --- /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 0000000..c7edf4a --- /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 0000000..126b9ca --- /dev/null +++ b/net-vpn/tailscale/metadata.xml @@ -0,0 +1,8 @@ + + + + + Patrick McLean + chutzpah@gentoo.org + + diff --git a/net-vpn/tailscale/tailscale-1.0.5.ebuild b/net-vpn/tailscale/tailscale-1.0.5.ebuild new file mode 100644 index 0000000..4b6378a --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.0.5.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_PREBUILT="*" + +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 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} +}