diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-11-17 17:46:00 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-11-17 17:48:16 +0100 |
commit | 0862075046789f0351d3965578dc94f13dbb1058 (patch) | |
tree | 6a4a9d0c5e1bbe76abab2ec21f825d024095d62c | |
parent | kde-plasma/powerdevil: set cap_sys_nice=ep on org_kde_powerdevil (diff) | |
download | kde-0862075046789f0351d3965578dc94f13dbb1058.tar.gz kde-0862075046789f0351d3965578dc94f13dbb1058.tar.bz2 kde-0862075046789f0351d3965578dc94f13dbb1058.zip |
kde-plasma/libksysguard: set cap_sys_nice=ep on ksgrd_network_helper
Upstream commit 1bb5880f08e93e49017dfca6359b293a3bb6f5dc
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | kde-plasma/libksysguard/libksysguard-6.2.49.9999.ebuild | 18 | ||||
-rw-r--r-- | kde-plasma/libksysguard/libksysguard-9999.ebuild | 18 |
2 files changed, 32 insertions, 4 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 +} diff --git a/kde-plasma/libksysguard/libksysguard-9999.ebuild b/kde-plasma/libksysguard/libksysguard-9999.ebuild index be8b5c011e..af7014f767 100644 --- a/kde-plasma/libksysguard/libksysguard-9999.ebuild +++ b/kde-plasma/libksysguard/libksysguard-9999.ebuild @@ -6,7 +6,7 @@ EAPI=8 ECM_TEST="true" KFMIN=9999 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 +} |