diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2014-02-24 17:36:48 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2014-02-24 17:36:48 +0000 |
commit | aa029e9b9be3e979b0442511f882e070319044ef (patch) | |
tree | 7e5600d76eff335e0e2772ad8f6d0ec0f451219f /net-misc | |
parent | Add ~mips keyword wrt bug #501346 (diff) | |
download | gentoo-2-aa029e9b9be3e979b0442511f882e070319044ef.tar.gz gentoo-2-aa029e9b9be3e979b0442511f882e070319044ef.tar.bz2 gentoo-2-aa029e9b9be3e979b0442511f882e070319044ef.zip |
Revision bump: fix PolicyKit support by adding apropriate policy file
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/dnetstats/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/dnetstats/dnetstats-1.2.6-r3.ebuild | 52 | ||||
-rw-r--r-- | net-misc/dnetstats/files/org.gentoo.pkexec.dnetstats.policy | 17 |
3 files changed, 76 insertions, 1 deletions
diff --git a/net-misc/dnetstats/ChangeLog b/net-misc/dnetstats/ChangeLog index fcbfc3c0a0ae..eb5a3cd42481 100644 --- a/net-misc/dnetstats/ChangeLog +++ b/net-misc/dnetstats/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/dnetstats # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dnetstats/ChangeLog,v 1.12 2014/02/24 02:01:21 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dnetstats/ChangeLog,v 1.13 2014/02/24 17:36:47 pinkbyte Exp $ + +*dnetstats-1.2.6-r3 (24 Feb 2014) + + 24 Feb 2014; Sergey Popov <pinkbyte@gentoo.org> +dnetstats-1.2.6-r3.ebuild, + +files/org.gentoo.pkexec.dnetstats.policy: + Revision bump: fix PolicyKit support by adding apropriate policy file 24 Feb 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> dnetstats-1.2.6-r2.ebuild: diff --git a/net-misc/dnetstats/dnetstats-1.2.6-r3.ebuild b/net-misc/dnetstats/dnetstats-1.2.6-r3.ebuild new file mode 100644 index 000000000000..9bcec6ba3d26 --- /dev/null +++ b/net-misc/dnetstats/dnetstats-1.2.6-r3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dnetstats/dnetstats-1.2.6-r3.ebuild,v 1.1 2014/02/24 17:36:47 pinkbyte Exp $ + +EAPI=5 + +inherit eutils qt4-r2 + +MY_PN="DNetStats" +MY_P="${MY_PN}-v${PV}-release" + +DESCRIPTION="Qt4 network monitor utility" +HOMEPAGE="http://qt-apps.org/content/show.php/DNetStats?content=107467" +SRC_URI="http://qt-apps.org/CONTENT/content-files/107467-${MY_P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="policykit" + +DEPEND=" + dev-qt/qtcore:4 + dev-qt/qtgui:4 +" +RDEPEND="${DEPEND} + policykit? ( sys-auth/polkit ) +" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + qt4-r2_src_prepare + + # clueless upstream ships generated files... + rm -rf moc_* qrc_* || die +} + +src_install() { + newbin mythread ${PN} + dodoc ReadMe + + newicon resource/energy.png ${PN}.png + make_desktop_entry ${PN} DNetStats ${PN} 'Qt;Network;Dialup' + + if use policykit; then + insinto /usr/share/polkit-1/actions + doins "${FILESDIR}/org.gentoo.pkexec.${PN}.policy" + sed -i -e 's/^Exec=/&pkexec /' \ + "${ED}"usr/share/applications/${PN}*.desktop \ + || die + fi +} diff --git a/net-misc/dnetstats/files/org.gentoo.pkexec.dnetstats.policy b/net-misc/dnetstats/files/org.gentoo.pkexec.dnetstats.policy new file mode 100644 index 000000000000..c910a6c3610b --- /dev/null +++ b/net-misc/dnetstats/files/org.gentoo.pkexec.dnetstats.policy @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD polkit Policy Configuration 1.0//EN" + "http://www.freedesktop.org/software/polkit/policyconfig-1.dtd"> +<policyconfig> + <vendor>Gentoo</vendor> + <vendor_url>http://www.gentoo.org/</vendor_url> + <action id="org.gentoo.pkexec.dnetstats"> + <message>Authentication is required to run the DNetStats</message> + <defaults> + <allow_any>auth_admin</allow_any> + <allow_inactive>auth_admin</allow_inactive> + <allow_active>auth_admin</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/dnetstats</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> +</policyconfig> |