diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-24 11:24:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-24 11:24:47 +0000 |
commit | 8cf6c69a325cb846273310553be628156841931d (patch) | |
tree | f14c065d81975b6bdf401df5c5fe33cd600ca23e /app-admin/opensnitch/files | |
parent | 7532435facaa7eb7315113a85be796479893171e (diff) |
app-admin/opensnitch : new package (import from pentoo)
Diffstat (limited to 'app-admin/opensnitch/files')
-rw-r--r-- | app-admin/opensnitch/files/opensnitch-ui | 1 | ||||
-rw-r--r-- | app-admin/opensnitch/files/opensnitch.initd | 12 | ||||
-rw-r--r-- | app-admin/opensnitch/files/systemd.patch | 13 |
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 + |