aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild')
-rw-r--r--kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild b/kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild
index 16152568ab..50f2a264aa 100644
--- a/kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild
+++ b/kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild
@@ -6,7 +6,7 @@ EAPI=8
ECM_TEST="true"
KFMIN=6.6.0
QTMIN=6.7.2
-inherit ecm plasma.kde.org
+inherit ecm fcaps plasma.kde.org
DESCRIPTION="Task management and system monitoring library"
@@ -32,7 +32,16 @@ RDEPEND="
sys-libs/zlib
"
DEPEND="${RDEPEND}"
-BDEPEND="sys-libs/libcap"
+
+# -m 0755 to avoid suid with USE="-filecaps"
+FILECAPS=( -m 0755 cap_sys_nice=ep usr/libexec/ksysguard/ksgrd_network_helper )
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libcap=ON
+ )
+ ecm_src_configure
+}
src_test() {
# bugs 797898, 889942: flaky test
@@ -41,3 +50,8 @@ src_test() {
)
LC_NUMERIC="C" ecm_src_test # bug 695514
}
+
+pkg_postinst() {
+ ecm_pkg_postinst
+ fcaps_pkg_postinst
+}