[SCM] kwin packaging branch, master, updated. debian/4%5.12.0-1-4-gbce2e04
Maximiliano Curia
maxy at moszumanska.debian.org
Sun Feb 11 10:55:32 UTC 2018
Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/kwin.git;a=commitdiff;h=0038de5
The following commit has been merged in the master branch:
commit 0038de50d679ff8b44c3c5723ce5d774ee367ffe
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date: Sun Feb 11 11:21:25 2018 +0100
Set kwin_wayland capabilities in postinst
---
debian/control | 3 ++-
debian/kwin-wayland.postinst | 19 +++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 0843fb4..bdb766d 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Build-Depends: breeze-dev (>= 4:5.9.0~),
extra-cmake-modules (>= 5.38~),
kinit-dev (>= 5.42.0~),
kscreenlocker-dev,
- libcap-dev,
+ libcap-dev [linux-any],
libdrm-dev (>= 2.4.62~),
libegl1-mesa-dev (>= 1.2~),
libepoxy-dev (>= 1.2),
@@ -166,6 +166,7 @@ Architecture: any
Depends: kwayland-integration,
kwin-common (= ${binary:Version}),
kwin-wayland-backend-drm (= ${binary:Version}) | kwin-wayland-backend-fbdev (= ${binary:Version}) | kwin-wayland-backend-x11 (= ${binary:Version}) | kwin-wayland-backend-virtual (= ${binary:Version}) | kwin-wayland-backend-wayland (= ${binary:Version}),
+ libcap2-bin [linux-any],
xwayland,
${misc:Depends},
${shlibs:Depends},
diff --git a/debian/kwin-wayland.postinst b/debian/kwin-wayland.postinst
new file mode 100644
index 0000000..712faad
--- /dev/null
+++ b/debian/kwin-wayland.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = configure ]; then
+ # Set the capabilities
+ if command -v setcap > /dev/null && \
+ setcap "CAP_SYS_RESOURCE=+ep" \
+ /usr/bin/kwin_wayland; then
+ echo "Sucessfully setting capabilities for kwin_wayland"
+ else
+ echo "Failed to set capabilities for kwin_wayland" >&2
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
+
--
kwin packaging
More information about the pkg-kde-commits
mailing list