Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/ooni-probe-cli/
Date: Mon, 20 Mar 2023 06:01:05
Message-Id: 1679251273.8fa48c4629a5367e9dcaf3f2f586cfa5768cd129.cybertailor@gentoo
1 commit: 8fa48c4629a5367e9dcaf3f2f586cfa5768cd129
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sun Mar 19 18:41:13 2023 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Sun Mar 19 18:41:13 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8fa48c46
7
8 net-misc/ooni-probe-cli: add 3.17.1, drop 3.16.7
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 net-misc/ooni-probe-cli/Manifest | 2 +-
13 .../ooni-probe-cli/ooni-probe-cli-3.16.7.ebuild | 32 -------------
14 .../ooni-probe-cli/ooni-probe-cli-3.17.1.ebuild | 54 ++++++++++++++++++++++
15 3 files changed, 55 insertions(+), 33 deletions(-)
16
17 diff --git a/net-misc/ooni-probe-cli/Manifest b/net-misc/ooni-probe-cli/Manifest
18 index 02badc88d..a4b8f1e4e 100644
19 --- a/net-misc/ooni-probe-cli/Manifest
20 +++ b/net-misc/ooni-probe-cli/Manifest
21 @@ -1,2 +1,2 @@
22 -DIST ooni-probe-cli-3.16.7.tar.gz 21896439 BLAKE2B db06a87d30b97691a4f897c97282772d41c6f5a83c28df64f8f6d7084ef1c52c38d384d7b437308560f0327559faab4c07f09b878fc681897e8537a83e972c65 SHA512 a00c9622389348f588202f0db5fbc861cf3f0a13f241bf99d385eb3925a8333071337ed0cb3875a65fba50fe5478886bd40d97fec51b4b054ec440d2c9746d16
23 DIST ooni-probe-cli-3.17.0.tar.gz 22660357 BLAKE2B 688b4e2ebf1b6064753180ee5d77a34e9e685955cc99a6a0ad8c05e6f9f3ae89c92e092f6c19de346aa85ffebfe8b26c70903f455489980773dd84e37c427116 SHA512 1619674382dd0ef20228f7bcecaec2a7ac3fa71ac56fdf733b307b6fe2f30d73c6ab5be99a1c18e79656f16f65790299afddbc7e6acbdaec15979cb0269995ce
24 +DIST ooni-probe-cli-3.17.1.tar.gz 22683293 BLAKE2B 76e6c7637ae344b83c87fc8c1c7e14adb460a94c745acda564c6fda285303051c36811935e91377507c50de2440ef15b2b43e710b87a6188842883e441db5ee0 SHA512 9952a1508227fca816a5d28bd943b99166543b1695adb7986243139d1375920132e43fd045f4e7c3813c01b3f3dd267fd6d8a79a095d8cc7b2d7f49970e8632c
25
26 diff --git a/net-misc/ooni-probe-cli/ooni-probe-cli-3.16.7.ebuild b/net-misc/ooni-probe-cli/ooni-probe-cli-3.16.7.ebuild
27 deleted file mode 100644
28 index 8717557a0..000000000
29 --- a/net-misc/ooni-probe-cli/ooni-probe-cli-3.16.7.ebuild
30 +++ /dev/null
31 @@ -1,32 +0,0 @@
32 -# Copyright 2022 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -inherit go-module
38 -
39 -MY_PN=${PN#ooni-}
40 -DESCRIPTION="OONI Probe network measurement tool for detecting internet censorship"
41 -HOMEPAGE="https://ooni.org https://github.com/ooni/probe-cli"
42 -SRC_URI="https://github.com/ooni/${MY_PN}/releases/download/v${PV}/${P}.tar.gz"
43 -
44 -LICENSE="0BSD Apache-2.0 BSD BSD-2 CC0-1.0 GPL-3 GPL-3+ ISC LGPL-3 MIT MPL-2.0"
45 -SLOT="0"
46 -KEYWORDS="~amd64"
47 -PROPERTIES="test_network"
48 -RESTRICT="test"
49 -
50 -DOCS=( docs CODEOWNERS {CONTRIBUTING,Readme}.md )
51 -
52 -src_compile() {
53 - ego build -v -ldflags="-s -w" ./cmd/ooniprobe
54 -}
55 -
56 -src_test() {
57 - ego test -short -race -tags shaping ./...
58 -}
59 -
60 -src_install() {
61 - dobin ooniprobe
62 - einstalldocs
63 -}
64
65 diff --git a/net-misc/ooni-probe-cli/ooni-probe-cli-3.17.1.ebuild b/net-misc/ooni-probe-cli/ooni-probe-cli-3.17.1.ebuild
66 new file mode 100644
67 index 000000000..4611051e2
68 --- /dev/null
69 +++ b/net-misc/ooni-probe-cli/ooni-probe-cli-3.17.1.ebuild
70 @@ -0,0 +1,54 @@
71 +# Copyright 2022-2023 Gentoo Authors
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI=8
75 +
76 +inherit go-module
77 +
78 +MY_PN=${PN#ooni-}
79 +DESCRIPTION="OONI Probe network measurement tool for detecting internet censorship"
80 +HOMEPAGE="https://ooni.org https://github.com/ooni/probe-cli"
81 +SRC_URI="https://github.com/ooni/${MY_PN}/releases/download/v${PV}/${P}.tar.gz"
82 +
83 +LICENSE="0BSD Apache-2.0 BSD BSD-2 CC0-1.0 GPL-3 GPL-3+ ISC LGPL-3 MIT MPL-2.0"
84 +SLOT="0"
85 +KEYWORDS="~amd64"
86 +
87 +PROPERTIES="test_network"
88 +RESTRICT="test"
89 +
90 +DEPEND="dev-db/sqlite:3[icu]"
91 +RDEPEND="${DEPEND}"
92 +BDEPEND="<dev-lang/go-1.20"
93 +
94 +DOCS=( docs CODEOWNERS {CODE_OF_CONDUCT,CONTRIBUTING,DESIGN,Readme}.md )
95 +
96 +src_prepare() {
97 + default
98 +
99 + # remove ooni's build tool
100 + rm -r internal/cmd/buildtool || die
101 +}
102 +
103 +src_configure() {
104 + GOFLAGS+=" -tags=shaping"
105 +}
106 +
107 +src_compile() {
108 + ego build ./cmd/ooniprobe
109 + ego build ./internal/cmd/miniooni
110 + ego build ./internal/cmd/oohelperd
111 +}
112 +
113 +src_test() {
114 + local -x GOFLAGS
115 + GOFLAGS="${GOFLAGS//-v/}"
116 + GOFLAGS="${GOFLAGS//-x/}"
117 +
118 + ego test -short -race ./...
119 +}
120 +
121 +src_install() {
122 + dobin ooniprobe miniooni oohelperd
123 + einstalldocs
124 +}