opensnitch: cleanup

This commit is contained in:
Anton Bolshakov 2024-02-15 11:35:31 +08:00
parent a673b82855
commit 0115215de6
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 21 additions and 11 deletions

View file

@ -1 +1 @@
DIST opensnitch-1.6.5_p1.tar.gz 1354814 BLAKE2B a3e0ce0b799a59d8d5e5cf9adc16d73b710d42b5325774118da3886a8c25507ef3a3e618796a56edd0cdde2ba8730604275a36d560e105d51744abef42fb833c SHA512 8ea1ad5a00c6b8c4649db5774e2fe7997ebdd52ed24610084ba236992c740b31b2bb19a88778b68d880aad54ff21a387d7388bdb4a8692a0456a4afbd7f47347
DIST opensnitch-1.6.5.1.gh.tar.gz 1354814 BLAKE2B a3e0ce0b799a59d8d5e5cf9adc16d73b710d42b5325774118da3886a8c25507ef3a3e618796a56edd0cdde2ba8730604275a36d560e105d51744abef42fb833c SHA512 8ea1ad5a00c6b8c4649db5774e2fe7997ebdd52ed24610084ba236992c740b31b2bb19a88778b68d880aad54ff21a387d7388bdb4a8692a0456a4afbd7f47347

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">evilsocket/opensnitch</remote-id>
</upstream>
</pkgmetadata>

View file

@ -7,12 +7,12 @@ inherit linux-info
DESCRIPTION="eBPF process monitor module for opensnitch"
HOMEPAGE="https://github.com/evilsocket/opensnitch"
UPSTREAM_PV=${PV/_p/\.}
# NOTE: app-admin/opensnitch and this ebuild share the same source
SRC_URI="
https://github.com/evilsocket/opensnitch/archive/refs/tags/v${UPSTREAM_PV}.tar.gz -> opensnitch-${PV}.tar.gz
https://github.com/evilsocket/opensnitch/archive/refs/tags/v${PV}.tar.gz -> opensnitch-${PV}.gh.tar.gz
"
S="${WORKDIR}/opensnitch-${UPSTREAM_PV}"
EBPF_DIR=ebpf_prog
KEYWORDS="~amd64"

View file

@ -1,2 +1,2 @@
DIST opensnitch-1.6.5_p1-deps.tar.gz 51527916 BLAKE2B f2c3fd8fa3f325ac86d072d9a5d2f40b82f8925970a846822aea42ca4ff849fde716c9dd13f91da7268dcc06bc85764f5633e1acaf1ccd392f76ae071e949690 SHA512 ee1d2613814e9cdbef1c63c96dfa6c328b43d7becc2285e445686d743c78b2026550f60ac63984a9a2fb1b620fcebdd6be6db1b1aa855795dbdc460087e7cfe5
DIST opensnitch-1.6.5_p1.tar.gz 1354814 BLAKE2B a3e0ce0b799a59d8d5e5cf9adc16d73b710d42b5325774118da3886a8c25507ef3a3e618796a56edd0cdde2ba8730604275a36d560e105d51744abef42fb833c SHA512 8ea1ad5a00c6b8c4649db5774e2fe7997ebdd52ed24610084ba236992c740b31b2bb19a88778b68d880aad54ff21a387d7388bdb4a8692a0456a4afbd7f47347
DIST opensnitch-1.6.5.1-deps.tar.gz 51527916 BLAKE2B f2c3fd8fa3f325ac86d072d9a5d2f40b82f8925970a846822aea42ca4ff849fde716c9dd13f91da7268dcc06bc85764f5633e1acaf1ccd392f76ae071e949690 SHA512 ee1d2613814e9cdbef1c63c96dfa6c328b43d7becc2285e445686d743c78b2026550f60ac63984a9a2fb1b620fcebdd6be6db1b1aa855795dbdc460087e7cfe5
DIST opensnitch-1.6.5.1.gh.tar.gz 1354814 BLAKE2B a3e0ce0b799a59d8d5e5cf9adc16d73b710d42b5325774118da3886a8c25507ef3a3e618796a56edd0cdde2ba8730604275a36d560e105d51744abef42fb833c SHA512 8ea1ad5a00c6b8c4649db5774e2fe7997ebdd52ed24610084ba236992c740b31b2bb19a88778b68d880aad54ff21a387d7388bdb4a8692a0456a4afbd7f47347

View file

@ -4,4 +4,9 @@
<upstream>
<remote-id type="github">evilsocket/opensnitch</remote-id>
</upstream>
<use>
<flag name="bpf">Enable bpf support</flag>
<flag name="iptables">Enable iptables support</flag>
<flag name="nftables">Enable nftables support</flag>
</use>
</pkgmetadata>

View file

@ -10,13 +10,11 @@ inherit distutils-r1 go-module linux-info systemd xdg-utils
DESCRIPTION="Desktop application firewall"
HOMEPAGE="https://github.com/evilsocket/opensnitch"
UPSTREAM_PV=${PV/_p/\.}
SRC_URI="
https://github.com/evilsocket/opensnitch/archive/refs/tags/v${UPSTREAM_PV}.tar.gz -> ${P}.tar.gz
https://github.com/kcning/opensnitch/archive/refs/tags/${UPSTREAM_PV}.tar.gz -> ${P}-deps.tar.gz
https://github.com/evilsocket/opensnitch/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/kcning/opensnitch/archive/refs/tags/${PV}.tar.gz -> ${P}-deps.tar.gz
"
S="${WORKDIR}/opensnitch-${UPSTREAM_PV}"
LICENSE="GPL-3"
SLOT="0"
IUSE="+audit bpf +iptables +nftables systemd"
@ -100,7 +98,7 @@ src_compile() {
pushd daemon || die
GOCACHE="${T}/go-cache" \
GOMODCACHE="${WORKDIR}/${PN}-${UPSTREAM_PV}/vendor" \
GOMODCACHE="${WORKDIR}/${PN}-${PV}/vendor" \
ego build -v -buildmode=pie -o opensnitchd || die
popd > /dev/null || die