Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/riseup-vpn/
Date: Fri, 09 Jul 2021 21:32:03
Message-Id: 1625866315.708b2e84be1ed6320c835e499430eb78e537db09.andrewammerlaan@gentoo
1 commit: 708b2e84be1ed6320c835e499430eb78e537db09
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 9 21:28:44 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 9 21:31:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=708b2e84
7
8 net-vpn/riseup-vpn: add version 0.21.6
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 net-vpn/riseup-vpn/Manifest | 1 +
14 net-vpn/riseup-vpn/riseup-vpn-0.21.6.ebuild | 137 ++++++++++++++++++++++++++++
15 2 files changed, 138 insertions(+)
16
17 diff --git a/net-vpn/riseup-vpn/Manifest b/net-vpn/riseup-vpn/Manifest
18 index 76ae7746387..1aefea321bc 100644
19 --- a/net-vpn/riseup-vpn/Manifest
20 +++ b/net-vpn/riseup-vpn/Manifest
21 @@ -42,3 +42,4 @@ DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200212091648-12a6c2dcc1e4.zip 1916451
22 DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.mod 25 BLAKE2B 31009af0fdcd0f8730c9985287e6e364ec4e5183e57e92560dbc80a2010eced51b8a90f01a82b49384268c8a0adbf69d179c205d3f68e0eb459169d2ea9528f0 SHA512 ca081ef7cccd7bbedc6843fbe0c452352661a07e1298cd02ff338ed79d807c6401d613a3cf20011189d2f98a794ffa410547b3e352eb58a6f0a84822285d391d
23 DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.zip 6349244 BLAKE2B 0aa464ac7b7d17fa7ec0627b64cd2301ed4f2819f837807db7a55725950dacb40be899b5148b07ea31b51530818edcccc6444a9800755e1d369ba8f1bce949b0 SHA512 982d78f580a7eac99a0c51e6f1fd2b2c3b91f56cd5e2b96fe960510049f7daf5915264f73f55f05675eee232a52998f9667fa84a9ccba15ed7819e4c93f583a7
24 DIST riseup-vpn-0.21.2_p20210517.tar.gz 5332313 BLAKE2B 0f9673ba0908c60c2c31c032d48a4b9b0c31e8a8e2621c84c673f006f43aa6d41d2b6f5567a0ee73ad74d8b7456618a00a177af9fc65b0bf28765983e96ef20a SHA512 88fd43e922500aaeebb80d7f4bf290f9511f60fa58c2a2b3ffd3930508630d2d8c5fb92ca5012689721545a6656135defe3ebe420c04defb53316cda93ddba6f
25 +DIST riseup-vpn-0.21.6.tar.gz 5404265 BLAKE2B 2dcae7aaa3659fe9e8b9910a6c085ec49389551a6d2e404fb5520622e22adff98277fe3962f1dfd3b44d23b8c687855105196e74b89d4bb9890202e97033c5d9 SHA512 074dadcd24c1ecaa21504a26406c5f8f3cdbbe8dffc3679e1c1b62d1978b51b20154edd54d8887868c7458e4c184b8f16aa6ff21e71890fe6b84c0eb2e008deb
26
27 diff --git a/net-vpn/riseup-vpn/riseup-vpn-0.21.6.ebuild b/net-vpn/riseup-vpn/riseup-vpn-0.21.6.ebuild
28 new file mode 100644
29 index 00000000000..c2c5eb8da77
30 --- /dev/null
31 +++ b/net-vpn/riseup-vpn/riseup-vpn-0.21.6.ebuild
32 @@ -0,0 +1,137 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +DOCS_BUILDER="sphinx"
39 +DOCS_DIR="docs"
40 +DOCS_DEPEND="dev-python/alabaster"
41 +
42 +PYTHON_COMPAT=( python3_{8..10} )
43 +
44 +inherit desktop python-single-r1 docs go-module virtualx xdg
45 +
46 +EGO_SUM=(
47 + "0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2"
48 + "0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2/go.mod"
49 + "github.com/OperatorFoundation/obfs4 v0.0.0-20161108041644-17f2cb99c264"
50 + "github.com/OperatorFoundation/obfs4 v0.0.0-20161108041644-17f2cb99c264/go.mod"
51 + "github.com/OperatorFoundation/shapeshifter-ipc v0.0.0-20170814234159-11746ba927e0"
52 + "github.com/OperatorFoundation/shapeshifter-ipc v0.0.0-20170814234159-11746ba927e0/go.mod"
53 + "github.com/OperatorFoundation/shapeshifter-transports v0.0.0-20191101030951-7a751b0500f4"
54 + "github.com/OperatorFoundation/shapeshifter-transports v0.0.0-20191101030951-7a751b0500f4/go.mod"
55 + "github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a"
56 + "github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a/go.mod"
57 + "github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412"
58 + "github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod"
59 + "github.com/apparentlymart/go-openvpn-mgmt v0.0.0-20161009010951-9a305aecd7f2"
60 + "github.com/apparentlymart/go-openvpn-mgmt v0.0.0-20161009010951-9a305aecd7f2/go.mod"
61 + "github.com/davecgh/go-spew v1.1.0"
62 + "github.com/davecgh/go-spew v1.1.0/go.mod"
63 + "github.com/dchest/siphash v1.2.1"
64 + "github.com/dchest/siphash v1.2.1/go.mod"
65 + "github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0"
66 + "github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod"
67 + "github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19"
68 + "github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19/go.mod"
69 + "github.com/pmezard/go-difflib v1.0.0"
70 + "github.com/pmezard/go-difflib v1.0.0/go.mod"
71 + "github.com/rakyll/statik v0.1.7"
72 + "github.com/rakyll/statik v0.1.7/go.mod"
73 + "github.com/sevlyar/go-daemon v0.1.5"
74 + "github.com/sevlyar/go-daemon v0.1.5/go.mod"
75 + "github.com/stretchr/objx v0.1.0/go.mod"
76 + "github.com/stretchr/testify v1.3.0"
77 + "github.com/stretchr/testify v1.3.0/go.mod"
78 + "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
79 + "golang.org/x/crypto v0.0.0-20191105034135-c7e5f84aec59"
80 + "golang.org/x/crypto v0.0.0-20191105034135-c7e5f84aec59/go.mod"
81 + "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
82 + "golang.org/x/net v0.0.0-20200226121028-0de0cce0169b"
83 + "golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod"
84 + "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
85 + "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
86 + "golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4"
87 + "golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod"
88 + "golang.org/x/text v0.3.0/go.mod"
89 +)
90 +go-module_set_globals
91 +
92 +DESCRIPTION="Anonymous encrypted VPN client powered by Bitmask"
93 +HOMEPAGE="https://riseup.net/en/vpn https://0xacab.org/leap/bitmask-vpn https://bitmask.net"
94 +SRC_URI="https://0xacab.org/leap/bitmask-vpn/-/archive/${PV}/bitmask-vpn-${PV}.tar.gz -> ${P}.tar.gz
95 + ${EGO_SUM_SRC_URI}"
96 +
97 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
98 +IUSE="test"
99 +PROPERTIES="test_network"
100 +RESTRICT="test"
101 +# The tests require internet access to connect to Riseup Networks
102 +
103 +# Generated with dev-go/golicense
104 +LICENSE="GPL-3 BSD-2 CC0-1.0 MIT BSD"
105 +KEYWORDS="~amd64"
106 +SLOT="0"
107 +
108 +BDEPEND="
109 + virtual/pkgconfig
110 + dev-qt/linguist-tools
111 + test? ( dev-qt/qttest:5 )
112 +"
113 +
114 +DEPEND="${PYTHON_DEPS}
115 + dev-qt/qtdeclarative:5[widgets]
116 + dev-qt/qtquickcontrols2:5[widgets]
117 +"
118 +
119 +RDEPEND="${DEPEND}
120 + net-vpn/openvpn
121 + sys-auth/polkit
122 +"
123 +
124 +# ip command is in bin instead of sbin on Gentoo
125 +PATCHES=( "${FILESDIR}/${PN}-ip-location.patch" )
126 +
127 +S="${WORKDIR}/bitmask-vpn-${PV}"
128 +
129 +src_prepare() {
130 + default
131 +
132 + # do not pre-strip
133 + sed -i -e '/strip $RELEASE\/$TARGET/d' gui/build.sh || die
134 +
135 + # add autodoc to the extensions because this actually
136 + # does require extra dependencies
137 + sed -i -e "/^extensions = \[/a \ \ \ \ \'sphinx.ext.autodoc\'," docs/conf.py || die
138 +}
139 +
140 +src_compile() {
141 + # does not build with j>1
142 + emake -j1 build
143 + docs_compile
144 +}
145 +
146 +src_test() {
147 + emake -j1 test
148 + virtx emake -j1 test_ui
149 +}
150 +
151 +src_install() {
152 + einstalldocs
153 +
154 + dobin "build/qt/release/riseup-vpn"
155 +
156 + python_scriptinto /usr/sbin
157 + python_doscript "helpers/bitmask-root"
158 +
159 + insinto /usr/share/polkit-1/actions
160 + newins "helpers/se.leap.bitmask.policy" se.leap.bitmask.riseupvpn.policy
161 +
162 + newicon -s scalable "providers/riseup/assets/icon.svg" riseup.svg
163 + make_desktop_entry "${PN}" RiseupVPN riseup Network
164 +}
165 +
166 +pkg_postinst() {
167 + xdg_pkg_postinst
168 + go-module_pkg_postinst
169 +}