From bc44d97143e4e3f1c9878486cd9af2d084744b88 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Tue, 22 Feb 2022 13:55:20 -0800 Subject: [PATCH] Added Sharksurf VPN. --- net-vpn/surfshark-vpn/Manifest | 2 + net-vpn/surfshark-vpn/metadata.xml | 8 +++ .../surfshark-vpn/surfshark-vpn-1.1.0.ebuild | 55 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 net-vpn/surfshark-vpn/Manifest create mode 100644 net-vpn/surfshark-vpn/metadata.xml create mode 100644 net-vpn/surfshark-vpn/surfshark-vpn-1.1.0.ebuild diff --git a/net-vpn/surfshark-vpn/Manifest b/net-vpn/surfshark-vpn/Manifest new file mode 100644 index 0000000..9408e19 --- /dev/null +++ b/net-vpn/surfshark-vpn/Manifest @@ -0,0 +1,2 @@ +DIST surfshark-vpn_1.1.0_amd64.deb 2266128 BLAKE2B eb10da8fd300bfa8d701547bfb37d9cfe4eb965c8b554330ed179c68bcd0f9eb632ecda7eb41773dba9ec57156f0015336cd29fc6d0dc6df238ec081df1c0003 SHA512 6a5884d1a565a343f8eefd58ed834deb6b9b416678b615ca0e7358477e0d44fe9f239923c09c7388bf0e42fa412945c39c46f50c24a14e6f911d0a7042be5ed0 +EBUILD surfshark-vpn-1.1.0.ebuild 1085 BLAKE2B 182832a6e2b69eaf198fcd2e398279aefc1429db0d443dd4edbbf65eeb4076066c7c31225a22c3bae8dec0fdbf966feae81a40aeee7b760f53b6ddca342bcbb6 SHA512 54bc96e7582f6a9eeb48f154fee00032363d8540a36f45e497e2a9e56897a39ac3f59c3ee1233fddb7043a543f73907753bdc2e5982a6ed29a1b940ae0837dd7 diff --git a/net-vpn/surfshark-vpn/metadata.xml b/net-vpn/surfshark-vpn/metadata.xml new file mode 100644 index 0000000..c93caac --- /dev/null +++ b/net-vpn/surfshark-vpn/metadata.xml @@ -0,0 +1,8 @@ + + + + + canutethegreat@gmail.com + Ronald Farrer + + diff --git a/net-vpn/surfshark-vpn/surfshark-vpn-1.1.0.ebuild b/net-vpn/surfshark-vpn/surfshark-vpn-1.1.0.ebuild new file mode 100644 index 0000000..f15539e --- /dev/null +++ b/net-vpn/surfshark-vpn/surfshark-vpn-1.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit pax-utils unpacker + +DESCRIPTION="Surfshark VPN Linux client" +HOMEPAGE="https://surfshark.com" +SRC_URI=" + amd64? ( https://ocean.surfshark.com/debian/pool/main/${PN:0:1}/${PN}/${P/-1/_1}_amd64.deb ) +" + +LICENSE="SurfShark" +SLOT="0" +KEYWORDS="~amd64" +IUSE="pax_kernel" +RESTRICT="mirror strip" + +RDEPEND=" + net-vpn/openvpn + sys-libs/glibc +" +DEPEND="${RDEPEND}" +S="${WORKDIR}" + +DOCS="changelog copyright" + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + rm _gpgbuilder || die + mv usr/share/doc/${PN}/* . || die + rm -rf usr/share || die + gunzip changelog.gz || die + default +} + +src_install() { + dobin usr/bin/${PN} + use pax_kernel && pax-mark -m "${ED%/}/usr/bin/${PN}" + default +} + +pkg_postinst() { + echo + elog "Thanks for installing SurfShark." + elog "Don't forget to create an account and purchase a plan" + elog "before running the SurfShark client". + elog "See https://surfshark.com/signup for more details." + elog "Also, you must run the ${PN} binary as root." + echo +}