diff options
Diffstat (limited to 'sys-auth/rtkit')
-rw-r--r-- | sys-auth/rtkit/Manifest | 1 | ||||
-rw-r--r-- | sys-auth/rtkit/rtkit-0.11-r3.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/sys-auth/rtkit/Manifest b/sys-auth/rtkit/Manifest index 88f30ff0eb05..342d682b74f4 100644 --- a/sys-auth/rtkit/Manifest +++ b/sys-auth/rtkit/Manifest @@ -3,4 +3,5 @@ AUX rtkit-0.11-gettime.patch 744 BLAKE2B a32bf8db977a473a005d0890b7b6064c0ef8769 AUX rtkit-0.11-polkit.patch 2074 BLAKE2B 4530c423c62b1fae601a16271e8de829d9ee5e1b4f147867694de707ae24965ef4aa6864f3981ee0c4084e6652dcd418d651920887509eee2d3c8a4ae3d68d59 SHA512 cc4cb9879235398f828c16951e380e0456c9e5bbd5acc2a0968153c5ce361fd1aceeeeac8ab873c21c0556c5d4677cdad8ed9e23dd3b9b5a8a73cf9264ee5a4b DIST rtkit-0.11.tar.xz 126748 BLAKE2B e989f1fb9e33c2e06d7eedbe0aab45982d458b6a80aa8ba9b05ae94ed048ef1351d30f8800859a08d8bb0a53891e7b63f6bda6308b4521da10a61182ca3921f9 SHA512 4641af965dc64c0f498ae469fbee1ceb337204fa7d778fbbb41f2b5c5e88947e633c7e9ad037274fdd778c3c097a4a1dbb0b2add287d74eccbcd2d357cb2da22 EBUILD rtkit-0.11-r2.ebuild 1338 BLAKE2B eec42b55a4d0f07380f0d626053463802ef80fb5f8d0c04e4184ee00a0d31c251597af6e48bcc9ae0a28bdf44f82d32bcd5705e58806fb850d5414475c3bd366 SHA512 a7af08b5dab705c0fd6ab88e1fae184c80d887d46dd014ae19b44e38de9b9a67e236f5e48a8234d0aa55b89fbbb643d178dd81fbfff6ac696f28c33481a10385 +EBUILD rtkit-0.11-r3.ebuild 1310 BLAKE2B b0585f3ae0bd3e97c9bfceafb2c7c810b7c46bed817c5299f67aede9829d48e5a84e5ebbbc692c3fbccbca4353380370d939faa8aff825b0ae780333d3186443 SHA512 f3ce1dd1ce258f270fb3971ceb2dc23571dff7ad8f8fd4a92d8cae150835c599ad58eaa65c7ce5cf2e39fab0958e7c0a6e02545a015cee08cc950a5bbbfc87b2 MISC metadata.xml 455 BLAKE2B cc63fbcf541ef442091a8bd3f8b2da07f629b71778b0ece05a18617088de554f6f8ffdc1d4aeed4a73bb957c88b470fcec52781704800575b364a3d2164b3914 SHA512 90bde656e242fe6cd7b408671f419ee54f73a781b67ee9047c8cd06d7fb29fee2882aed7ab95b42f22fdb65570f389e04931f8fa24506307b1bc8387c213850e diff --git a/sys-auth/rtkit/rtkit-0.11-r3.ebuild b/sys-auth/rtkit/rtkit-0.11-r3.ebuild new file mode 100644 index 000000000000..72a36d770d01 --- /dev/null +++ b/sys-auth/rtkit/rtkit-0.11-r3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils systemd autotools linux-info + +DESCRIPTION="Realtime Policy and Watchdog Daemon" +HOMEPAGE="http://0pointer.de/blog/projects/rtkit" +SRC_URI="http://0pointer.de/public/${P}.tar.xz" + +LICENSE="GPL-3 BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" + +RDEPEND="acct-group/rtkit + acct-user/rtkit + sys-apps/dbus + sys-auth/polkit + sys-libs/libcap +" +DEPEND="${RDEPEND}" + +PATCHES=( + # Fedora patches + "${FILESDIR}/${P}-polkit.patch" + "${FILESDIR}/${P}-gettime.patch" + "${FILESDIR}/${P}-controlgroup.patch" +) + +pkg_pretend() { + if use kernel_linux; then + CONFIG_CHECK="~!RT_GROUP_SCHED" + ERROR_RT_GROUP_SCHED="CONFIG_RT_GROUP_SCHED is enabled. rtkit-daemon (or any other " + ERROR_RT_GROUP_SCHED+="real-time task) will not work unless run as root. Please consider " + ERROR_RT_GROUP_SCHED+="unsetting this option." + check_extra_config + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" +} + +src_install() { + default + + ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml + insinto /usr/share/dbus-1/interfaces + doins org.freedesktop.RealtimeKit1.xml +} |