diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
commit | 38423c67c8a23f6a1bc42038193182e2da3116eb (patch) | |
tree | 04e2cf4bd43601b77daa79fe654e409187093c5e /net-vpn/tailscale/tailscale-0.98_p0.ebuild | |
parent | 623ee73d661e5ed8475cb264511f683407d87365 (diff) |
gentoo resync : 25.04.2020
Diffstat (limited to 'net-vpn/tailscale/tailscale-0.98_p0.ebuild')
-rw-r--r-- | net-vpn/tailscale/tailscale-0.98_p0.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-vpn/tailscale/tailscale-0.98_p0.ebuild b/net-vpn/tailscale/tailscale-0.98_p0.ebuild new file mode 100644 index 000000000000..1a9d74fe71a7 --- /dev/null +++ b/net-vpn/tailscale/tailscale-0.98_p0.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 ${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} +} |