diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2014-04-14 01:46:17 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2014-04-14 01:46:17 +0000 |
commit | 3a9a6d81c46b0377289e8279a2702e768f778346 (patch) | |
tree | f036869983b8a469dda70e7f50d1a51e6dfd796d /sys-auth/rtkit | |
parent | Bump for infra-kernel-source, fix hppa keyword. (diff) | |
download | historical-3a9a6d81c46b0377289e8279a2702e768f778346.tar.gz historical-3a9a6d81c46b0377289e8279a2702e768f778346.tar.bz2 historical-3a9a6d81c46b0377289e8279a2702e768f778346.zip |
Version bump.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Diffstat (limited to 'sys-auth/rtkit')
-rw-r--r-- | sys-auth/rtkit/ChangeLog | 10 | ||||
-rw-r--r-- | sys-auth/rtkit/Manifest | 16 | ||||
-rw-r--r-- | sys-auth/rtkit/files/rtkit-0.11-gettime.patch | 21 | ||||
-rw-r--r-- | sys-auth/rtkit/files/rtkit-0.11-polkit.patch | 36 | ||||
-rw-r--r-- | sys-auth/rtkit/rtkit-0.11.ebuild | 51 |
5 files changed, 121 insertions, 13 deletions
diff --git a/sys-auth/rtkit/ChangeLog b/sys-auth/rtkit/ChangeLog index 7874756831d2..7377c7c4ee32 100644 --- a/sys-auth/rtkit/ChangeLog +++ b/sys-auth/rtkit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-auth/rtkit -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/rtkit/ChangeLog,v 1.28 2013/12/23 16:12:58 pacho Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/rtkit/ChangeLog,v 1.29 2014/04/14 01:46:13 mrueg Exp $ + +*rtkit-0.11 (14 Apr 2014) + + 14 Apr 2014; Manuel Rüger <mrueg@gentoo.org> +files/rtkit-0.11-gettime.patch, + +files/rtkit-0.11-polkit.patch, +rtkit-0.11.ebuild: + Version bump. 23 Dec 2013; Pacho Ramos <pacho@gentoo.org> -rtkit-0.6.ebuild, -rtkit-0.7.ebuild, -rtkit-0.9-r1.ebuild, metadata.xml: diff --git a/sys-auth/rtkit/Manifest b/sys-auth/rtkit/Manifest index cdd2bfcbcb64..12e14d42f9a1 100644 --- a/sys-auth/rtkit/Manifest +++ b/sys-auth/rtkit/Manifest @@ -1,14 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - +AUX rtkit-0.11-gettime.patch 744 SHA256 8e7f796228f334544544bf0bbd5db6095682a3776c5dbfd4a9a7565e866c6cd6 SHA512 b9207e1be512689e3896587105d135ab686d4eb1dd8c2e0feb62ca73eed2a8e1e473826e82b06bf240f26c64975b9793cd407cf6493a8f7eb6946da17198059c WHIRLPOOL d236a0695b2b1288e861be5a60ebc26af99d48727b05fb409ea3a49459d1dc5be0220f8c2335f3d7ead64e278bda36925d44ae23108dc72c8d81d39f374dee7f +AUX rtkit-0.11-polkit.patch 2074 SHA256 80f33894e4eb2130460d7160f1a309c3497a235a3ec6f9e5d088b00cb1667b11 SHA512 cc4cb9879235398f828c16951e380e0456c9e5bbd5acc2a0968153c5ce361fd1aceeeeac8ab873c21c0556c5d4677cdad8ed9e23dd3b9b5a8a73cf9264ee5a4b WHIRLPOOL 1a5170423876ccc178c99a959212a5a352d7fa92bae0c1e3e9f6bae6f5603cc6c6013bba681eb7d09fc1d825aea550417706cacef6499c9caac21c15e128caff DIST rtkit-0.10.tar.gz 160528 SHA256 74ea93ac09d9d5a7cb85bf57ec92090311c9fb105a41bdd633adcf3b94472120 SHA512 bf5456f168dc1241b133e417c50fc10adfb40e246cf3c186bb07cd090486798cfda190183ba6b74e6e4cb096cd99b98f76373ed7959694836c558d1d7202cf40 WHIRLPOOL bd4e33e945df570a206c11af35ffc951772e5bd37e86ffef68510d27fd7245093d46d4218e6dd71cb8d5d2873ad37a261d03d55338c352fe5e195a4a582cb646 +DIST rtkit-0.11.tar.xz 126748 SHA256 68859108cff6410901502b58365eb7607da37110a06b837762f771735f58acd0 SHA512 4641af965dc64c0f498ae469fbee1ceb337204fa7d778fbbb41f2b5c5e88947e633c7e9ad037274fdd778c3c097a4a1dbb0b2add287d74eccbcd2d357cb2da22 WHIRLPOOL 7036f2811aeef28dd7680f24fcf16e2cf8708937d86a0dfcd1411fcae469be3fe673b12dc640f9cda9be951ab2879f2b7ec2374577e7a0b532c59d8abde176b5 EBUILD rtkit-0.10.ebuild 1136 SHA256 0a6a8153a2d2d0d9b8d4391553905d08f958a9b22be4f0f03581c0364a6de7ba SHA512 813f0bc1be6fa3548a8345e0b12d1063d5a59b8396052b3048b9efab4dd13bbb640190efdb63da4885f0df0f1c03bc4f068e4a602007070d4e644b13e54254d9 WHIRLPOOL 5eedd583107fa5b1a2a0560f11f4dd987a4e0f8ecf20b5299ff1d273518a530ddb56ef35b8348dd91f6992d39170424fd2526b4b159a58a9b37ce2ca17a475ec -MISC ChangeLog 3860 SHA256 2a66999d073f4cb940a4630d3b2acc308c2669e5e54809cb9e15f38ee58e15ee SHA512 80f3c8c13da3f027622aef8fd42c1e1b362f1334ba93a4fc3c58db69a81c9f3cbaca784b20f1b6b6ab5bcd72e02f57dae1ab250b6baa82405c674268ba3b19ed WHIRLPOOL 66657b2218d3300ab6fcb9e7606797d19302a39831dc44961ce3f8d6d8c0595a223e22cca75035155f60a7ed61f7e8d9f0604eb69fd9281b071751da181c3f08 +EBUILD rtkit-0.11.ebuild 1262 SHA256 6aba3fdd20e983dadd111ecde08bf28a4e8a0b7e2b6d4c7a817e339b2a75f477 SHA512 e961218809ff7a5f1c70210c5fad63efaa7d6f832d7a691a1b7d2fb0913d11038c391a58a18a3be7f8476c12130f8c599a259d8e14706bafc04cbf97c13512d6 WHIRLPOOL 98cde2db20504dac6ff80cd42e9665c7573f2466621bc410811c8dfb4d5dfd03770d557673d58cb13a2acdd15944ea36e9ce1e780311bbe321028f3547e86d95 +MISC ChangeLog 4039 SHA256 17bdc82b62b54d7ac3b87eb37797b6527b02de288e830bd0c71c1bd96a14e9c8 SHA512 a9b3602f9049936833bb5664caa60a9fbfd506877200ec8370a839c95efbb025b518de596f562fa5d36f3b2cd562949c7fbb6b87e32ef735728b5d0ba2718cdf WHIRLPOOL 1fac7767645b6509da49cc4d8e8ec6198d10c3249117c3b4cfbacdfcb475b3bbd0f1d74694d575d276dc21f19e54c861606d2ebeab3d7ce81cdf4490e59e1bde MISC metadata.xml 436 SHA256 e8431c18723d59b5ec2f4a10742ece084b391903fa6d6825d2e2db2bdbae0e94 SHA512 70b64fff7fd07781ea481bbb79171b43ec95637d072026dc3e62b4b9ac3165a7a2a6c4e8cf20b36e9312b41115a70c07e22a6d3dda506fe1f975ea43ca62e132 WHIRLPOOL 7158d6f4e106f0a93493ca0dd4d4b3694b490a48116cc7ea962a155488ddc58dfcd658ec69100b69f6925b949275ec6e841193b6b9e2ad03e05bb17aa46a9490 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iEYEAREIAAYFAlK4YQsACgkQCaWpQKGI+9Si/QCggulbCcvDADkQuty0mrOLFgvu -YYgAn3/PMsERr4MYVMQpiHE4O1MSsDKD -=xTzS ------END PGP SIGNATURE----- diff --git a/sys-auth/rtkit/files/rtkit-0.11-gettime.patch b/sys-auth/rtkit/files/rtkit-0.11-gettime.patch new file mode 100644 index 000000000000..43732081386e --- /dev/null +++ b/sys-auth/rtkit/files/rtkit-0.11-gettime.patch @@ -0,0 +1,21 @@ +From: Lennart Poettering <lennart@poettering.net> +Date: Thu, 26 Sep 2013 19:52:58 +0000 (+0200) +Subject: build-sys: since clock_gettime() moved to libc use mq_open to check for librt +X-Git-Url: http://git.0pointer.de/?p=rtkit.git;a=commitdiff_plain;h=d550837387e4185ebcde1023702580e35eb441e7 + +build-sys: since clock_gettime() moved to libc use mq_open to check for librt +--- + +diff --git a/configure.ac b/configure.ac +index 5a77363..62c17f5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -111,7 +111,7 @@ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CC="$PTHREAD_CC" + + AC_SEARCH_LIBS([sched_setscheduler], [rt]) +-AC_SEARCH_LIBS([clock_gettime], [rt]) ++AC_SEARCH_LIBS([mq_open], [rt]) + AC_SEARCH_LIBS([cap_init], [cap]) + + PKG_CHECK_MODULES(DBUS, dbus-1) diff --git a/sys-auth/rtkit/files/rtkit-0.11-polkit.patch b/sys-auth/rtkit/files/rtkit-0.11-polkit.patch new file mode 100644 index 000000000000..ad489c466184 --- /dev/null +++ b/sys-auth/rtkit/files/rtkit-0.11-polkit.patch @@ -0,0 +1,36 @@ +X-Git-Url: http://git.0pointer.de/?p=rtkit.git;a=blobdiff_plain;f=rtkit-daemon.c;h=3ecc1f7840a0d9bdd3af7f08933c4a62546094eb;hp=2ebe673309315f16bc2bc2e0c51a556fb215bc51;hb=88d4082ef6caf6b071d749dca1c50e7edde914cc;hpb=e86e04865ebc1a92c8fa3007843ebcf9c8fa4c05 + +diff --git a/rtkit-daemon.c b/rtkit-daemon.c +index 2ebe673..3ecc1f7 100644 +--- a/rtkit-daemon.c ++++ b/rtkit-daemon.c +@@ -1170,12 +1170,14 @@ static int verify_polkit(DBusConnection *c, struct rtkit_user *u, struct process + DBusMessage *m = NULL, *r = NULL; + const char *unix_process = "unix-process"; + const char *pid = "pid"; ++ const char *uid = "uid"; + const char *start_time = "start-time"; + const char *cancel_id = ""; + uint32_t flags = 0; + uint32_t pid_u32 = p->pid; +- uint64_t start_time_u64 = p->starttime; ++ uint32_t uid_u32 = (uint32_t)u->uid; + DBusMessageIter iter_msg, iter_struct, iter_array, iter_dict, iter_variant; ++ uint64_t start_time_u64 = p->starttime; + int ret; + dbus_bool_t authorized = FALSE; + +@@ -1206,6 +1208,13 @@ static int verify_polkit(DBusConnection *c, struct rtkit_user *u, struct process + assert_se(dbus_message_iter_close_container(&iter_dict, &iter_variant)); + assert_se(dbus_message_iter_close_container(&iter_array, &iter_dict)); + ++ assert_se(dbus_message_iter_open_container(&iter_array, DBUS_TYPE_DICT_ENTRY, NULL, &iter_dict)); ++ assert_se(dbus_message_iter_append_basic(&iter_dict, DBUS_TYPE_STRING, &uid)); ++ assert_se(dbus_message_iter_open_container(&iter_dict, DBUS_TYPE_VARIANT, "u", &iter_variant)); ++ assert_se(dbus_message_iter_append_basic(&iter_variant, DBUS_TYPE_UINT32, &uid_u32)); ++ assert_se(dbus_message_iter_close_container(&iter_dict, &iter_variant)); ++ assert_se(dbus_message_iter_close_container(&iter_array, &iter_dict)); ++ + assert_se(dbus_message_iter_close_container(&iter_struct, &iter_array)); + assert_se(dbus_message_iter_close_container(&iter_msg, &iter_struct)); + diff --git a/sys-auth/rtkit/rtkit-0.11.ebuild b/sys-auth/rtkit/rtkit-0.11.ebuild new file mode 100644 index 000000000000..a1dc586d924a --- /dev/null +++ b/sys-auth/rtkit/rtkit-0.11.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/rtkit/rtkit-0.11.ebuild,v 1.1 2014/04/14 01:46:13 mrueg Exp $ + +EAPI=5 + +inherit eutils systemd user autotools + +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 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="sys-apps/dbus + sys-auth/polkit + sys-libs/libcap" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup rtkit + enewuser rtkit -1 -1 -1 "rtkit" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-polkit.patch \ + "${FILESDIR}"/${P}-gettime.patch + eautoreconf +} +src_configure() { + econf $(systemd_with_unitdir) +} + +src_install() { + emake DESTDIR="${D}" install + + ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml + insinto /usr/share/dbus-1/interfaces + doins org.freedesktop.RealtimeKit1.xml +} + +pkg_postinst () { + einfo "To start using RealtimeKit, you need to ensure that the 'dbus'" + einfo "service is running. If it is already running, you need to reload it" + einfo "with the following command:" + einfo "" + einfo " /etc/init.d/dbus reload" +} |