mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
opensnitch: 1.3.0 new tool
This commit is contained in:
parent
171677bd58
commit
58437e9e19
6 changed files with 112 additions and 1 deletions
14
app-admin/opensnitch/Manifest
Normal file
14
app-admin/opensnitch/Manifest
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
DIST github.com-evilsocket-ftrace-v1.2.0.tar.gz 16895 BLAKE2B e17f90820eb6c2a5691477a1616753407f27ba509262ea57fffcf269f3e5e9ab8e87d86830796ef9cffeed78d36b4868a23746054cf26d82e0146a2462e8249d SHA512 e7787485a97ca0c1dc31dde2973d795439015d412a0588c813f601dc7eaf80912016675a2674748c4c3f49b50ec11a59274eeccf0fe4052e7249159d29a58909
|
||||
DIST github.com-fsnotify-fsnotify-v1.4.7.tar.gz 31139 BLAKE2B f2d0aaabfad525fb640beba78991a858ad23203a557a69fc15d2f017b2a693c64c244de435682b1cd9d59e89a97e4ba60c7f95fa99a6145a9dea73b0f334936e SHA512 840943043c49c837641f04b976f2ba610fc03bd31030ca6442744d51fa9241da1905730ea11466e249a5bd37437f1e2a433a012a64ce872a1562c941bd5bfcbf
|
||||
DIST github.com-golang-glog-23def4e6c14b.tar.gz 19688 BLAKE2B f9ff73060c3b10603472c3ea4f50b4afa6abb5a4e9e7ac43d2a6c2e62541d43ef9f0ef7a8759d9b3281d72e5f90c516ee174c91de9a640a5bdf6877700450d44 SHA512 e9e70cf2a2d74ca813d0cadc23d213a1112ca4d1167abb63d8e0929585fca90c3a5bab1f49db20095c48bf1fe03b4424353c33728d09a201334eb65770888dc5
|
||||
DIST github.com-golang-net-8d16fa6dc9a8.tar.gz 947046 BLAKE2B d5c67bf2389a4e8ab62213cb4bd634f8227ccc0e81bb9f892c6859e888f71a08220c793f16c3d154304267a759d37179aafcc172aa4c3811476e575b23c43acc SHA512 1af45cfd1f2cbf54480c7207f8d16a53d61889cec2091436d202d7e87579a10aa163edb799af93adf1930879acd1386fb9f2429c83e7d450f0b9c6cd9391a4b7
|
||||
DIST github.com-golang-protobuf-v1.0.0.tar.gz 269544 BLAKE2B b051287ce41d21c221e959c44e878171107e0a7c66d33c158e7600df3dc4355a5ee71dfc246f0cf532bc9bba793162dbcdaf952e1499c3f1c038f060cf79d81d SHA512 99eba446b902e69418f8468bdb2d4af39d799602831186facf2145e20cb217557c170f7e417080f8d4fcacbf8ee8c6b5d52b5a6330ed5cafac400edeee8bf749
|
||||
DIST github.com-golang-sync-6e8e738ad208.tar.gz 17297 BLAKE2B 35c59fe3aa3d01871c451ff571af33f0b58d88c69a6096edad90c0379cc7d3de8e4b4b6ba3a203b62478595a8f1e2f514613d68f3d24030852ffabc407ef5e96 SHA512 c045e44279eb4eea9f9721c524c59d9556f2593a29004874d280dd96bc3d510b9b3f3ab87032a60782cff62f9db8d6d4bc2c50b084b9b4eeec20f6fee35a966d
|
||||
DIST github.com-golang-sys-7fc4e5ec1444.tar.gz 1428460 BLAKE2B 1f75d270f8b5cbf3867b22094dbe6f91cfa5f7dc096b7805454dde221b0ef0cffa70da9b4662c17fe15a9d59d1b00a24a42395285a10eb49a7a4c26088756a77 SHA512 39f861e3d11083eca73e7f6b0229e165326f79da3af57b440b87c3e781423c72a7d1c27a103f26d57ba25d69daba6a7ea97338489663bfd9cb274b923af26576
|
||||
DIST github.com-golang-text-v0.3.0.tar.gz 6102619 BLAKE2B c92e68014a8c157d76741c02acd708771d66bd3dda5b19285f5aa3e073e0fe3fccb9054744d35ea62b681ae4421bb7489238d6868f9314fb26f88e002287abe8 SHA512 bd60dfaa7d9dbfca171a3ba40b51f5663c01257cf3b12b618d35689a97ab2212d316d5716ff09681bf40b099f7e20a0e0df8cfc065699cb6a07ad1dc2e2bc189
|
||||
DIST github.com-google-gopacket-v1.1.14.tar.gz 748336 BLAKE2B f1fe54954b229fafe9cf18e6337f4222cdeb6d71cba0c5c3d0b04eae63952a039cc283eff580db3e79db49b827d64ee54e8d5e64a24546037400faf92c97f086 SHA512 fda58ad503e2547b0e09e511a2ffe5b2e6fa7ba1df3cbf26ae6e08075420586f0f1f553914ee969fcfbdd0a344e240a0d11ae85266c926f138d3efe6afa250b2
|
||||
DIST github.com-googleapis-go-genproto-7fd901a49ba6.tar.gz 1756007 BLAKE2B 36d467a82837f34e0ab1315091a38a04bef55f32e8b019efe027da355954f28fb1d7fca15e2dcc616f9650748e6458821442d4bdb7205504689860ee47b5ab52 SHA512 d3207a7a108b632932d4546a99d9ececa211c4d6b99cdde1fa4377bae264ce45cae4fe455bd0d9426f369cd5555d6ce5acdbfe087f27f1bfe32019729bae4d92
|
||||
DIST github.com-grpc-grpc-go-v1.11.3.tar.gz 414427 BLAKE2B 5c6bada923f01c82208fcb699b1ac2616a79d979f94479ab10fed514c1a5c9e5e7e23159f4a9b79c69ebdd15082cf6099287d6c221513ca9c5cee96d401892f6 SHA512 312ec02d21dd33414aad0c7d362a2f74b3a769620e635e7c068961cfd6ae0f2cd563b1ecefe60364972db348661443136eb0a5cb98e4fb623269cab475a0ec0d
|
||||
DIST github.com-vishvananda-netlink-v1.1.0.tar.gz 147026 BLAKE2B 146936d2a959f1a9509e94a50dfd36a1bee9599d158d41a29ac65d305520f85def91df78b6c7b5475915e7aef11b150de6aefd7e2fd8856550624281555ef8b0 SHA512 55f184870a9ce85314d278722f49e0c2f51939841f37aee8f50bb150afa545fd18a9a43556d428fb8e960eb063a14c50c920de20f2a375bd780432cb26155918
|
||||
DIST github.com-vishvananda-netns-0a2b9b5464df.tar.gz 8008 BLAKE2B ce175a1ffce3ab0a62fccc56836e39c4c90d0df28fb60ca3317a4814fea26f1817e0be8cd424c127ff1060b4a7e28907a9cd65dbd85dbf28a5fe8b010e53368e SHA512 187e10380398f7243624b9725e6166be392bc048b74bdfc3d3c61fcb397b28a16d83f5111fceab6cb79e1045075cba00a48ca15bb5c73127ef26c0f50a05f053
|
||||
DIST opensnitch-1.3.0.tar.gz 885678 BLAKE2B 87b7eda25f15fbc4199b9a36d0fc1dd19b76b350dba6123c2790dbf09243a851beae9de49cf2c9568acb791830e637f37c001d8e3f15fd20e4675e323051fae1 SHA512 fb540614f8ce6799ed1a9af561bcf302f3778e706f5913206ed978402ee65a5577b1a17c5c2ec1805998606f056c3513b87e997133d03985ffccf00bb52f1176
|
||||
1
app-admin/opensnitch/files/opensnitch-ui
Normal file
1
app-admin/opensnitch/files/opensnitch-ui
Normal file
|
|
@ -0,0 +1 @@
|
|||
opensnitch-ui --socket unix:///tmp/osui.sock &
|
||||
12
app-admin/opensnitch/files/opensnitch.initd
Normal file
12
app-admin/opensnitch/files/opensnitch.initd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Desktop application firewall"
|
||||
command="/usr/bin/opensnitchd"
|
||||
command_args=" -rules-path /etc/opensnitchd/rules -ui-socket unix:///tmp/osui.sock -cpu-profile /tmp/cpu.profile -mem-profile /tmp/mem.profile"
|
||||
start_stop_daemon_args="--quiet"
|
||||
pidfile="/run/opensnitchd.pid"
|
||||
command_background=true
|
||||
|
||||
# vim: set ft=gentoo-init-d ts=4 :
|
||||
81
app-admin/opensnitch/opensnitch-1.3.0.ebuild
Normal file
81
app-admin/opensnitch/opensnitch-1.3.0.ebuild
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..8} )
|
||||
inherit distutils-r1
|
||||
|
||||
# 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.0.0"
|
||||
"github.com/google/gopacket v1.1.14"
|
||||
"github.com/vishvananda/netlink v1.1.0"
|
||||
"github.com/vishvananda/netns 0a2b9b5464df"
|
||||
"golang.org/x/net 8d16fa6dc9a8 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/genproto 7fd901a49ba6 github.com/googleapis/go-genproto"
|
||||
"google.golang.org/grpc v1.11.3 github.com/grpc/grpc-go"
|
||||
|
||||
)
|
||||
|
||||
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"
|
||||
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_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}
|
||||
|
||||
}
|
||||
|
|
@ -430,3 +430,6 @@ dev-python/apng
|
|||
|
||||
#required by sqlmap atlas
|
||||
~dev-python/humanfriendly-8.2
|
||||
|
||||
app-admin/opensnitch
|
||||
=dev-python/grpcio-tools-1.32*
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ dev-python/ipython matplotlib
|
|||
dev-python/QtPy gui printsupport
|
||||
|
||||
#urh
|
||||
dev-python/PyQt5 testlib
|
||||
dev-python/PyQt5 testlib sql
|
||||
|
||||
#remove python2 deps
|
||||
#dev-python/netaddr -cli
|
||||
|
|
|
|||
Loading…
Reference in a new issue