From 267e876d9eeed8439c635f62b00b72e56b6f0ee9 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Thu, 29 Jun 2023 10:16:39 -0400 Subject: [PATCH 1/5] New package: protobuf-go-1.30.0 --- srcpkgs/protobuf-go/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/protobuf-go/template diff --git a/srcpkgs/protobuf-go/template b/srcpkgs/protobuf-go/template new file mode 100644 index 000000000000..be2cec24d61f --- /dev/null +++ b/srcpkgs/protobuf-go/template @@ -0,0 +1,17 @@ +# Template file for 'protobuf-go' +pkgname=protobuf-go +version=1.30.0 +revision=1 +build_style=go +go_import_path="google.golang.org/protobuf" +go_package="${go_import_path}/cmd/protoc-gen-go" +short_desc="Go support for Google's protocol buffers" +maintainer="cinerea0 " +license="BSD-3-Clause" +homepage="https://github.com/protocolbuffers/protobuf-go" +distfiles="https://github.com/protocolbuffers/protobuf-go/archive/refs/tags/v${version}.tar.gz" +checksum=3279a16ec3bdd7c53fe1599134de298ed90d9f3b6ec1c1eb5f3b76ba5aaa9f0c + +post_install() { + vlicense LICENSE +} From 063145738339f35e7a4c28b5c6a63536bf1f53e8 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Thu, 29 Jun 2023 10:17:02 -0400 Subject: [PATCH 2/5] New package: protoc-gen-go-grpc-1.3.0 --- srcpkgs/protoc-gen-go-grpc/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/protoc-gen-go-grpc/template diff --git a/srcpkgs/protoc-gen-go-grpc/template b/srcpkgs/protoc-gen-go-grpc/template new file mode 100644 index 000000000000..a1968c726e9b --- /dev/null +++ b/srcpkgs/protoc-gen-go-grpc/template @@ -0,0 +1,14 @@ +# Template file for 'protoc-gen-go-grpc' +pkgname=protoc-gen-go-grpc +version=1.3.0 +revision=1 +wrksrc="grpc-go-cmd-${pkgname}-v${version}" +build_wrksrc="cmd/protoc-gen-go-grpc" +build_style=go +go_import_path="google.golang.org/grpc/cmd/protoc-gen-go-grpc" +short_desc="Generates Go language bindings of protobuf services for gRPC" +maintainer="cinerea0 " +license="Apache-2.0" +homepage="https://github.com/grpc/grpc-go/tree/master/cmd/protoc-gen-go-grpc" +distfiles="https://github.com/grpc/grpc-go/archive/refs/tags/cmd/protoc-gen-go-grpc/v${version}.tar.gz" +checksum=26ea2bdea1aeba2180046544d468012ce9cb07667ac1f19476febb13ecc781f9 From 6bdd550f45db20561e3d669bf51e056b0f33e980 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Thu, 29 Jun 2023 10:17:23 -0400 Subject: [PATCH 3/5] New package: python3-unicode-slugify-0.1.5 --- srcpkgs/python3-unicode-slugify/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-unicode-slugify/template diff --git a/srcpkgs/python3-unicode-slugify/template b/srcpkgs/python3-unicode-slugify/template new file mode 100644 index 000000000000..e1c296b04b8d --- /dev/null +++ b/srcpkgs/python3-unicode-slugify/template @@ -0,0 +1,18 @@ +# Template file for 'python3-unicode-slugify' +pkgname=python3-unicode-slugify +version=0.1.5 +revision=1 +wrksrc="unicode-slugify-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Slugifier that generates unicode slugs" +maintainer="cinerea0 " +license="BSD-3-Clause" +homepage="https://pypi.org/project/unicode-slugify/" +distfiles="${PYPI_SITE}/u/unicode-slugify/unicode-slugify-${version}.tar.gz" +checksum=25f424258317e4cb41093e2953374b3af1f23097297664731cdb3ae46f6bd6c3 +make_check=no # checks were not ported from python2 + +post_install() { + vlicense LICENSE +} From ceeaa003730feb01b0b65d9bff77ed8ffc263fc8 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Thu, 29 Jun 2023 10:17:40 -0400 Subject: [PATCH 4/5] New package: python3-qt-material-2.14 --- srcpkgs/python3-qt-material/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-qt-material/template diff --git a/srcpkgs/python3-qt-material/template b/srcpkgs/python3-qt-material/template new file mode 100644 index 000000000000..a078bf62587f --- /dev/null +++ b/srcpkgs/python3-qt-material/template @@ -0,0 +1,18 @@ +# Template file for 'python3-qt-material' +pkgname=python3-qt-material +version=2.14 +revision=1 +wrksrc="qt-material-${version}" +build_style=python3-module +hostmakedepends="python3-Jinja2 python3-setuptools" +depends="python3-Jinja2 python3-MarkupSafe" +short_desc="Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6" +maintainer="cinerea0 " +license="BSD-2-Clause" +homepage="https://pypi.org/project/qt-material/" +distfiles="${PYPI_SITE}/q/qt-material/qt-material-${version}.tar.gz" +checksum=b5dbb5ade97217cf7ae336bb7c047c90beb39dc7f2048a498c916ad5f2f7ae23 + +post_install() { + vlicense LICENSE +} From 9cca31a16767dc1711bf01b304b1c1784cb1b727 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Thu, 29 Jun 2023 10:20:53 -0400 Subject: [PATCH 5/5] New package: opensnitch-1.6.0 --- srcpkgs/opensnitch/files/opensnitchd/run | 5 ++++ srcpkgs/opensnitch/patches/cc-check.patch | 13 +++++++++ srcpkgs/opensnitch/template | 35 +++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 srcpkgs/opensnitch/files/opensnitchd/run create mode 100644 srcpkgs/opensnitch/patches/cc-check.patch create mode 100644 srcpkgs/opensnitch/template diff --git a/srcpkgs/opensnitch/files/opensnitchd/run b/srcpkgs/opensnitch/files/opensnitchd/run new file mode 100644 index 000000000000..0c4888fbca07 --- /dev/null +++ b/srcpkgs/opensnitch/files/opensnitchd/run @@ -0,0 +1,5 @@ +#!/bin/sh + +exec 2>&1 +[ -r ./conf ] && . ./conf +exec opensnitchd ${OPTS:--rules-path /etc/opensnitchd/rules} diff --git a/srcpkgs/opensnitch/patches/cc-check.patch b/srcpkgs/opensnitch/patches/cc-check.patch new file mode 100644 index 000000000000..9c6cebdd93f4 --- /dev/null +++ b/srcpkgs/opensnitch/patches/cc-check.patch @@ -0,0 +1,13 @@ +diff --git a/daemon/netfilter/queue.go b/daemon/netfilter/queue.go +index 32fe4a78b5..2a95d444c2 100644 +--- a/daemon/netfilter/queue.go ++++ b/daemon/netfilter/queue.go +@@ -3,7 +3,7 @@ package netfilter + /* + #cgo pkg-config: libnetfilter_queue + #cgo CFLAGS: -I/usr/include +-#cgo LDFLAGS: -L/usr/lib64/ -ldl ++#cgo LDFLAGS: -L/usr/lib64 -ldl + + #include "queue.h" + */ diff --git a/srcpkgs/opensnitch/template b/srcpkgs/opensnitch/template new file mode 100644 index 000000000000..24409f1262ec --- /dev/null +++ b/srcpkgs/opensnitch/template @@ -0,0 +1,35 @@ +# Template file for 'opensnitch' +pkgname=opensnitch +version=1.6.0 +revision=1 +build_style=gnu-makefile +hostmakedepends="git go pkg-config protobuf protobuf-go protoc-gen-go-grpc + python3-grpcio-tools python3-pip python3-PyQt5-devel-tools + python3-setuptools qt5-host-tools" +makedepends="libnetfilter_queue-devel libpcap-devel python3-inotify + python3-unicode-slugify python3-Unidecode" +depends="python3-googleapis-common-protos python3-grpcio python3-inotify + python3-notify2 python3-pyasn1 python3-PyQt5 python3-PyQt5-sql + python3-qt-material python3-unicode-slugify python3-Unidecode qt5-plugin-sqlite + qt5-wayland" +conf_files="/etc/opensnitchd/default-config.json + /etc/opensnitchd/system-fw.json" +make_dirs="/etc/opensnitchd/rules/ 0755 root root + /etc/opensnitchd/ 0755 root root" +short_desc="GNU/Linux port of the Little Snitch application firewall" +maintainer="cinerea0 " +license="GPL-3.0-only" +homepage="https://github.com/evilsocket/opensnitch" +distfiles="https://github.com/evilsocket/opensnitch/archive/refs/tags/v${version}.tar.gz" +checksum=d468599f84f6dfde1afc0cad79ef0d511b7f5d5aafc14acbbf730ab0ae317342 +nopie_files="/usr/bin/opensnitchd" +nocross="Go's 'sys' package uses a -m64 compilation flag which breaks certain ARM builds" + +do_install() { + vbin daemon/opensnitchd + vinstall daemon/default-config.json 0644 etc/opensnitchd + vinstall daemon/system-fw.json 0644 etc/opensnitchd + cd ui + python3 setup.py install --prefix=/usr --root=${DESTDIR} + vsv opensnitchd +}