[neon/kde/libksysguard/Neon/unstable] debian: moved files from ksysguard and pcap faff

Jonathan Riddell null at kde.org
Mon Apr 26 15:36:19 BST 2021


Git commit 24eb407754bcc2049e5574ab1b534f8810579505 by Jonathan Riddell.
Committed on 26/04/2021 at 14:36.
Pushed by jriddell into branch 'Neon/unstable'.

moved files from ksysguard and pcap faff

A  +18   -0    debian/libkf5sysguard-bin.postinst.in

https://invent.kde.org/neon/kde/libksysguard/commit/24eb407754bcc2049e5574ab1b534f8810579505

diff --git a/debian/libkf5sysguard-bin.postinst.in b/debian/libkf5sysguard-bin.postinst.in
new file mode 100644
index 0000000..a390e89
--- /dev/null
+++ b/debian/libkf5sysguard-bin.postinst.in
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = configure ]; then
+    # Set the capabilities
+    if command -v setcap > /dev/null && \
+       setcap "CAP_NET_RAW=+ep" \
+            "/usr/lib/#DEB_HOST_MULTIARCH#/libexec/ksysguard/ksgrd_network_helper"; then
+        echo "Sucessfully set capabilities for start_kdeinit"
+    else
+        echo "Failed to set capabilities for start_kdeinit" >&2
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0


More information about the Neon-commits mailing list