commit:     75a4c900c4e878164c0de55c2fbb626a52c1264c
Author:     Eli Burch <eli.burch <AT> burchbytes <DOT> com>
AuthorDate: Mon Aug 12 13:56:44 2024 +0000
Commit:     Eli Burch <redawl <AT> burchbytes <DOT> com>
CommitDate: Mon Aug 12 13:56:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=75a4c900

net-misc/ooni-probe-cli: add 3.23.0

Signed-off-by: Eli Burch <eli.burch <AT> burchbytes.com>

 net-misc/ooni-probe-cli/Manifest                   |  1 +
 .../ooni-probe-cli/ooni-probe-cli-3.23.0.ebuild    | 49 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/net-misc/ooni-probe-cli/Manifest b/net-misc/ooni-probe-cli/Manifest
index 5f7e46a6d..f110b7890 100644
--- a/net-misc/ooni-probe-cli/Manifest
+++ b/net-misc/ooni-probe-cli/Manifest
@@ -1 +1,2 @@
 DIST ooni-probe-cli-3.22.0.tar.gz 26961384 BLAKE2B 
31792ad2bf792d19edc61b12894c91b85c33445808b70880d2f32f3b83665e80577d830ce255ae114c4de163e2f93bb8a73eea3b6d2a4143c6623c9a15fe5c8d
 SHA512 
28f845a3e50eb50a9d7d9411ad0d5cbb6ae08b3238bb4cd7f85dd4fbdaa833203bcf8387287b5b45ccc51196caab4981ec85d7bb9cd199ba04f7b0d2568e20a4
+DIST ooni-probe-cli-3.23.0.tar.gz 26939575 BLAKE2B 
55dd955185f7c48ca151091002d5a908bd96882cb09f38d368ba9069ca1e5e4d707f61d1354acb982271832e0e719037452b484b684c764e764add4bb67946e4
 SHA512 
ce742fac78a237e2e2e979fb03db5093b7da96151cf6acfc2ce5e0d4e8b9321b9112e28ead648a2499917827797faddeba6f2f6c56cff331f857ae0f4976dfd7

diff --git a/net-misc/ooni-probe-cli/ooni-probe-cli-3.23.0.ebuild 
b/net-misc/ooni-probe-cli/ooni-probe-cli-3.23.0.ebuild
new file mode 100644
index 000000000..718501272
--- /dev/null
+++ b/net-misc/ooni-probe-cli/ooni-probe-cli-3.23.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="OONI Probe network measurement tool for detecting internet 
censorship"
+HOMEPAGE="https://ooni.org https://github.com/ooni/probe-cli";
+SRC_URI="https://github.com/ooni/probe-cli/releases/download/v${PV}/${P}.tar.gz";
+
+LICENSE="0BSD Apache-2.0 BSD BSD-2 CC0-1.0 GPL-3 GPL-3+ ISC LGPL-3 MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-db/sqlite:3[icu]"
+RDEPEND="${DEPEND}"
+
+DOCS=( docs CODEOWNERS {CODE_OF_CONDUCT,CONTRIBUTING,DESIGN,Readme}.md )
+
+src_prepare() {
+       default
+
+       # remove ooni's build tool
+       rm -r internal/cmd/buildtool || die
+}
+
+src_configure() {
+       GOFLAGS+=" -tags=shaping"
+}
+
+src_compile() {
+       ego build ./cmd/ooniprobe
+       ego build ./internal/cmd/miniooni
+       ego build ./internal/cmd/oohelperd
+}
+
+src_test() {
+       local -x GOFLAGS
+       GOFLAGS="${GOFLAGS//-v/}"
+       GOFLAGS="${GOFLAGS//-x/}"
+
+       ego test -short -race ./...
+}
+
+src_install() {
+       dobin ooniprobe miniooni oohelperd
+       einstalldocs
+}

Reply via email to