diff options
Diffstat (limited to 'net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild')
-rw-r--r-- | net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild b/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild new file mode 100644 index 000000000..39a538c8c --- /dev/null +++ b/net-vpn/riseup-vpn/riseup-vpn-0.21.2.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DOCS_BUILDER="sphinx" +DOCS_DIR="docs" +DOCS_AUTODOC=0 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit desktop python-r1 docs go-module l10n xdg + +EGO_SUM=( + "0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2" + "0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2/go.mod" + "github.com/OperatorFoundation/obfs4 v0.0.0-20161108041644-17f2cb99c264" + "github.com/OperatorFoundation/obfs4 v0.0.0-20161108041644-17f2cb99c264/go.mod" + "github.com/OperatorFoundation/shapeshifter-ipc v0.0.0-20170814234159-11746ba927e0" + "github.com/OperatorFoundation/shapeshifter-ipc v0.0.0-20170814234159-11746ba927e0/go.mod" + "github.com/OperatorFoundation/shapeshifter-transports v0.0.0-20191101030951-7a751b0500f4" + "github.com/OperatorFoundation/shapeshifter-transports v0.0.0-20191101030951-7a751b0500f4/go.mod" + "github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a" + "github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a/go.mod" + "github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412" + "github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod" + "github.com/apparentlymart/go-openvpn-mgmt v0.0.0-20161009010951-9a305aecd7f2" + "github.com/apparentlymart/go-openvpn-mgmt v0.0.0-20161009010951-9a305aecd7f2/go.mod" + "github.com/davecgh/go-spew v1.1.0" + "github.com/davecgh/go-spew v1.1.0/go.mod" + "github.com/dchest/siphash v1.2.1" + "github.com/dchest/siphash v1.2.1/go.mod" + "github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0" + "github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod" + "github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19" + "github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19/go.mod" + "github.com/pmezard/go-difflib v1.0.0" + "github.com/pmezard/go-difflib v1.0.0/go.mod" + "github.com/rakyll/statik v0.1.7" + "github.com/rakyll/statik v0.1.7/go.mod" + "github.com/sevlyar/go-daemon v0.1.5" + "github.com/sevlyar/go-daemon v0.1.5/go.mod" + "github.com/stretchr/objx v0.1.0/go.mod" + "github.com/stretchr/testify v1.3.0" + "github.com/stretchr/testify v1.3.0/go.mod" + "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" + "golang.org/x/crypto v0.0.0-20191105034135-c7e5f84aec59" + "golang.org/x/crypto v0.0.0-20191105034135-c7e5f84aec59/go.mod" + "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod" + "golang.org/x/net v0.0.0-20200226121028-0de0cce0169b" + "golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod" + "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" + "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod" + "golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4" + "golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod" + "golang.org/x/text v0.3.0" + "golang.org/x/text v0.3.0/go.mod" + ) +go-module_set_globals + +DESCRIPTION="Anonymous encrypted VPN client powered by Bitmask" +HOMEPAGE="https://bitmask.net https://0xacab.org/leap/bitmask-vpn https://riseup.net/en/vpn" +SRC_URI="https://0xacab.org/leap/bitmask-vpn/-/archive/${PV}/bitmask-vpn-${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI}" + +# Save a lot of Error 404's since this is not mirrored +# Tests require internet access to connect to Riseup Networks +IUSE="test" +RESTRICT="mirror test" + +# Generated with dev-go/golicense +LICENSE="GPL-3 BSD-2 CC0-1.0 MIT BSD" +KEYWORDS="" +SLOT="0" + +PLOCALES="ar bn br ca de el en-GB en-US en es-ES es eu fa-IR fr he hu it lt nl pl pt-BR pt-PT ro ru sk sv tr ug zh-TW zh" + +QA_PRESTRIPPED=" + /usr/bin/bitmask-vpn + /usr/bin/bitmask-helper + /usr/bin/bitmask-connect +" + +DEPEND=" + dev-go/go-text + dev-libs/libappindicator:3 + dev-util/debhelper + sys-apps/fakeroot + x11-libs/gtk+:3 + dev-qt/qtdeclarative[widgets] + dev-qt/qtquickcontrols2[widgets] + doc? ( $(python_gen_any_dep 'dev-python/alabaster[${PYTHON_USEDEP}]') ) +" + +BDEPEND=" + virtual/pkgconfig + test? ( dev-qt/qttest ) +" + +RDEPEND="${DEPEND} + net-vpn/openvpn + sys-auth/polkit +" + +# ip command is in bin instead of sbin on Gentoo +PATCHES=( "${FILESDIR}/${PN}-ip-location.patch" ) + +# Need gotext in path +PATH="/usr/lib/go/bin:${PATH}" + +S="${WORKDIR}/bitmask-vpn-${PV}" + +src_compile() { + emake build + docs_compile +} + +src_install() { + einstalldocs + + dobin "build/bin/linux/bitmask-connect" + dobin "build/bin/linux/bitmask-helper" + dobin "build/bin/linux/bitmask-vpn" + dosym "bitmask-vpn" "/usr/bin/riseup-vpn" + + python_scriptinto /usr/sbin + python_foreach_impl python_doscript "helpers/bitmask-root" + + insinto /usr/share/polkit-1/actions + doins "helpers/se.leap.bitmask.policy" + + newicon -s scalable "branding/assets/riseup/icon.svg" riseup.svg + make_desktop_entry "${PN}" RiseupVPN riseup Network +} + +src_test() { + emake test + emake test_ui +} + +pkg_postinst() { + xdg_pkg_postinst + go-module_pkg_postinst +} |