incompatibles removed

This commit is contained in:
TheK0tYaRa 2025-05-06 20:48:45 +03:00
parent 5c60584ba7
commit c20d98df8c
7 changed files with 0 additions and 364 deletions

View file

@ -1,4 +0,0 @@
DIST opensnitch-1.5.2.tar.gz 995296 BLAKE2B aab54c00de55c42aebbae23fd0cb7befdc87c633153c9ae4a4b6535587e2ccd3436343cdd121e76118d3c17ec23778fb80e5d973dcd8b296b2f1986cc2dc1e6f SHA512 77ad266dd3531f576e2b10aff5bcfa724c4e7b90d8b9deb01d7bdf24c728f32c9a7d16eaa91954177a3717fbebc8b1524cf975ae899c2d703ccaba4ac4b86c19
DIST opensnitch_amd64.o 10728 BLAKE2B 398f97a9136c8909955dc0ee2f258d2940b915fbd9142e97540813c977bb67cceb2cfc80df248512bc974960d0936c18c55496c1fd17e3176681560a52518047 SHA512 167b1913c0da8597079bee71063a084724b8326b3587ca91b7b72116ae8e998dae8871976fcb7b98135868ffe274d5d332dbacd53a0e47fb5510122b875674af
DIST opensnitch_arm64.o 10384 BLAKE2B 6439a1d29af9e44794aeb5a6a07ed0556f3cfd5afb6e1bdf8002b058acaae0909b362697bf32f60553ce42853e573d24f272712e215c08af2b677d513cbfff37 SHA512 298ee7aea9b70c206b5d12ada016b21a05fb0ee65001e24bf3bf949dcb9308fde83fff8e281df761354ebdcfc3ff9672ec0000a19e1f285b61228cb4eeba0700
DIST opensnitch_i386.o 10368 BLAKE2B 15b4abd5da8c2ab29f91b2fdefe6ee095dde09d1dcb3180339ba8ab567e29400e77598f1f969c7a4e9b23140564807c237d52b5601d84e2733b658fa9ccd1aaa SHA512 a8e493f4f62e706d0499fa92777ebd8339c925b1622a75595971ee53a3d73b653749a053c3c43bb4a0dc7b6baaed45442d458626c3731bcbc97af069e2b7b160

View file

@ -1 +0,0 @@
opensnitch-ui --socket unix:///tmp/osui.sock &

View file

@ -1,12 +0,0 @@
#!/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 :

View file

@ -1,13 +0,0 @@
diff --git a/daemon/opensnitchd.service b/daemon/opensnitchd.service
index 014e79e..8a81d0e 100644
--- a/daemon/opensnitchd.service
+++ b/daemon/opensnitchd.service
@@ -8,7 +8,7 @@ After=network.target
Type=simple
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /etc/opensnitchd/rules
-ExecStart=/usr/local/bin/opensnitchd -rules-path /etc/opensnitchd/rules
+ExecStart=/usr/bin/opensnitchd -rules-path /etc/opensnitchd/rules -ui-socket unix:///tmp/osui.sock -cpu-profile /tmp/cpu.profile -mem-profile /tmp/mem.profile
Restart=always
RestartSec=30

View file

