1 |
commit: 0565e69e1251e25d9cfe14027d2538a2401c0e47 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 1 10:02:00 2019 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 1 11:23:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0565e69e |
7 |
|
8 |
sys-auth/rtkit: depend on acct-{user,group}/rtkit |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
sys-auth/rtkit/rtkit-0.11-r3.ebuild | 58 +++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/sys-auth/rtkit/rtkit-0.11-r3.ebuild b/sys-auth/rtkit/rtkit-0.11-r3.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..72a36d770d0 |
19 |
--- /dev/null |
20 |
+++ b/sys-auth/rtkit/rtkit-0.11-r3.ebuild |
21 |
@@ -0,0 +1,58 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit eutils systemd autotools linux-info |
28 |
+ |
29 |
+DESCRIPTION="Realtime Policy and Watchdog Daemon" |
30 |
+HOMEPAGE="http://0pointer.de/blog/projects/rtkit" |
31 |
+SRC_URI="http://0pointer.de/public/${P}.tar.xz" |
32 |
+ |
33 |
+LICENSE="GPL-3 BSD" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" |
36 |
+IUSE="" |
37 |
+ |
38 |
+RDEPEND="acct-group/rtkit |
39 |
+ acct-user/rtkit |
40 |
+ sys-apps/dbus |
41 |
+ sys-auth/polkit |
42 |
+ sys-libs/libcap |
43 |
+" |
44 |
+DEPEND="${RDEPEND}" |
45 |
+ |
46 |
+PATCHES=( |
47 |
+ # Fedora patches |
48 |
+ "${FILESDIR}/${P}-polkit.patch" |
49 |
+ "${FILESDIR}/${P}-gettime.patch" |
50 |
+ "${FILESDIR}/${P}-controlgroup.patch" |
51 |
+) |
52 |
+ |
53 |
+pkg_pretend() { |
54 |
+ if use kernel_linux; then |
55 |
+ CONFIG_CHECK="~!RT_GROUP_SCHED" |
56 |
+ ERROR_RT_GROUP_SCHED="CONFIG_RT_GROUP_SCHED is enabled. rtkit-daemon (or any other " |
57 |
+ ERROR_RT_GROUP_SCHED+="real-time task) will not work unless run as root. Please consider " |
58 |
+ ERROR_RT_GROUP_SCHED+="unsetting this option." |
59 |
+ check_extra_config |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ eautoreconf |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ econf \ |
70 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ default |
75 |
+ |
76 |
+ ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml |
77 |
+ insinto /usr/share/dbus-1/interfaces |
78 |
+ doins org.freedesktop.RealtimeKit1.xml |
79 |
+} |