From 67d378c3bc72743397662585460bcec3e7d27b9e Mon Sep 17 00:00:00 2001 From: Anubhav Kini Date: Mon, 29 Mar 2021 16:39:00 +0530 Subject: [PATCH] Add opensnitch packages --- srcpkgs/opensnitch-ui/template | 16 +++++++++++++ srcpkgs/opensnitch/template | 10 ++++++++ srcpkgs/opensnitchd/files/opensnitchd/run | 2 ++ srcpkgs/opensnitchd/template | 29 +++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 srcpkgs/opensnitch-ui/template create mode 100644 srcpkgs/opensnitch/template create mode 100644 srcpkgs/opensnitchd/files/opensnitchd/run create mode 100644 srcpkgs/opensnitchd/template diff --git a/srcpkgs/opensnitch-ui/template b/srcpkgs/opensnitch-ui/template new file mode 100644 index 000000000000..f8f881c1c98c --- /dev/null +++ b/srcpkgs/opensnitch-ui/template @@ -0,0 +1,16 @@ +# Template file for 'opensnitch-ui' +pkgname=opensnitch-ui +version=1.3.6 +revision=1 +wrksrc="opensnitch-${version}" +build_wrksrc="ui" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="opensnitchd-${version}_${revision} python3-grpcio-tools python3-slugify + python3-inotify python3-PyQt5 python3-PyQt5-sql qt5-wayland qt5-plugin-sqlite" +short_desc="GNU/Linux port of the Little Snitch application firewall - UI" +maintainer="Anubhav Kini " +license="GPL-3.0-only" +homepage="https://github.com/evilsocket/opensnitch" +distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz" +checksum=a02e49a5ed79db8f21788188f16a28684d5f54f583bb4d338e3386484ee1663a diff --git a/srcpkgs/opensnitch/template b/srcpkgs/opensnitch/template new file mode 100644 index 000000000000..047701709735 --- /dev/null +++ b/srcpkgs/opensnitch/template @@ -0,0 +1,10 @@ +# Template file for 'opensnitch' +pkgname=opensnitch +version=1.3.6 +revision=1 +build_style=meta +depends="opensnitchd-${version}_${revision} opensnitch-ui-${version}_${revision}" +short_desc="GNU/Linux port of the Little Snitch application firewall" +maintainer="Anubhav Kini " +license="GPL-3.0-only" +homepage="https://github.com/evilsocket/opensnitch" diff --git a/srcpkgs/opensnitchd/files/opensnitchd/run b/srcpkgs/opensnitchd/files/opensnitchd/run new file mode 100644 index 000000000000..17d593fc5238 --- /dev/null +++ b/srcpkgs/opensnitchd/files/opensnitchd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec opensnitchd -rules-path /etc/opensnitchd/rules diff --git a/srcpkgs/opensnitchd/template b/srcpkgs/opensnitchd/template new file mode 100644 index 000000000000..0c8c1ee8d73b --- /dev/null +++ b/srcpkgs/opensnitchd/template @@ -0,0 +1,29 @@ +# Template file for 'opensnitchd' +pkgname=opensnitchd +version=1.3.6 +revision=1 +wrksrc="opensnitch-${version}" +build_wrksrc="daemon" +build_style=go +go_import_path="github.com/evilsocket/opensnitch/daemon" +go_package="${go_import_path} ${go_import_path}/firewall ${go_import_path}/ui + ${go_import_path}/ui/protocol ${go_import_path}/dns ${go_import_path}/conman + ${go_import_path}/netlink" +go_mod_mode="mod" +hostmakedepends="pkg-config" +makedepends="libnetfilter_queue-devel" +conf_files="/etc/${pkgname}/default-config.json + /etc/${pkgname}/system-fw.json" +make_dirs="/etc/${pkgname}/rules 0755 root root" +short_desc="GNU/Linux port of the Little Snitch application firewall - daemon" +maintainer="Anubhav Kini " +license="GPL-3.0-only" +homepage="https://github.com/evilsocket/opensnitch" +distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz" +checksum=a02e49a5ed79db8f21788188f16a28684d5f54f583bb4d338e3386484ee1663a +do_install() { + vbin ${GOPATH}/bin/daemon opensnitchd + vinstall "default-config.json" 644 "/etc/${pkgname}/" + vinstall "system-fw.json" 644 "/etc/${pkgname}/" + vsv opensnitchd +}