diff options
-rw-r--r-- | app-admin/opensnitch/Manifest | 22 | ||||
-rw-r--r-- | app-admin/opensnitch/files/fix-setup.py.patch | 19 | ||||
-rw-r--r-- | app-admin/opensnitch/files/systemd.patch (renamed from app-admin/opensnitch/files/opensnitch-1.6.2-systemd.patch) | 0 | ||||
-rw-r--r-- | app-admin/opensnitch/opensnitch-1.6.2-r2.ebuild | 175 | ||||
-rw-r--r-- | app-admin/opensnitch/opensnitch-1.6.7.ebuild | 142 | ||||
-rw-r--r-- | metadata/md5-cache/app-admin/opensnitch-1.6.2-r2 | 17 | ||||
-rw-r--r-- | metadata/md5-cache/app-admin/opensnitch-1.6.7 | 17 | ||||
-rw-r--r-- | metadata/pkg_desc_index | 2 |
8 files changed, 181 insertions, 213 deletions
diff --git a/app-admin/opensnitch/Manifest b/app-admin/opensnitch/Manifest index 681c5da5..b0b01e84 100644 --- a/app-admin/opensnitch/Manifest +++ b/app-admin/opensnitch/Manifest @@ -1,20 +1,2 @@ -DIST github.com-fsnotify-fsnotify-v1.4.7.tar.gz 31139 BLAKE2B f2d0aaabfad525fb640beba78991a858ad23203a557a69fc15d2f017b2a693c64c244de435682b1cd9d59e89a97e4ba60c7f95fa99a6145a9dea73b0f334936e SHA512 840943043c49c837641f04b976f2ba610fc03bd31030ca6442744d51fa9241da1905730ea11466e249a5bd37437f1e2a433a012a64ce872a1562c941bd5bfcbf -DIST github.com-golang-net-491a49abca63.tar.gz 1227713 BLAKE2B 68bb26d20dde540f881a7f0697343c35ab8abb2220ee59ac38f8bcf2ab63ff2b5d6e30ca2b8891e02afd463a978becd9f86f604bd35f54d04b26a87921472162 SHA512 343b69c5369fefc0e4deccb70affbced179d1687aeafb6d8173595bf281c4dcd1045e48a958ce4c779ff66a0b50257dce339e2cfa826f67a635a55cd5426edc4 -DIST github.com-golang-protobuf-v1.5.0.tar.gz 171512 BLAKE2B 49fa31ff98d923b0b1db8eb29008b3cbe634e2ab0b106deac1f0ffb69e7762a10e2cabf77e45e4f68a6dfc20f22631480c532b7b137e75ba607d64aa9c79e023 SHA512 1b2316f08bec4651dc196d487b1aebfdf875baa33a5256aad8ea21ee726cdf0835822a58920c5b1af501acbf0e5039e20d621a8247320727f4b1832eb2189110 -DIST github.com-golang-sync-v0.1.0.tar.gz 19356 BLAKE2B ad4f71ddcc1421accc6caf39b58234e9bd0137c32fd5bd834c02d27a51c7933ce97447c8e91860f8b1e478d5370d92d9e801b62ae5cd425baa52df3435e8baf7 SHA512 765dc0365332218b2c3e1a04d63c86a1ab12508a5e9b115dfb73b1d436c592d67d0540f39958546a868772614f255ac92601d5c0263b36884e5a0f9bc9054d40 -DIST github.com-golang-sys-v0.2.0.tar.gz 1410639 BLAKE2B db1c7c6a8a3ddf22459fe3301ae0e641cde5b357d7c537cd14ebd554d6b68c3f823e844d2b0869d20d25b5f030da5b67e03767fcd3f6e63f20f653d5797d612f SHA512 8d13f6fdc6c7f589a7a60caccfd3fa4d784ee3c2fe33ece21b51a8c72b3b27d4ae5df88afacaa231955599471cc780b406e0e0c85359e0e5314ee66990d5ce3e -DIST github.com-golang-text-v0.7.0.tar.gz 8361947 BLAKE2B 210702fc9b6cef7a66abc167705cd753aef285eeb679fcd221493d6a64053f33c9042f8156973419a760ca46b9f8abb55740a11ffb38b1fa7cad18dc9e99e9a8 SHA512 f22006d42a0e18ed7f2dcb6566f8ded8cacbd8cea7a475eff7ce581af07266eabc0b7577b3a34c8ea5cb2299d8bcfe78e41b631e4df1a6cff0f4b953b85294f9 -DIST github.com-google-gopacket-v1.1.14.tar.gz 748336 BLAKE2B f1fe54954b229fafe9cf18e6337f4222cdeb6d71cba0c5c3d0b04eae63952a039cc283eff580db3e79db49b827d64ee54e8d5e64a24546037400faf92c97f086 SHA512 fda58ad503e2547b0e09e511a2ffe5b2e6fa7ba1df3cbf26ae6e08075420586f0f1f553914ee969fcfbdd0a344e240a0d11ae85266c926f138d3efe6afa250b2 -DIST github.com-google-nftables-v0.1.0.tar.gz 76163 BLAKE2B fefdc09c55ffb817f74d2143815d56cbd306e04280fd1cdb9e7f936bf1cbe431fbebc6b36dd08428a48f7fe3e08d9db3356c47404f657509da7895cf65132d2a SHA512 8706ab05a3dd83f7188bc3f03b6e107bfd2ae89b6b1335e60184a1b7cf7a537c96cfffeaf89b4948b8f0c7071af63425c16cf1f352b086ee058aa65f282b4308 -DIST github.com-google-uuid-v1.3.0.tar.gz 16210 BLAKE2B 623277ba46440e058a989281b80b8aa6125b692c5cfbd3abe492adaef1e0c78fed5c6116e6944be6d83dc9f650bcdbb76a711ceeada273e626d3a1faaa76ca08 SHA512 5e79d3ca99dc5b94ec97481d9f440a64060f180482adcbbf5debd4e71e585db28dc8561f27d2d16db71a389126539a1950e5aca5ffcd9d702eccbdc0a5094a83 -DIST github.com-googleapis-go-genproto-0dfe4f8abfcc.tar.gz 6431647 BLAKE2B f23604cd72adfd820dec0aaf16ca3895049554767643a402f7dd65f564b747cfb65723aefd9a5e47a6cceba6cf2eaa24f66b5abe1b568e3456cd1fb29c91bd3a SHA512 5f0496378a2e32e13b1325f8d3a8a0ce6de3e716e1faea3387423f40be9042287541d1479b8bbbd9f0322ca4ce27903ba9ec6077de57fd9683d616889232556d -DIST github.com-grpc-grpc-go-v1.32.0.tar.gz 1053458 BLAKE2B 34fdd17ef7edecc84df8fbcfaee653192fd370e98929e33ba7bff7ef0e6fa04e3befb3153ab23d4bd98eeecb3c714e77aac2c56d448eb99b1d2e03bfc1a39798 SHA512 004f6ba02a53c67051cfe595ab5ce2692a6ef878d55a48165bd601cdbd5fa3a8e4944ba1ca7f5dc4aafac76f85c23714f8f2cfce8d14ea705ef4897c70cfce29 -DIST github.com-iovisor-gobpf-v0.2.0.tar.gz 115750 BLAKE2B 72d08e28d3453b0f2fd5acc3b16586fb4802b9faaad46e219f2465a48cadcb2ecc63c306f0e2a6d64e7c3308d2c55dc083bde6642678c8ce2acfefb63def7275 SHA512 00f28329b89a2fd7e76339b49e30b1bef31eab62854a77c77ccf29ac891f3c12b52f6feb3203d78b8ae2c5fe2f5529db5280686f752cd5b4577e5312dcc67ead -DIST github.com-josharian-native-v1.1.0.tar.gz 2061 BLAKE2B 8660695fa46e037e3a105973f3361c9b9d9fb157376508ec41786f17a09eee0280184aadb4ada7283d449fdc53663e0df74d42b109a82587c80308ca6dc238ca SHA512 7ba7457276c89a11637c2718bf2c0040e9da20149e0a0de89c8fe882cfca468b89f9816203a4979d7169b64f637358463d248b33db11af91cc931aeeb945b5a0 -DIST github.com-mdlayher-netlink-v1.7.1.tar.gz 50495 BLAKE2B 09898c82a8026f646439ded340095ee3147cc48c2e55d66f528b3fe88622d9ea9b4c19364a5f28539e2234b0583fc29cd1c9a08bfea944400974b79d689ba8c8 SHA512 75b21719f5fc8f276e6f396d50974739297682b781342f37f3dc2926c38f5b7988ccbc8bcef1a13fb3e3c90d0357118418754811bb43395b98764d6a6aeea142 -DIST github.com-mdlayher-socket-41a913f399.tar.gz 20712 BLAKE2B 7a5eacf3f607450c280320db80e4e3ac83cd0468d81f90e7091fc2b0b1a93ebb388af4753d28f2c7b79183b3fc910283a07f9e42a700154ebf653b9eb2d91b5c SHA512 ab3dd9f3fec2510043bc4c6094e01f6a527ea98815ba723c9545bf6e3c1fbf5aa8036ee6835d4c87f09fce76e8709a888ffdbaf95f927ae78358bb469290676d -DIST github.com-protocolbuffers-protobuf-go-v1.27.1.tar.gz 1278521 BLAKE2B 1591dbfc5aae2360d69ca3e5e9247c4287114699f732d85011fb1c6b5daa3532d2218ce4ddf0390ffb23a3fd097ffa1b6bc418ba968dab98112a4522cc5fe93b SHA512 a0236bc88b963df0acc2a2c7c247334614b2d555f341e103fd06759665802069a320ced4ab51be658283cc816ec9f2d53ed98728895c5b8ce18954a17663264b -DIST github.com-varlink-go-v0.4.0.tar.gz 28064 BLAKE2B ba9fa9b230878abde99b59841a67a04a26b5119a0e473273f83663f0a110206b36c39e8185da47689b6a2e61bf0c5232dd7954b152a8bc42882702dddfc92409 SHA512 a659f364e1d89a09c337902b46c25146495e83bf46cb877a125ed758c7b1c71206e5bc3067843f1f19929df8cdba3ba327f92d53ce24970dfa7017f7ff4207a6 -DIST github.com-vishvananda-netlink-e1a867c6b452.tar.gz 176331 BLAKE2B fa2eca75c1e66a035cfcbf6040382bc492960b5338762af93119646691303aff7a15481166a1040f0a0ad49a6048fd280ee3de4ee311065f10e5e4498e95044c SHA512 2db2037017f5db53dd820f234373516d319d20621c43445fb6aff4208bfb38912bbc64700ae6d9feff3048a3e959273fff00f02458a7973c49b177deecf0bf6f -DIST github.com-vishvananda-netns-7a452d2d15.tar.gz 9748 BLAKE2B 2476dd583f84ee622f4ad00b495e5602348aeb8c7aef86ea6d88ef88d9483d836b1be49cf4e607fdbc50599c8b4dab13782f734900bc94a97f9db1bdc9ccd8a0 SHA512 b81c24996fbd6c1787d4cf629e7d8a04257d50ed9956a6fd8848c22c155bfc322370a3bed0b8d7681c52a72b9a9d7e86161620e090a7685a61b24fa0597f1e64 -DIST opensnitch-1.6.2.tar.gz 1341337 BLAKE2B c71c89f758d9fdc0a7968c28c8b79791ddf0446392e243acf4db95302d1d109a68372b29bd5b068c41d0bd5ae426a68807d7045a448128fc8badc8ecb906952b SHA512 79e32520e9e370718f0096af8766867154e0e556c164f193816ba965e4d267146941e9849842f42cd2c9bcd00838df460c17570e5c34cf3c2a812491638b71ba +DIST opensnitch-1.6.7-deps.tar.xz 33462988 BLAKE2B ad609b1e3de4592a5ebe5ce931047fd35426e8e09090412903b2d9f437cbe84bd67a420ecff559eb0df001bc45953388df158c08f753268d28411ebaa608e315 SHA512 d7152675345a6150cff576150c06e4d03fa37542dd13a4b666a4d041ca23482c8a23273b37a0734ec394c211a4c1a3001b74e8101635b9720b8a7e5f544a8bfb +DIST opensnitch-1.6.7.gh.tar.gz 1374914 BLAKE2B 0797f2c41db320c95b88b27b4e1f119a0b92e8fd12f35bf8fe9c73f8c642ead1be866ceedf99e819777b882b63cfdab900663910d99253475f9399f3c8922fd8 SHA512 12234304b4fb1a8af0f57a3cdfa684e91f36839fb1862e567912bcc8e9bd09adb2d837b88d6f4461647968cffe2c2260d07873c435cb50825ecb806499c8d3ca diff --git a/app-admin/opensnitch/files/fix-setup.py.patch b/app-admin/opensnitch/files/fix-setup.py.patch new file mode 100644 index 00000000..c59b23b9 --- /dev/null +++ b/app-admin/opensnitch/files/fix-setup.py.patch @@ -0,0 +1,19 @@ +--- a/ui/setup.py ++++ b/ui/setup.py +@@ -28,11 +28,9 @@ These rules can last forever, until the app restart or just one time.', + packages=find_packages(), + include_package_data = True, + package_data={'': ['*.*']}, +- data_files=[('/usr/share/applications', ['resources/opensnitch_ui.desktop']), +- ('/usr/share/kservices5', ['resources/kcm_opensnitch.desktop']), +- ('/usr/share/icons/hicolor/scalable/apps', ['resources/icons/opensnitch-ui.svg']), +- ('/usr/share/icons/hicolor/48x48/apps', ['resources/icons/48x48/opensnitch-ui.png']), +- ('/usr/share/icons/hicolor/64x64/apps', ['resources/icons/64x64/opensnitch-ui.png']), +- ('/usr/share/metainfo', ['resources/io.github.evilsocket.opensnitch.appdata.xml'])], ++ data_files=[('share/applications', ['resources/opensnitch_ui.desktop']), ++ ('share/kservices5', ['resources/kcm_opensnitch.desktop']), ++ ('share/icons/hicolor/scalable/apps', ['resources/icons/opensnitch-ui.svg']), ++ ('share/metainfo', ['resources/io.github.evilsocket.opensnitch.appdata.xml'])], + scripts = [ 'bin/opensnitch-ui' ], + zip_safe=False) + diff --git a/app-admin/opensnitch/files/opensnitch-1.6.2-systemd.patch b/app-admin/opensnitch/files/systemd.patch index 0006a4ab..0006a4ab 100644 --- a/app-admin/opensnitch/files/opensnitch-1.6.2-systemd.patch +++ b/app-admin/opensnitch/files/systemd.patch diff --git a/app-admin/opensnitch/opensnitch-1.6.2-r2.ebuild b/app-admin/opensnitch/opensnitch-1.6.2-r2.ebuild deleted file mode 100644 index 6c955488..00000000 --- a/app-admin/opensnitch/opensnitch-1.6.2-r2.ebuild +++ /dev/null @@ -1,175 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{10..12} ) -inherit distutils-r1 linux-info systemd xdg-utils - -DESCRIPTION="Desktop application firewall" -HOMEPAGE="https://github.com/evilsocket/opensnitch" - -EGO_PN="github.com/evilsocket/opensnitch" -# modified from opensnitch/daemon/go.mod -# NOTE: build fails with github.com/josharian/native after commit 5c7d0dd6ab -EGO_VENDOR=( - "github.com/fsnotify/fsnotify v1.4.7" - "github.com/golang/protobuf v1.5.0" - "github.com/google/gopacket v1.1.14" - "github.com/google/nftables v0.1.0" - "github.com/google/uuid v1.3.0" - "github.com/iovisor/gobpf v0.2.0" - "github.com/varlink/go v0.4.0" - "github.com/vishvananda/netlink e1a867c6b452" - "golang.org/x/net 491a49abca63 github.com/golang/net" - "golang.org/x/sys v0.2.0 github.com/golang/sys" - "google.golang.org/grpc v1.32.0 github.com/grpc/grpc-go" - "google.golang.org/protobuf v1.27.1 github.com/protocolbuffers/protobuf-go" - - "golang.org/x/sync v0.1.0 github.com/golang/sync" - "golang.org/x/text v0.7.0 github.com/golang/text" - "google.golang.org/genproto 0dfe4f8abfcc github.com/googleapis/go-genproto" - "github.com/mdlayher/netlink v1.7.1" - "github.com/mdlayher/socket 41a913f399" - "github.com/josharian/native v1.1.0" - "github.com/vishvananda/netns 7a452d2d15" -) - -inherit golang-vcs-snapshot - -SRC_URI=" - https://github.com/evilsocket/opensnitch/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - ${EGO_VENDOR_URI} -" - -LICENSE="GPL-3" -SLOT="0" -IUSE="+audit bpf +iptables +nftables systemd" -REQUIRED_USE="|| ( iptables nftables )" -KEYWORDS="~amd64 ~x86" - -DEPEND=">=dev-lang/go-1.19 - net-libs/libnetfilter_queue - dev-go/go-protobuf - dev-go/protoc-gen-go-grpc -" -RDEPEND=" - dev-python/grpcio-tools[${PYTHON_USEDEP}] - dev-python/notify2[${PYTHON_USEDEP}] - dev-python/python-slugify[${PYTHON_USEDEP}] - dev-python/pyinotify[${PYTHON_USEDEP}] - dev-python/pyqt5[network,sql,${PYTHON_USEDEP}] - bpf? ( ~app-admin/opensnitch-ebpf-module-$PV ) -" - -RESTRICT+=" test" - -pkg_setup() { - # see https://github.com/evilsocket/opensnitch/discussions/978 - local CONFIG_CHECK=" - INET_TCP_DIAG - INET_UDP_DIAG - INET_RAW_DIAG - INET_DIAG_DESTROY - NETFILTER_NETLINK_ACCT - NETFILTER_NETLINK_QUEUE - NF_CONNTRACK - NF_CT_NETLINK - PROC_FS - " - - # config needed for the audit monitoring method - use audit && CONFIG_CHECK+=" - AUDIT - " - - # config needed for using iptables as firewall - use iptables && CONFIG_CHECK+=" - NETFILTER_XT_MATCH_CONNTRACK - NETFILTER_XT_TARGET_NFQUEUE - " - - # config needed for using nftables as firewall - use nftables && CONFIG_CHECK+=" - NFT_CT - NFT_QUEUE - " - - linux-info_pkg_setup -} - -src_prepare() { - rm -rf src/${EGO_PN}/ui/tests || die - - if use systemd; then - pushd ${WORKDIR}/${P}/src/${EGO_PN} > /dev/null || die - eapply "${FILESDIR}/${P}-systemd.patch" - popd > /dev/null || die - fi - - pushd src/${EGO_PN} > /dev/null || die - eapply_user - popd > /dev/null || die -} - -src_compile() { - emake -C src/${EGO_PN} protocol - - pushd src/${EGO_PN}/ui > /dev/null || die - pyrcc5 -o opensnitch/{resources_rc.py,/res/resources.qrc} - # workaround for namespace conflict - # see https://github.com/evilsocket/opensnitch/issues/496 - # and https://github.com/evilsocket/opensnitch/pull/442 - sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2* || die - popd > /dev/null || die - - # see https://github.com/evilsocket/opensnitch/issues/851 - # opensnitch does not build without -fcf-protection when using go >= 1.19, - # error message: - # cgo: cannot load DWARF output from $WORK/..//_cgo_.o: zlib: invalid header - GOPATH="${S}:$(get_golibdir_gopath)" \ - GOCACHE="${T}/go-cache" \ - CGO_CPPFLAGS="${CPPFLAGS} -fcf-protection" \ - CGO_CFLAGS="${CFLAGS} -fcf-protection" \ - CGO_CXXFLAGS="${CXXFLAGS} -fcf-protection" \ - go build -v \ - -buildmode=pie \ - -ldflags "-compressdwarf=false -linkmode external" \ - -o opensnitchd \ - "${EGO_PN}/daemon" || die - - pushd src/${EGO_PN}/ui > /dev/null || die - distutils-r1_src_compile - popd > /dev/null || die -} - -src_install(){ - dobin 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/ - doins default-config.json - doins system-fw.json - popd > /dev/null || die - - if use systemd; then - pushd src/${EGO_PN}/daemon > /dev/null || die - systemd_dounit opensnitchd.service - popd > /dev/null || die - else - newinitd "${FILESDIR}"/opensnitch.initd ${PN} - fi - - # enforce the best available python implementation (GUI) - python_setup - python_fix_shebang "${ED}"/usr/bin/"${PN}"-ui -} - -pkg_postinst() { - xdg_icon_cache_update -} diff --git a/app-admin/opensnitch/opensnitch-1.6.7.ebuild b/app-admin/opensnitch/opensnitch-1.6.7.ebuild new file mode 100644 index 00000000..62a4db64 --- /dev/null +++ b/app-admin/opensnitch/opensnitch-1.6.7.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +inherit distutils-r1 go-module linux-info systemd xdg-utils + +DESCRIPTION="Desktop application firewall" +HOMEPAGE="https://github.com/evilsocket/opensnitch" + +SRC_URI=" + https://github.com/evilsocket/opensnitch/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://dev.pentoo.ch/~blshkv/distfiles/${P}-deps.tar.xz + " + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64" +IUSE="+audit bpf +iptables +nftables systemd" +REQUIRED_USE="|| ( iptables nftables )" + +DEPEND=">=dev-lang/go-1.19 + net-libs/libnetfilter_queue + dev-go/protobuf-go + dev-go/protoc-gen-go-grpc + !dev-go/go-protobuf +" +RDEPEND=" + dev-python/grpcio-tools[${PYTHON_USEDEP}] + dev-python/notify2[${PYTHON_USEDEP}] + dev-python/python-slugify[${PYTHON_USEDEP}] + dev-python/pyinotify[${PYTHON_USEDEP}] + dev-python/pyqt5[network,sql,${PYTHON_USEDEP}] + bpf? ( ~app-admin/opensnitch-ebpf-module-$PV ) +" + +RESTRICT+=" test" + +pkg_setup() { + # see https://github.com/evilsocket/opensnitch/discussions/978 + local CONFIG_CHECK=" + INET_TCP_DIAG + INET_UDP_DIAG + INET_RAW_DIAG + INET_DIAG_DESTROY + NETFILTER_NETLINK_ACCT + NETFILTER_NETLINK_QUEUE + NF_CONNTRACK + NF_CT_NETLINK + PROC_FS + " + + # config needed for the audit monitoring method + use audit && CONFIG_CHECK+=" + AUDIT + " + + # config needed for using iptables as firewall + use iptables && CONFIG_CHECK+=" + NETFILTER_XT_MATCH_CONNTRACK + NETFILTER_XT_TARGET_NFQUEUE + " + + # config needed for using nftables as firewall + use nftables && CONFIG_CHECK+=" + NFT_CT + NFT_QUEUE + " + + linux-info_pkg_setup +} + +PATCHES=( + "${FILESDIR}/fix-setup.py.patch" +) + +src_unpack() { + unpack ${A} # skip go module verification +} + +src_prepare() { + rm -rf ui/tests || die + use systemd && eapply "${FILESDIR}/systemd.patch" + default +} + +src_compile() { + emake protocol || die + + pushd ui || die + pyrcc5 -o opensnitch/{resources_rc.py,/res/resources.qrc} || die + # workaround for namespace conflict + # see https://github.com/evilsocket/opensnitch/issues/496 + # and https://github.com/evilsocket/opensnitch/pull/442 + sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2* || die + popd > /dev/null || die + + pushd daemon || die + GOCACHE="${T}/go-cache" \ + GOMODCACHE="${WORKDIR}/${PN}-${PV}/vendor" \ + ego build -v -buildmode=pie -o opensnitchd || die + popd > /dev/null || die + + pushd ui || die + distutils-r1_src_compile + popd > /dev/null || die +} + +src_install(){ + pushd ui || die + distutils-r1_src_install + popd > /dev/null || die + + pushd daemon || die + dobin opensnitchd + keepdir /etc/opensnitchd/rules + insinto /etc/opensnitchd/ + doins default-config.json + doins system-fw.json + popd > /dev/null || die + + if use systemd; then + pushd daemon || die + systemd_dounit opensnitchd.service + popd > /dev/null || die + else + newinitd "${FILESDIR}"/opensnitch.initd ${PN} + fi +} + +pkg_postinst() { + xdg_icon_cache_update + + #FIXME upstream bug: https://github.com/evilsocket/opensnitch/issues/795 + elog "Under regular user, run the following commands to display IP's network name:" + elog "cd ~/.config/opensnitch/" + elog "wget https://github.com/hadiasghari/pyasn/blob/master/data/ipasn_20140513_v12.dat.gz?raw=true -O ipasn_db.dat.gz" + elog "wget https://github.com/hadiasghari/pyasn/blob/master/data/asnames.json?raw=true" + +} diff --git a/metadata/md5-cache/app-admin/opensnitch-1.6.2-r2 b/metadata/md5-cache/app-admin/opensnitch-1.6.2-r2 deleted file mode 100644 index 2264c472..00000000 --- a/metadata/md5-cache/app-admin/opensnitch-1.6.2-r2 +++ /dev/null @@ -1,17 +0,0 @@ -BDEPEND=python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 ) python_targets_python3_12? ( dev-lang/python:3.12 ) >=dev-python/setuptools-75.8.2[python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] virtual/pkgconfig >=dev-lang/go-1.10 -DEFINED_PHASES=compile configure install postinst prepare setup test unpack -DEPEND=>=dev-lang/go-1.19 net-libs/libnetfilter_queue dev-go/go-protobuf dev-go/protoc-gen-go-grpc -DESCRIPTION=Desktop application firewall -EAPI=7 -HOMEPAGE=https://github.com/evilsocket/opensnitch -INHERIT=distutils-r1 linux-info systemd xdg-utils golang-vcs-snapshot -IUSE=+audit bpf +iptables +nftables systemd python_targets_python3_10 python_targets_python3_11 python_targets_python3_12 -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-3 -RDEPEND=dev-python/grpcio-tools[python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] dev-python/notify2[python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] dev-python/python-slugify[python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] dev-python/pyinotify[python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] dev-python/pyqt5[network,sql,python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] bpf? ( ~app-admin/opensnitch-ebpf-module-1.6.2 ) python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 ) python_targets_python3_12? ( dev-lang/python:3.12 ) -REQUIRED_USE=|| ( iptables nftables ) || ( python_targets_python3_10 python_targets_python3_11 python_targets_python3_12 ) -RESTRICT=strip test -SLOT=0 -SRC_URI=https://github.com/evilsocket/opensnitch/archive/refs/tags/v1.6.2.tar.gz -> opensnitch-1.6.2.tar.gz https://github.com/fsnotify/fsnotify/archive/v1.4.7.tar.gz -> github.com-fsnotify-fsnotify-v1.4.7.tar.gz https://github.com/golang/protobuf/archive/v1.5.0.tar.gz -> github.com-golang-protobuf-v1.5.0.tar.gz https://github.com/google/gopacket/archive/v1.1.14.tar.gz -> github.com-google-gopacket-v1.1.14.tar.gz https://github.com/google/nftables/archive/v0.1.0.tar.gz -> github.com-google-nftables-v0.1.0.tar.gz https://github.com/google/uuid/archive/v1.3.0.tar.gz -> github.com-google-uuid-v1.3.0.tar.gz https://github.com/iovisor/gobpf/archive/v0.2.0.tar.gz -> github.com-iovisor-gobpf-v0.2.0.tar.gz https://github.com/varlink/go/archive/v0.4.0.tar.gz -> github.com-varlink-go-v0.4.0.tar.gz https://github.com/vishvananda/netlink/archive/e1a867c6b452.tar.gz -> github.com-vishvananda-netlink-e1a867c6b452.tar.gz https://github.com/golang/net/archive/491a49abca63.tar.gz -> github.com-golang-net-491a49abca63.tar.gz https://github.com/golang/sys/archive/v0.2.0.tar.gz -> github.com-golang-sys-v0.2.0.tar.gz https://github.com/grpc/grpc-go/archive/v1.32.0.tar.gz -> github.com-grpc-grpc-go-v1.32.0.tar.gz https://github.com/protocolbuffers/protobuf-go/archive/v1.27.1.tar.gz -> github.com-protocolbuffers-protobuf-go-v1.27.1.tar.gz https://github.com/golang/sync/archive/v0.1.0.tar.gz -> github.com-golang-sync-v0.1.0.tar.gz https://github.com/golang/text/archive/v0.7.0.tar.gz -> github.com-golang-text-v0.7.0.tar.gz https://github.com/googleapis/go-genproto/archive/0dfe4f8abfcc.tar.gz -> github.com-googleapis-go-genproto-0dfe4f8abfcc.tar.gz https://github.com/mdlayher/netlink/archive/v1.7.1.tar.gz -> github.com-mdlayher-netlink-v1.7.1.tar.gz https://github.com/mdlayher/socket/archive/41a913f399.tar.gz -> github.com-mdlayher-socket-41a913f399.tar.gz https://github.com/josharian/native/archive/v1.1.0.tar.gz -> github.com-josharian-native-v1.1.0.tar.gz https://github.com/vishvananda/netns/archive/7a452d2d15.tar.gz -> github.com-vishvananda-netns-7a452d2d15.tar.gz -_eclasses_=distutils-r1 57cca9c4edd0e2a2591feae559933c10 eapi8-dosym 5ac4857ad078256d939c44f7c64197a9 flag-o-matic e8de74bac929ba17427e740e95707d00 go-env 0e2babf96e7d0b045fc07ad199eb2399 golang-base 33e0f9ff6c6f053a3df2d38992afeb58 golang-vcs-snapshot dacb23628c2ff18d349878f599c078a5 linux-info ea4122ba1d8791a12b78e53f9510a2e3 multibuild 4650a65187015567b4e041bb9bfdb364 multilib b2a329026f2e404e9e371097dda47f96 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 out-of-source-utils dbf9e34ee8964084651e25907fa8f52c python-r1 fa2daad0051275fa416115c76e53b1de python-utils-r1 b7726144f5af59e186d66746d0f513e5 systemd 54bd206bb5c4efac6ae28b6b006713b0 toolchain-funcs 6afdb6107430c1832ca7e16aacbf8fa1 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 -_md5_=3c537b4604e63dde6ea37fd396b055f6 diff --git a/metadata/md5-cache/app-admin/opensnitch-1.6.7 b/metadata/md5-cache/app-admin/opensnitch-1.6.7 new file mode 100644 index 00000000..9c423e00 --- /dev/null +++ b/metadata/md5-cache/app-admin/opensnitch-1.6.7 @@ -0,0 +1,17 @@ +BDEPEND=python_targets_python3_11? ( dev-lang/python:3.11 ) python_targets_python3_12? ( dev-lang/python:3.12 ) python_targets_python3_13? ( dev-lang/python:3.13 ) >=dev-python/gpep517-16[python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] >=dev-python/setuptools-75.8.2[python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] >=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig +DEFINED_PHASES=compile configure install postinst prepare setup test unpack +DEPEND=>=dev-lang/go-1.19 net-libs/libnetfilter_queue dev-go/protobuf-go dev-go/protoc-gen-go-grpc !dev-go/go-protobuf +DESCRIPTION=Desktop application firewall +EAPI=8 +HOMEPAGE=https://github.com/evilsocket/opensnitch +INHERIT=distutils-r1 go-module linux-info systemd xdg-utils +IUSE=+audit bpf +iptables +nftables systemd python_targets_python3_11 python_targets_python3_12 python_targets_python3_13 +KEYWORDS=amd64 +LICENSE=GPL-3 +RDEPEND=dev-python/grpcio-tools[python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] dev-python/notify2[python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] dev-python/python-slugify[python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] dev-python/pyinotify[python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] dev-python/pyqt5[network,sql,python_targets_python3_11(-)?,python_targets_python3_12(-)?,python_targets_python3_13(-)?] bpf? ( ~app-admin/opensnitch-ebpf-module-1.6.7 ) python_targets_python3_11? ( dev-lang/python:3.11 ) python_targets_python3_12? ( dev-lang/python:3.12 ) python_targets_python3_13? ( dev-lang/python:3.13 ) +REQUIRED_USE=|| ( iptables nftables ) || ( python_targets_python3_11 python_targets_python3_12 python_targets_python3_13 ) +RESTRICT=test strip +SLOT=0 +SRC_URI=https://github.com/evilsocket/opensnitch/archive/refs/tags/v1.6.7.tar.gz -> opensnitch-1.6.7.gh.tar.gz https://dev.pentoo.ch/~blshkv/distfiles/opensnitch-1.6.7-deps.tar.xz +_eclasses_=distutils-r1 57cca9c4edd0e2a2591feae559933c10 flag-o-matic e8de74bac929ba17427e740e95707d00 go-env 0e2babf96e7d0b045fc07ad199eb2399 go-module df32d29550d40a92da723d3b8e17b467 linux-info ea4122ba1d8791a12b78e53f9510a2e3 multibuild 4650a65187015567b4e041bb9bfdb364 multilib b2a329026f2e404e9e371097dda47f96 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 out-of-source-utils dbf9e34ee8964084651e25907fa8f52c python-r1 fa2daad0051275fa416115c76e53b1de python-utils-r1 b7726144f5af59e186d66746d0f513e5 systemd 54bd206bb5c4efac6ae28b6b006713b0 toolchain-funcs 6afdb6107430c1832ca7e16aacbf8fa1 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 +_md5_=449b0fb17f39391873b1428a2e939a58 diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index index edd9aaf7..ada98de9 100644 --- a/metadata/pkg_desc_index +++ b/metadata/pkg_desc_index @@ -1,7 +1,7 @@ acct-group/smbshare 0: System group: smbshare app-admin/calamares 3.3.9-r10: Distribution-independent installer framework app-admin/conky 1.19.8-r10: An advanced, highly configurable system monitor for X -app-admin/opensnitch 1.6.2-r2: Desktop application firewall +app-admin/opensnitch 1.6.7: Desktop application firewall app-admin/opensnitch-ebpf-module 1.6.2: eBPF process monitor module for opensnitch app-admin/vasile 2.1812.2-r1: Versatile Advanced Script for ISO and Latest Enchantments app-arch/unp 2.0_pre9-r1: Script for unpacking various file formats |