mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-11 09:43:40 +02:00
opensnitch-1.4.3.ebuild
This commit is contained in:
parent
2846f8d6b6
commit
1c33106958
3 changed files with 101 additions and 1 deletions
|
|
@ -22,3 +22,4 @@ DIST github.com-vishvananda-netns-0a2b9b5464df.tar.gz 8008 BLAKE2B ce175a1ffce3a
|
|||
DIST opensnitch-1.4.0.tar.gz 999069 BLAKE2B cce63863957e01cedb4e202412e0806f21f39a8c22fca3cda5ef21a97a024a56cee88ae0b9e517277d0d4fae56e122600fa7fb1be860e6803c172feb68dba666 SHA512 35d9811f9b8c3dc073231dfe20c21151280fdb90a0bc355617b5a2f2109e7f9590579f73ceed944447004bc0e8609c78c90bb0b21b95bb339cf4acbb8aca0fa7
|
||||
DIST opensnitch-1.4.1.tar.gz 999330 BLAKE2B f04866a41306f92539a6763bd03994d8a0fa414276a9ad529b09098451e1fd295f8093246a5782add25540380c1d4bdb950a216ec5faef7d024400812638d2df SHA512 58bc7eecdf129d219f2b4f16fccfd4788af02480f89e4042577a032114ddba176bc53ca299e60057ddd45b946de3cd89a5d21e3dad120aeedff0f62ce2b278a5
|
||||
DIST opensnitch-1.4.2.tar.gz 999494 BLAKE2B 986612523de0e852fdf2fce109fdb3119fe54d79e46327a4d6ec0ea313adbc8cb13aca0903ed81bd25700d69a96f171eb4ece5a4303476ced4fa5c1af12a6f95 SHA512 e2bdbe479ed1e52f6d036a21f0f6efa37cce88baff7998911e6274bc318ad5260f2b428b94d0c19fad6f4e388fb8332e6639a93d34ab1ef66f51bfe4f836996b
|
||||
DIST opensnitch-1.4.3.tar.gz 1000698 BLAKE2B a39d5564bdb634c36e25c3baf03d301321b977fee304b7c53491583654a8ba2d430c3c57b69ab137be83e1b35b42e4aea8a0495221840b7d29c0d1aadb51577a SHA512 4ddee77089320018fd0e719b6da0144473f438d1455a43b07fb72f7a9932cc293f06b03e634d3afc1e184b4eb52f4b56997e857c2019c072905ffb4c447461f3
|
||||
|
|
|
|||
99
app-admin/opensnitch/opensnitch-1.4.3.ebuild
Normal file
99
app-admin/opensnitch/opensnitch-1.4.3.ebuild
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
inherit distutils-r1
|
||||
|
||||
# copy from daemon/go.mod
|
||||
# old: go mod vendor && grep "# g" ./vendor/modules.txt | sort
|
||||
EGO_PN="github.com/evilsocket/opensnitch"
|
||||
EGO_VENDOR=(
|
||||
"github.com/evilsocket/ftrace v1.2.0"
|
||||
"github.com/fsnotify/fsnotify v1.4.7"
|
||||
"github.com/golang/glog 23def4e6c14b"
|
||||
"github.com/golang/protobuf v1.5.0"
|
||||
"github.com/google/gopacket v1.1.14"
|
||||
"github.com/google/nftables a285acebcad3"
|
||||
"github.com/iovisor/gobpf v0.2.0"
|
||||
"github.com/vishvananda/netlink v1.1.0"
|
||||
"github.com/vishvananda/netns 0a2b9b5464df"
|
||||
"golang.org/x/net d8887717615a github.com/golang/net"
|
||||
"golang.org/x/sync 6e8e738ad208 github.com/golang/sync"
|
||||
"golang.org/x/sys 7fc4e5ec1444 github.com/golang/sys"
|
||||
"golang.org/x/text v0.3.0 github.com/golang/text"
|
||||
"google.golang.org/grpc v1.27.0 github.com/grpc/grpc-go"
|
||||
"google.golang.org/protobuf v1.26.0 github.com/protocolbuffers/protobuf-go"
|
||||
|
||||
"google.golang.org/genproto 7fd901a49ba6 github.com/googleapis/go-genproto"
|
||||
"github.com/koneu/natend ec0926ea948d1549773caebd030b217dc31ba55c"
|
||||
"github.com/mdlayher/netlink v1.4.1"
|
||||
"github.com/josharian/native b6b71def0850a2fbd7e6875f8e28217a48c5bcb4"
|
||||
"github.com/mdlayher/socket 9dbe287ded84b2af7d29eedef2693df69e11ce74"
|
||||
)
|
||||
|
||||
inherit golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="Desktop application firewall"
|
||||
HOMEPAGE="https://github.com/evilsocket/opensnitch"
|
||||
|
||||
SRC_URI="https://github.com/evilsocket/opensnitch/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
# dev-go/go-text:=
|
||||
DEPEND=">=dev-lang/go-1.13
|
||||
net-libs/libnetfilter_queue
|
||||
dev-go/go-protobuf
|
||||
"
|
||||
RDEPEND="
|
||||
dev-python/grpcio-tools[${PYTHON_USEDEP}]
|
||||
dev-python/python-slugify[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[sql,${PYTHON_USEDEP}]
|
||||
"
|
||||
#FIXME: add config check:
|
||||
#CONFIG_NETFILTER_XT_MATCH_CONNTRACK
|
||||
|
||||
src_prepare() {
|
||||
emake -C src/${EGO_PN} protocol
|
||||
cd src/${EGO_PN}/ui
|
||||
pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
|
||||
sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${S}:$(get_golibdir_gopath)" \
|
||||
GOCACHE="${T}/go-cache" \
|
||||
go build -v -work -x -ldflags="-s -w" "${EGO_PN}/daemon" || die
|
||||
|
||||
pushd src/${EGO_PN}/ui >/dev/null || die
|
||||
distutils-r1_src_compile
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_install(){
|
||||
newbin daemon opensnitchd
|
||||
|
||||
pushd src/${EGO_PN}/ui >/dev/null || die
|
||||
distutils-r1_src_install
|
||||
popd >/dev/null || die
|
||||
|
||||
pushd src/${EGO_PN}/daemon >/dev/null || die
|
||||
insinto /etc/opensnitchd/rules
|
||||
insinto /etc/opensnitchd/
|
||||
# @cp opensnitchd.service /etc/systemd/system/
|
||||
doins default-config.json
|
||||
doins system-fw.json
|
||||
popd >/dev/null || die
|
||||
|
||||
newinitd "${FILESDIR}"/opensnitch.initd ${PN}
|
||||
|
||||
}
|
||||
|
|
@ -383,7 +383,7 @@ dev-python/apng
|
|||
=dev-python/humanfriendly-9*
|
||||
|
||||
app-admin/opensnitch
|
||||
=dev-python/grpcio-tools-1.38*
|
||||
=dev-python/grpcio-tools-1.41*
|
||||
|
||||
#empire
|
||||
dev-python/jq ~amd64
|
||||
|
|
|
|||
Loading…
Reference in a new issue