summaryrefslogtreecommitdiff
path: root/app-admin/opensnitch/files
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/opensnitch/files')
-rw-r--r--app-admin/opensnitch/files/opensnitch-ui1
-rw-r--r--app-admin/opensnitch/files/opensnitch.initd12
-rw-r--r--app-admin/opensnitch/files/systemd.patch13
3 files changed, 26 insertions, 0 deletions
diff --git a/app-admin/opensnitch/files/opensnitch-ui b/app-admin/opensnitch/files/opensnitch-ui
new file mode 100644
index 00000000..7c005f42
--- /dev/null
+++ b/app-admin/opensnitch/files/opensnitch-ui
@@ -0,0 +1 @@
+opensnitch-ui --socket unix:///tmp/osui.sock &
diff --git a/app-admin/opensnitch/files/opensnitch.initd b/app-admin/opensnitch/files/opensnitch.initd
new file mode 100644
index 00000000..0597b0dd
--- /dev/null
+++ b/app-admin/opensnitch/files/opensnitch.initd
@@ -0,0 +1,12 @@
+#!/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 :
diff --git a/app-admin/opensnitch/files/systemd.patch b/app-admin/opensnitch/files/systemd.patch
new file mode 100644
index 00000000..aa7a1324
--- /dev/null
+++ b/app-admin/opensnitch/files/systemd.patch
@@ -0,0 +1,13 @@
+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
+