diff --git a/app-admin/opensnitch/Manifest b/app-admin/opensnitch/Manifest index b175f7e88..1a76922ff 100644 --- a/app-admin/opensnitch/Manifest +++ b/app-admin/opensnitch/Manifest @@ -27,8 +27,6 @@ DIST github.com-vishvananda-netlink-e1a867c6b452.tar.gz 176331 BLAKE2B fa2eca75c DIST github.com-vishvananda-netns-7a452d2d15.tar.gz 9748 BLAKE2B 2476dd583f84ee622f4ad00b495e5602348aeb8c7aef86ea6d88ef88d9483d836b1be49cf4e607fdbc50599c8b4dab13782f734900bc94a97f9db1bdc9ccd8a0 SHA512 b81c24996fbd6c1787d4cf629e7d8a04257d50ed9956a6fd8848c22c155bfc322370a3bed0b8d7681c52a72b9a9d7e86161620e090a7685a61b24fa0597f1e64 DIST github.com-vishvananda-netns-db3c7e526aae.tar.gz 8281 BLAKE2B d74e12debc35118ccd55abc297e1dd39408c8817ffff06965840a984bd5552b45da42a8f89f91adabd2e27b9a32d7d823ae065834aa7ccd5376d4ab3d429738c SHA512 cc564db276cf3cabba1f7dacbb84e5a90d1b2545bddf69ea84c266dd730e11c3db00d40565c74bf67a2f065f0f8e0a797db53fcdbeeade8cd692178367ce3533 DIST opensnitch-1.5.3.tar.gz 1034789 BLAKE2B 4bb947931c66799f576659d1c0de47d832f098c26b1d80235d21017270b1fdcb84fc08bc36c77c1deab285beda9dffe98420b17fea88fc374bb0bc3780d6c176 SHA512 26cd48af5867dbf905d742819bab3632e5d7b2df25661088d3c38e4db3641ecd79fb70e03f99a5ca74149926feb40935fa3ded586a49695bb2bad948a2c823e9 -DIST opensnitch-1.5.8.1.tar.gz 1054371 BLAKE2B 458a31deffec5e50db86151d71fcf950beec523d23a7939cb255391082cfe6ace5c5678f8b3129d7f03d4149bcba016fe0fb3c01371eccd85dcca4db965521a0 SHA512 1023268afb1a49f642ac072116f53dc9abc707c00e76b86f21c88becde62e34b69352ff3e9dbb59cc375d72bbdf3e1246021661ebe6f96a10b555e202847ab0e -DIST opensnitch-1.5.8.tar.gz 1054833 BLAKE2B a4ff85524cbe533977cb7740d5c26202444f26286dcb2ebaf081111e6b6152148b0b76c0da7c43e50aeb6ff164ea9154e505c400fac8a292e116e15ba28d4ecf SHA512 d3027f1b84ead4ca870c3aa6442811e1cf1056a29429a069de35d73a3366b474d3d95e5cf8f3666dcf3277375af49e13794290d9914fbeec169d84e2dd610a04 DIST opensnitch-1.6.0.tar.gz 1291940 BLAKE2B bc9e131f5cdf0631ca828ab41511e2852d2d694bafa5832204f28f38f1a4b0fc103d019267ad12bee84a3077dbca6acf279226fd679ee46f18fd1f24a49072f5 SHA512 4ff4ab840bc81c6df1d37d3390a7719141f583d5a8079561d0d07f5e67d3af5a7b13e0bf196fbe4b969183f63eb67f065a86c65d9c184f58b804efa4ad9a279c DIST opensnitch_amd64.o 10728 BLAKE2B 398f97a9136c8909955dc0ee2f258d2940b915fbd9142e97540813c977bb67cceb2cfc80df248512bc974960d0936c18c55496c1fd17e3176681560a52518047 SHA512 167b1913c0da8597079bee71063a084724b8326b3587ca91b7b72116ae8e998dae8871976fcb7b98135868ffe274d5d332dbacd53a0e47fb5510122b875674af DIST opensnitch_i386.o 10368 BLAKE2B 15b4abd5da8c2ab29f91b2fdefe6ee095dde09d1dcb3180339ba8ab567e29400e77598f1f969c7a4e9b23140564807c237d52b5601d84e2733b658fa9ccd1aaa SHA512 a8e493f4f62e706d0499fa92777ebd8339c925b1622a75595971ee53a3d73b653749a053c3c43bb4a0dc7b6baaed45442d458626c3731bcbc97af069e2b7b160 diff --git a/app-admin/opensnitch/opensnitch-1.5.8.1.ebuild b/app-admin/opensnitch/opensnitch-1.5.8.1.ebuild deleted file mode 100644 index b383051c4..000000000 --- a/app-admin/opensnitch/opensnitch-1.5.8.1.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{10..11} ) -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/iovisor/gobpf v0.2.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="bpf systemd" -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[sql,${PYTHON_USEDEP}] - bpf? ( ~app-admin/opensnitch-ebpf-module-$PV ) -" - -RESTRICT+=" test" - -# needed by iptable rules -CONFIG_CHECK=" - NETFILTER_XT_MATCH_CONNTRACK - NETFILTER_XT_TARGET_NFQUEUE -" - -pkg_pretend() { - 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}/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 -} - -pkg_postinst() { - xdg_icon_cache_update -} diff --git a/app-admin/opensnitch/opensnitch-1.5.8.ebuild b/app-admin/opensnitch/opensnitch-1.5.8.ebuild deleted file mode 100644 index b383051c4..000000000 --- a/app-admin/opensnitch/opensnitch-1.5.8.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{10..11} ) -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/iovisor/gobpf v0.2.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="bpf systemd" -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[sql,${PYTHON_USEDEP}] - bpf? ( ~app-admin/opensnitch-ebpf-module-$PV ) -" - -RESTRICT+=" test" - -# needed by iptable rules -CONFIG_CHECK=" - NETFILTER_XT_MATCH_CONNTRACK - NETFILTER_XT_TARGET_NFQUEUE -" - -pkg_pretend() { - 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}/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 -} - -pkg_postinst() { - xdg_icon_cache_update -}