Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/rtkit/
Date: Wed, 30 Mar 2016 15:47:12
Message-Id: 1459352813.9801ab39cd246510f2bd167021d6f6517dfdce91.idella4@gentoo
1 commit: 9801ab39cd246510f2bd167021d6f6517dfdce91
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 15:46:20 2016 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 15:46:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9801ab39
7
8 sys-auth/rtkit: revbump to vn. 0.11-r2 required to effect all changes
9
10 inherits eclass linux-info, bump to EAPI 6, phase pkg_pretend added to offer
11 to users kernel configuration options. Patch supplied by the proxy maintainer via
12
13 Gentoo-bug #569546
14
15 Package-Manager: portage-2.2.28
16
17 sys-auth/rtkit/rtkit-0.11-r2.ebuild | 59 +++++++++++++++++++++++++++++++++++++
18 1 file changed, 59 insertions(+)
19
20 diff --git a/sys-auth/rtkit/rtkit-0.11-r2.ebuild b/sys-auth/rtkit/rtkit-0.11-r2.ebuild
21 new file mode 100644
22 index 0000000..baed267
23 --- /dev/null
24 +++ b/sys-auth/rtkit/rtkit-0.11-r2.ebuild
25 @@ -0,0 +1,59 @@
26 +# Copyright 1999-2015 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=6
31 +inherit eutils systemd user autotools linux-info
32 +
33 +DESCRIPTION="Realtime Policy and Watchdog Daemon"
34 +HOMEPAGE="http://0pointer.de/blog/projects/rtkit"
35 +SRC_URI="http://0pointer.de/public/${P}.tar.xz"
36 +
37 +LICENSE="GPL-3 BSD"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
40 +IUSE=""
41 +
42 +RDEPEND="
43 + sys-apps/dbus
44 + sys-auth/polkit
45 + sys-libs/libcap
46 +"
47 +DEPEND="${DEPEND}
48 + app-arch/xz-utils
49 +"
50 +
51 +pkg_pretend() {
52 + if use kernel_linux; then
53 + CONFIG_CHECK="~!RT_GROUP_SCHED"
54 + ERROR_RT_GROUP_SCHED="CONFIG_RT_GROUP_SCHED is enabled. rtkit-daemon (or any other "
55 + ERROR_RT_GROUP_SCHED+="real-time task) will not work unless run as root. Please consider "
56 + ERROR_RT_GROUP_SCHED+="unsetting this option."
57 + check_extra_config
58 + fi
59 +}
60 +
61 +pkg_setup() {
62 + enewgroup rtkit
63 + enewuser rtkit -1 -1 -1 "rtkit"
64 +}
65 +
66 +src_prepare() {
67 + # Fedora patches
68 + epatch "${FILESDIR}"/${P}-polkit.patch
69 + epatch "${FILESDIR}"/${P}-gettime.patch
70 + epatch "${FILESDIR}"/${P}-controlgroup.patch
71 + eautoreconf
72 +}
73 +
74 +src_configure() {
75 + econf $(systemd_with_unitdir)
76 +}
77 +
78 +src_install() {
79 + default
80 +
81 + ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
82 + insinto /usr/share/dbus-1/interfaces
83 + doins org.freedesktop.RealtimeKit1.xml
84 +}