@ -1,126 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1 linux-info systemd
# copy from daemon/go.mod
# old: go mod vendor && grep "# g" ./vendor/modules.txt | sort
#github.com/google/nftables use the latest version
EGO_PN="github.com/evilsocket/opensnitch"
EGO_VENDOR=(
"github.com/evilsocket/ftrace v1.2.0"
"github.com/fsnotify/fsnotify v1.5.1"
"github.com/golang/protobuf v1.5.2"
"github.com/google/gopacket v1.1.19"
"github.com/google/nftables 950e408d48c671ccd9f4997a4b6eb95db21365d6"
"github.com/iovisor/gobpf v0.2.0"
"github.com/vishvananda/netlink v1.1.0"
"github.com/vishvananda/netns 50045581ed74"
"golang.org/x/net 27dd8689420f github.com/golang/net"
"golang.org/x/sync 036812b2e83c github.com/golang/sync"
"golang.org/x/sys 4e6760a101f9 github.com/golang/sys"
"golang.org/x/text v0.3.7 github.com/golang/text"
"google.golang.org/grpc v1.32.0 github.com/grpc/grpc-go"
"google.golang.org/protobuf v1.27.1 github.com/protocolbuffers/protobuf-go"
"google.golang.org/genproto 325a89244dc8 github.com/googleapis/go-genproto"
"github.com/mdlayher/netlink v1.6.0"
"github.com/josharian/native v1.0.0"
"github.com/mdlayher/socket v0.2.2"
)
inherit go-module # golang-vcs-snapshot
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}.tar.gz
${EGO_VENDOR_URI}
amd64? ( https://dev.pentoo.ch/~blshkv/distfiles/opensnitch_amd64.o )
x86? ( https://dev.pentoo.ch/~blshkv/distfiles/opensnitch_i386.o )
arm64? ( https://dev.pentoo.ch/~blshkv/distfiles/opensnitch_arm64.o )
"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="systemd"
KEYWORDS="~amd64 ~x86"
# dev-go/go-text:=
DEPEND=">=dev-lang/go-1.13
net-libs/libnetfilter_queue
dev-go/go-protobuf
dev-go/protoc-gen-go-grpc
dev-python/grpcio-tools[${PYTHON_USEDEP}]
"
RDEPEND="
# dev-python/grpcio-tools[${PYTHON_USEDEP}]
dev-python/python-slugify[${PYTHON_USEDEP}]
dev-python/pyinotify[${PYTHON_USEDEP}]
dev-python/PyQt5[sql,${PYTHON_USEDEP}]
"
RESTRICT="test"
#https://github.com/evilsocket/opensnitch/issues/712
QA_PREBUILT="etc/opensnitchd/opensnitch.o"
#KPROBES* required by ebpf
CONFIG_CHECK="NETFILTER_XT_MATCH_CONNTRACK CGROUP_BPF BPF BPF_SYSCALL BPF_EVENTS KPROBES KPROBE_EVENTS"
pkg_pretend() {
linux-info_pkg_setup
}
src_prepare() {
rm -r src/${EGO_PN}/ui/tests
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*
use systemd && cd "${WORKDIR}/${P}/src/${EGO_PN}" && eapply "${FILESDIR}/systemd.patch"
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/
doins default-config.json
doins system-fw.json
if use amd64; then
newins "${DISTDIR}"/opensnitch_amd64.o opensnitch.o
elif use arm64; then
newins "${DISTDIR}"/opensnitch_arm64.o opensnitch.o
elif use x86; then
newins "${DISTDIR}"/opensnitch_i386.o opensnitch.o
fi
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
}

View file

@ -1,106 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9,10} )
inherit python-single-r1 xdg-utils
DESCRIPTION="Fully-featured audio plugin host, supports many audio drivers and plugin formats"
HOMEPAGE="http://kxstudio.linuxaudio.org/Applications:Carla"
if [[ ${PV} == *9999 ]]; then
# Disable submodules to prevent external plugins from being built and installed
inherit git-r3
EGIT_REPO_URI="https://github.com/falkTX/Carla.git"
EGIT_SUBMODULES=()
else
SRC_URI="https://github.com/falkTX/Carla/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
KEYWORDS="~amd64"
S="${WORKDIR}/Carla-${PV}"
fi
LICENSE="GPL-2 LGPL-3"
SLOT="0"
IUSE="alsa gtk gtk2 opengl osc pulseaudio rdf sf2 sndfile X"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/PyQt5[gui,opengl?,svg,widgets,${PYTHON_USEDEP}]')
virtual/jack
alsa? ( media-libs/alsa-lib )
gtk? ( x11-libs/gtk+:3 )
gtk2? ( x11-libs/gtk+:2 )
osc? (
media-libs/liblo
media-libs/pyliblo
)
pulseaudio? ( media-sound/pulseaudio )
rdf? ( dev-python/rdflib )
sf2? ( media-sound/fluidsynth )
sndfile? ( media-libs/libsndfile )
X? ( x11-base/xorg-server )"
DEPEND=${RDEPEND}
PATCHES=(
"${FILESDIR}/${P}-fix-missing-include.patch"
)
src_prepare() {
sed -i -e "s|exec \$PYTHON|exec ${PYTHON}|" \
data/carla \
data/carla-control \
data/carla-database \
data/carla-jack-multi \
data/carla-jack-single \
data/carla-patchbay \
data/carla-rack \
data/carla-settings || die "sed failed"
default
}
src_compile() {
myemakeargs=(
LIBDIR="/usr/$(get_libdir)"
SKIP_STRIPPING=true
HAVE_FFMPEG=false
HAVE_ZYN_DEPS=false
HAVE_ZYN_UI_DEPS=false
HAVE_QT4=false
HAVE_QT5=true
HAVE_PYQT5=true
DEFAULT_QT=5
HAVE_ALSA=$(usex alsa true false)
HAVE_FLUIDSYNTH=$(usex sf2 true false)
HAVE_GTK2=$(usex gtk2 true false)
HAVE_GTK3=$(usex gtk true false)
HAVE_LIBLO=$(usex osc true false)
HAVE_PULSEAUDIO=$(usex pulseaudio true false)
HAVE_SNDFILE=$(usex sndfile true false)
HAVE_X11=$(usex X true false)
)
# Print which options are enabled/disabled
make features PREFIX="/usr" "${myemakeargs[@]}"
emake PREFIX="/usr" "${myemakeargs[@]}"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" "${myemakeargs[@]}" install
if ! use osc; then
find "${D}/usr" -iname "carla-control*" | xargs rm
fi
}
pkg_postinst() {
xdg_mimeinfo_database_update
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_mimeinfo_database_update
xdg_desktop_database_update
xdg_icon_cache_update
}

View file

@ -1,102 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9,10} )
inherit python-single-r1 xdg-utils
DESCRIPTION="Fully-featured audio plugin host, supports many audio drivers and plugin formats"
HOMEPAGE="http://kxstudio.linuxaudio.org/Applications:Carla"
if [[ ${PV} == *9999 ]]; then
# Disable submodules to prevent external plugins from being built and installed
inherit git-r3
EGIT_REPO_URI="https://github.com/falkTX/Carla.git"
EGIT_SUBMODULES=()
else
SRC_URI="https://github.com/falkTX/Carla/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
KEYWORDS="~amd64"
S="${WORKDIR}/Carla-${PV}"
fi
LICENSE="GPL-2 LGPL-3"
SLOT="0"
IUSE="alsa gtk gtk2 opengl osc pulseaudio rdf sf2 sndfile X"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/PyQt5[gui,opengl?,svg,widgets,${PYTHON_USEDEP}]')
virtual/jack
alsa? ( media-libs/alsa-lib )
gtk? ( x11-libs/gtk+:3 )
gtk2? ( x11-libs/gtk+:2 )
osc? (
media-libs/liblo
media-libs/pyliblo
)
pulseaudio? ( media-sound/pulseaudio )
rdf? ( dev-python/rdflib )
sf2? ( media-sound/fluidsynth )
sndfile? ( media-libs/libsndfile )
X? ( x11-base/xorg-server )"
DEPEND=${RDEPEND}
src_prepare() {
sed -i -e "s|exec \$PYTHON|exec ${PYTHON}|" \
data/carla \
data/carla-control \
data/carla-database \
data/carla-jack-multi \
data/carla-jack-single \
data/carla-patchbay \
data/carla-rack \
data/carla-settings || die "sed failed"
default
}
src_compile() {
myemakeargs=(
LIBDIR="/usr/$(get_libdir)"
SKIP_STRIPPING=true
HAVE_FFMPEG=false
HAVE_ZYN_DEPS=false
HAVE_ZYN_UI_DEPS=false
HAVE_QT4=false
HAVE_QT5=true
HAVE_PYQT5=true
DEFAULT_QT=5
HAVE_ALSA=$(usex alsa true false)
HAVE_FLUIDSYNTH=$(usex sf2 true false)
HAVE_GTK2=$(usex gtk2 true false)
HAVE_GTK3=$(usex gtk true false)
HAVE_LIBLO=$(usex osc true false)
HAVE_PULSEAUDIO=$(usex pulseaudio true false)
HAVE_SNDFILE=$(usex sndfile true false)
HAVE_X11=$(usex X true false)
)
# Print which options are enabled/disabled
make features PREFIX="/usr" "${myemakeargs[@]}"
emake PREFIX="/usr" "${myemakeargs[@]}"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" "${myemakeargs[@]}" install
if ! use osc; then
find "${D}/usr" -iname "carla-control*" | xargs rm
fi
}
pkg_postinst() {
xdg_mimeinfo_database_update
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_mimeinfo_database_update
xdg_desktop_database_update
xdg_icon_cache_update
}