diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2008-05-15 10:26:29 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2008-05-15 10:26:29 +0000 |
commit | 2f2f61b2cad3c7d71ced1c035d0ca994da0e3ef5 (patch) | |
tree | 6878d3e8ab731ff6016f91fd73fdbbfabada47fd /app-emulation | |
parent | Bump, keyword ~amd64. (diff) | |
download | gentoo-2-2f2f61b2cad3c7d71ced1c035d0ca994da0e3ef5.tar.gz gentoo-2-2f2f61b2cad3c7d71ced1c035d0ca994da0e3ef5.tar.bz2 gentoo-2-2f2f61b2cad3c7d71ced1c035d0ca994da0e3ef5.zip |
(#208470) Bump, keyword ~amd64.
(Portage version: 2.1.5_rc10)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/virt-manager/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/virt-manager/files/virt-manager-0.5.4-polkit-root.patch | 14 | ||||
-rw-r--r-- | app-emulation/virt-manager/virt-manager-0.5.4.ebuild | 62 |
3 files changed, 83 insertions, 1 deletions
diff --git a/app-emulation/virt-manager/ChangeLog b/app-emulation/virt-manager/ChangeLog index 7990c24fb0b0..23c414f59d71 100644 --- a/app-emulation/virt-manager/ChangeLog +++ b/app-emulation/virt-manager/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/virt-manager # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/ChangeLog,v 1.6 2008/01/31 06:17:26 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/ChangeLog,v 1.7 2008/05/15 10:26:28 dberkholz Exp $ + +*virt-manager-0.5.4 (15 May 2008) + + 15 May 2008; Donnie Berkholz <dberkholz@gentoo.org>; + +files/virt-manager-0.5.4-polkit-root.patch, +virt-manager-0.5.4.ebuild: + (#208470) Bump, keyword ~amd64. 31 Jan 2008; Donnie Berkholz <dberkholz@gentoo.org>; -virt-manager-0.4.0.ebuild: diff --git a/app-emulation/virt-manager/files/virt-manager-0.5.4-polkit-root.patch b/app-emulation/virt-manager/files/virt-manager-0.5.4-polkit-root.patch new file mode 100644 index 000000000000..6d42ca25fda2 --- /dev/null +++ b/app-emulation/virt-manager/files/virt-manager-0.5.4-polkit-root.patch @@ -0,0 +1,14 @@ +diff -rup virt-manager-0.5.4.orig/src/virtManager/connection.py virt-manager-0.5.4/src/virtManager/connection.py +--- virt-manager-0.5.4.orig/src/virtManager/connection.py 2008-03-10 20:17:51.000000000 -0400 ++++ virt-manager-0.5.4/src/virtManager/connection.py 2008-03-13 13:51:14.000000000 -0400 +@@ -336,6 +336,9 @@ class vmmConnection(gobject.GObject): + self.connectThread.start() + + def _do_creds_polkit(self, action): ++ if os.getuid() == 0: ++ logging.debug("Skipping policykit check as root") ++ return 0 + logging.debug("Doing policykit for %s" % action) + bus = dbus.SessionBus() + obj = bus.get_object("org.gnome.PolicyKit", "/org/gnome/PolicyKit/Manager") +Only in virt-manager-0.5.4/src/virtManager: connection.py~ diff --git a/app-emulation/virt-manager/virt-manager-0.5.4.ebuild b/app-emulation/virt-manager/virt-manager-0.5.4.ebuild new file mode 100644 index 000000000000..07ecc4e62827 --- /dev/null +++ b/app-emulation/virt-manager/virt-manager-0.5.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/virt-manager-0.5.4.ebuild,v 1.1 2008/05/15 10:26:28 dberkholz Exp $ + +# Stop gnome2.eclass from doing stuff on USE=debug +GCONF_DEBUG="no" + +inherit eutils gnome2 + +DESCRIPTION="A graphical tool for administering virtual machines such as Xen" +HOMEPAGE="http://virt-manager.org/" +SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RDEPEND=">=dev-python/pygtk-1.99.12 + >=dev-python/gnome-python-1.99.11 + >=app-emulation/libvirt-0.4.0 + || ( dev-python/dbus-python >=sys-apps/dbus-0.61 ) + >=gnome-base/gnome-keyring-0.4.9 + >=dev-python/gnome-python-desktop-2.15 + >=dev-libs/libxml2-2.6.23 + >=app-emulation/virtinst-0.300.2 + >=gnome-base/librsvg-2 + >=x11-libs/vte-0.12.2 + sys-apps/usermode + dev-python/rhpl + >=net-libs/gtk-vnc-0.3.4" +DEPEND="${RDEPEND}" + +pkg_setup() { + if ! built_with_use --missing false sys-apps/dbus python; then + if ! has_version dev-python/dbus-python; then + local msg="You must install dbus with USE=python or dbus-python." + eerror "$msg" + die "$msg" + fi + fi + + if ! built_with_use dev-libs/libxml2 python; then + local msg="You must install libxml2 with USE=python." + eerror "$msg" + die "$msg" + fi + + if ! built_with_use x11-libs/vte python; then + local msg="You must install vte with USE=python." + eerror "$msg" + die "$msg" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/virt-manager-0.5.4-polkit-root.patch +} + +#src_install() { +# emake DESTDIR="${D}" install || die "emake install failed" +#} |