net-misc/ooni-probe-cli: add 3.17.0, drop 3.16.6

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-02-26 01:44:33 +05:00
parent 81ca011c8e
commit aed473ece3
3 changed files with 54 additions and 33 deletions

View File

@@ -1,2 +1,2 @@
DIST ooni-probe-cli-3.16.6.tar.gz 21899521 BLAKE2B de4e74d8ac131c0531a1c9d7c00d7d5f854ef09b78a9c61208f9cf97be6102d40a4b93a9d1f6c8785445966b4da2af19c04578736ab9c9f989a6bf47d9ec1f67 SHA512 f42fc687597f74ada325e4d8b1c0f7619c64b2adf0a80c455384299d60e84e31cc7bcded33892c952a8fcf75cc02f49b82a51a320ee0e8518577f0a13b6ca243
DIST ooni-probe-cli-3.16.7.tar.gz 21896439 BLAKE2B db06a87d30b97691a4f897c97282772d41c6f5a83c28df64f8f6d7084ef1c52c38d384d7b437308560f0327559faab4c07f09b878fc681897e8537a83e972c65 SHA512 a00c9622389348f588202f0db5fbc861cf3f0a13f241bf99d385eb3925a8333071337ed0cb3875a65fba50fe5478886bd40d97fec51b4b054ec440d2c9746d16
DIST ooni-probe-cli-3.17.0.tar.gz 22660357 BLAKE2B 688b4e2ebf1b6064753180ee5d77a34e9e685955cc99a6a0ad8c05e6f9f3ae89c92e092f6c19de346aa85ffebfe8b26c70903f455489980773dd84e37c427116 SHA512 1619674382dd0ef20228f7bcecaec2a7ac3fa71ac56fdf733b307b6fe2f30d73c6ab5be99a1c18e79656f16f65790299afddbc7e6acbdaec15979cb0269995ce

View File

@@ -1,32 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
MY_PN=${PN#ooni-}
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/${MY_PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test" # hangs
DOCS=( docs CODEOWNERS {CONTRIBUTING,Readme}.md )
src_compile() {
ego build -v -ldflags="-s -w" ./cmd/ooniprobe
}
src_test() {
ego test $(go list ./... | grep -v /vendor/)
}
src_install() {
dobin ooniprobe
einstalldocs
}

View File

@@ -0,0 +1,53 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
MY_PN=${PN#ooni-}
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/${MY_PN}/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"
PROPERTIES="test_network"
RESTRICT="test"
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
}