diff --git a/app-admin/opensnitch-ebpf-module/Manifest b/app-admin/opensnitch-ebpf-module/Manifest index 26504bf1f..6dc14de5b 100644 --- a/app-admin/opensnitch-ebpf-module/Manifest +++ b/app-admin/opensnitch-ebpf-module/Manifest @@ -1,4 +1 @@ -DIST linux-6.0.14.tar.gz 214150171 BLAKE2B 98ec9c9d25416fe757712d629818a51b3f2fbb42b792a2e991f32841487de3115d593a72f61ceefeb92ddc8f75e7d6161eff74d017243fe1115f9e116c0850f6 SHA512 b5b33c25f6bcdc644bfe852ecc50d9ef516660de2e5bc6b42a675cd67c67740ce62a6e6f775de35a823d82bfeec773f6b94cedc79957fbf43a0b6c964887d681 DIST opensnitch-1.6.0.tar.gz 1291940 BLAKE2B bc9e131f5cdf0631ca828ab41511e2852d2d694bafa5832204f28f38f1a4b0fc103d019267ad12bee84a3077dbca6acf279226fd679ee46f18fd1f24a49072f5 SHA512 4ff4ab840bc81c6df1d37d3390a7719141f583d5a8079561d0d07f5e67d3af5a7b13e0bf196fbe4b969183f63eb67f065a86c65d9c184f58b804efa4ad9a279c -DIST opensnitch-ebpf-module-1.5.8.1.tar.gz 1054371 BLAKE2B 458a31deffec5e50db86151d71fcf950beec523d23a7939cb255391082cfe6ace5c5678f8b3129d7f03d4149bcba016fe0fb3c01371eccd85dcca4db965521a0 SHA512 1023268afb1a49f642ac072116f53dc9abc707c00e76b86f21c88becde62e34b69352ff3e9dbb59cc375d72bbdf3e1246021661ebe6f96a10b555e202847ab0e -DIST opensnitch-ebpf-module-1.5.8.tar.gz 1054833 BLAKE2B a4ff85524cbe533977cb7740d5c26202444f26286dcb2ebaf081111e6b6152148b0b76c0da7c43e50aeb6ff164ea9154e505c400fac8a292e116e15ba28d4ecf SHA512 d3027f1b84ead4ca870c3aa6442811e1cf1056a29429a069de35d73a3366b474d3d95e5cf8f3666dcf3277375af49e13794290d9914fbeec169d84e2dd610a04 diff --git a/app-admin/opensnitch-ebpf-module/opensnitch-ebpf-module-1.5.8.1.ebuild b/app-admin/opensnitch-ebpf-module/opensnitch-ebpf-module-1.5.8.1.ebuild deleted file mode 100644 index 65c9e26d2..000000000 --- a/app-admin/opensnitch-ebpf-module/opensnitch-ebpf-module-1.5.8.1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-info - -DESCRIPTION="eBPF process monitor module for opensnitch" -HOMEPAGE="https://github.com/evilsocket/opensnitch" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -# latest kernel that builds: 6.0.14 -_KV_MAJOR=6 -_KV_MINOR=0 -_KV_PATCH=14 - -SRC_URI=" - https://github.com/evilsocket/opensnitch/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - https://cdn.kernel.org/pub/linux/kernel/v${_KV_MAJOR}.x/linux-${_KV_MAJOR}.${_KV_MINOR}.${_KV_PATCH}.tar.gz -" - -S="${WORKDIR}/linux-${_KV_MAJOR}.${_KV_MINOR}.${_KV_PATCH}" -_BPF_S="${WORKDIR}/opensnitch-${PV}/ebpf_prog" -_KERNEL_BPF_PATH=samples/bpf - -BDEPEND=" - sys-devel/bc - sys-devel/clang - sys-devel/llvm - net-misc/rsync -" - -RESTRICT="strip test" -QA_PREBUILT="*" - -PATCHES=( - "${_BPF_S}/file.patch" -) - -# see https://github.com/evilsocket/opensnitch/issues/774 -# and https://github.com/evilsocket/opensnitch/tree/master/ebpf_prog -CONFIG_CHECK=" - DEBUG_FS - FTRACE - CGROUP_BPF - BPF - BPF_SYSCALL - BPF_EVENTS - KPROBES - KPROBES_ON_FTRACE - HAVE_KPROBES - HAVE_KPROBES_ON_FTRACE - KPROBE_EVENTS - HAVE_SYSCALL_TRACEPOINTS - FTRACE_SYSCALLS - UPROBE_EVENTS -" - -pkg_pretend() { - linux-info_pkg_setup -} - -src_prepare() { - default - local MY_SRC=( - "${_BPF_S}/opensnitch.c" - "${_BPF_S}/Makefile" - ) - cp "${MY_SRC[@]}" "${_KERNEL_BPF_PATH}" || die -} - -src_configure() { - set_arch_to_kernel - yes "" | make oldconfig - emake prepare -} - -src_compile() { - emake headers_install - - emake -C "${_KERNEL_BPF_PATH}" - - llvm-strip -g "${_KERNEL_BPF_PATH}"/opensnitch.o -} - -src_install(){ - insinto /etc/opensnitchd - doins "${_KERNEL_BPF_PATH}"/opensnitch.o -} diff --git a/app-admin/opensnitch-ebpf-module/opensnitch-ebpf-module-1.5.8.ebuild b/app-admin/opensnitch-ebpf-module/opensnitch-ebpf-module-1.5.8.ebuild deleted file mode 100644 index 65c9e26d2..000000000 --- a/app-admin/opensnitch-ebpf-module/opensnitch-ebpf-module-1.5.8.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-info - -DESCRIPTION="eBPF process monitor module for opensnitch" -HOMEPAGE="https://github.com/evilsocket/opensnitch" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -# latest kernel that builds: 6.0.14 -_KV_MAJOR=6 -_KV_MINOR=0 -_KV_PATCH=14 - -SRC_URI=" - https://github.com/evilsocket/opensnitch/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - https://cdn.kernel.org/pub/linux/kernel/v${_KV_MAJOR}.x/linux-${_KV_MAJOR}.${_KV_MINOR}.${_KV_PATCH}.tar.gz -" - -S="${WORKDIR}/linux-${_KV_MAJOR}.${_KV_MINOR}.${_KV_PATCH}" -_BPF_S="${WORKDIR}/opensnitch-${PV}/ebpf_prog" -_KERNEL_BPF_PATH=samples/bpf - -BDEPEND=" - sys-devel/bc - sys-devel/clang - sys-devel/llvm - net-misc/rsync -" - -RESTRICT="strip test" -QA_PREBUILT="*" - -PATCHES=( - "${_BPF_S}/file.patch" -) - -# see https://github.com/evilsocket/opensnitch/issues/774 -# and https://github.com/evilsocket/opensnitch/tree/master/ebpf_prog -CONFIG_CHECK=" - DEBUG_FS - FTRACE - CGROUP_BPF - BPF - BPF_SYSCALL - BPF_EVENTS - KPROBES - KPROBES_ON_FTRACE - HAVE_KPROBES - HAVE_KPROBES_ON_FTRACE - KPROBE_EVENTS - HAVE_SYSCALL_TRACEPOINTS - FTRACE_SYSCALLS - UPROBE_EVENTS -" - -pkg_pretend() { - linux-info_pkg_setup -} - -src_prepare() { - default - local MY_SRC=( - "${_BPF_S}/opensnitch.c" - "${_BPF_S}/Makefile" - ) - cp "${MY_SRC[@]}" "${_KERNEL_BPF_PATH}" || die -} - -src_configure() { - set_arch_to_kernel - yes "" | make oldconfig - emake prepare -} - -src_compile() { - emake headers_install - - emake -C "${_KERNEL_BPF_PATH}" - - llvm-strip -g "${_KERNEL_BPF_PATH}"/opensnitch.o -} - -src_install(){ - insinto /etc/opensnitchd - doins "${_KERNEL_BPF_PATH}"/opensnitch.o -}