diff options
author | 2017-06-25 12:48:11 +0200 | |
---|---|---|
committer | 2017-06-25 12:48:11 +0200 | |
commit | 577c08b5d4e45b04bbb9978b89123c3d6d2d6d22 (patch) | |
tree | fe86835824b5cfe19aef240f81728889dcc85e88 | |
parent | 87aa94c403fdb107a44c3160f9f5b9463e663e5f (diff) | |
download | ktown-577c08b5d4e45b04bbb9978b89123c3d6d2d6d22.tar.gz ktown-577c08b5d4e45b04bbb9978b89123c3d6d2d6d22.tar.xz |
Re-apply setcap command to <libdir>/kf5/start_kdeinit
The build process fails to run setcap successfully so we implement this
in the package's doinst.sh script at install time.
-rw-r--r-- | kde/doinst.sh/kinit | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kde/doinst.sh/kinit b/kde/doinst.sh/kinit new file mode 100644 index 0000000..27e1800 --- /dev/null +++ b/kde/doinst.sh/kinit @@ -0,0 +1,7 @@ +# Re-run the 'setcap' command which fails during package buikding +# (because of a mising DESTDIR?): +if [ -f usr/lib64/kf5/start_kdeinit ]; then + /sbin/setcap CAP_SYS_RESOURCE=+ep usr/lib64/kf5/start_kdeinit +elif [ -f usr/lib/kf5/start_kdeinit ]; then + /sbin/setcap CAP_SYS_RESOURCE=+ep usr/lib/kf5/start_kdeinit +fi |