diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-09-12 11:57:26 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-09-12 11:57:26 +0000 |
commit | 86cf986dc299baf5fb0219d91074af3604d75348 (patch) | |
tree | 8d78733cc217f7dd46a53b88a0ed55e466f75906 /app-admin/gksu-polkit | |
parent | Dev channel bump. Remove old. (diff) | |
download | gentoo-2-86cf986dc299baf5fb0219d91074af3604d75348.tar.gz gentoo-2-86cf986dc299baf5fb0219d91074af3604d75348.tar.bz2 gentoo-2-86cf986dc299baf5fb0219d91074af3604d75348.zip |
Add a new ebuild for a polkit-based replacement for x11-libs/gksu.
(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/gksu-polkit')
-rw-r--r-- | app-admin/gksu-polkit/ChangeLog | 11 | ||||
-rw-r--r-- | app-admin/gksu-polkit/files/gksu-polkit-0.0.3-auth_admin.patch | 33 | ||||
-rw-r--r-- | app-admin/gksu-polkit/files/gksu-polkit-0.0.3-gksupkcommon-libs.patch | 26 | ||||
-rw-r--r-- | app-admin/gksu-polkit/gksu-polkit-0.0.3.ebuild | 45 | ||||
-rw-r--r-- | app-admin/gksu-polkit/metadata.xml | 5 |
5 files changed, 120 insertions, 0 deletions
diff --git a/app-admin/gksu-polkit/ChangeLog b/app-admin/gksu-polkit/ChangeLog new file mode 100644 index 000000000000..39f3e72669cd --- /dev/null +++ b/app-admin/gksu-polkit/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-admin/gksu-polkit +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/gksu-polkit/ChangeLog,v 1.1 2012/09/12 11:57:26 tetromino Exp $ + +*gksu-polkit-0.0.3 (12 Sep 2012) + + 12 Sep 2012; Alexandre Rostovtsev <tetromino@gentoo.org> + +gksu-polkit-0.0.3.ebuild, +files/gksu-polkit-0.0.3-auth_admin.patch, + +files/gksu-polkit-0.0.3-gksupkcommon-libs.patch, +metadata.xml: + Add a new ebuild for a polkit-based replacement for x11-libs/gksu. + diff --git a/app-admin/gksu-polkit/files/gksu-polkit-0.0.3-auth_admin.patch b/app-admin/gksu-polkit/files/gksu-polkit-0.0.3-auth_admin.patch new file mode 100644 index 000000000000..f219747a5941 --- /dev/null +++ b/app-admin/gksu-polkit/files/gksu-polkit-0.0.3-auth_admin.patch @@ -0,0 +1,33 @@ +From a201686e3f03c6eade379f4ac9b4ce8b4a79aa5e Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Wed, 12 Sep 2012 07:03:27 -0400 +Subject: [PATCH] Use auth_admin, not auth_self + +To execute a program as root, the user needs to authenticate himself as +an administrator. Allowing any non-administrative user to run any +program as root just by entering his own password is completely +unacceptable on shared machines. +--- + data/org.gnome.gksu.policy | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/data/org.gnome.gksu.policy b/data/org.gnome.gksu.policy +index ff0e418..ec8e463 100644 +--- a/data/org.gnome.gksu.policy ++++ b/data/org.gnome.gksu.policy +@@ -10,9 +10,9 @@ + <description>spawn</description> + <message>System policy prevents executing a program with administration privileges</message> + <defaults> +- <allow_any>auth_self</allow_any> +- <allow_inactive>auth_self</allow_inactive> +- <allow_active>auth_self</allow_active> ++ <allow_any>auth_admin</allow_any> ++ <allow_inactive>auth_admin</allow_inactive> ++ <allow_active>auth_admin</allow_active> + </defaults> + </action> + +-- +1.7.12 + diff --git a/app-admin/gksu-polkit/files/gksu-polkit-0.0.3-gksupkcommon-libs.patch b/app-admin/gksu-polkit/files/gksu-polkit-0.0.3-gksupkcommon-libs.patch new file mode 100644 index 000000000000..b2d18b77cb4e --- /dev/null +++ b/app-admin/gksu-polkit/files/gksu-polkit-0.0.3-gksupkcommon-libs.patch @@ -0,0 +1,26 @@ +From be6dae6b928cf501507f16d65df8f4018723ce06 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Wed, 12 Sep 2012 07:40:40 -0400 +Subject: [PATCH] common/Makefile.am: fix libgksu_polkit_common_la_LDFLAGS + +This prevents a linking error in libgksu-polkit-common.la +--- + common/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/common/Makefile.am b/common/Makefile.am +index 208389f..1d31be9 100644 +--- a/common/Makefile.am ++++ b/common/Makefile.am +@@ -31,7 +31,7 @@ libgksu_polkit_common_la_SOURCES = \ + gksu-marshal.c \ + gksu-marshal.h + +-libgksu_polkit_common_la_LDFLAGS = ${GKSUPKLIB_CFLAGS} ++libgksu_polkit_common_la_LDFLAGS = ${GKSUPKCOMMON_LIBS} + + BUILT_SOURCES = \ + gksu-environment.c \ +-- +1.7.12 + diff --git a/app-admin/gksu-polkit/gksu-polkit-0.0.3.ebuild b/app-admin/gksu-polkit/gksu-polkit-0.0.3.ebuild new file mode 100644 index 000000000000..e09e850f0b1c --- /dev/null +++ b/app-admin/gksu-polkit/gksu-polkit-0.0.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/gksu-polkit/gksu-polkit-0.0.3.ebuild,v 1.1 2012/09/12 11:57:26 tetromino Exp $ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="Polkit-based library and application for running programs as root" +HOMEPAGE="https://live.gnome.org/gksu" +SRC_URI="mirror://debian/pool/main/g/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/dbus-glib + >=dev-libs/glib-2.14:2 + >=dev-libs/libgee-0.5:0 + sys-auth/polkit + >=x11-libs/gtk+-2.14:2 + x11-libs/startup-notification" +DEPEND="${DEPEND} + dev-util/intltool + virtual/pkgconfig" + +src_prepare() { + # https://alioth.debian.org/tracker/index.php?func=detail&aid=313765&group_id=30351&atid=410861 + epatch "${FILESDIR}/${P}-auth_admin.patch" + # https://alioth.debian.org/tracker/index.php?func=detail&aid=313766&group_id=30351&atid=410861 + epatch "${FILESDIR}/${P}-gksupkcommon-libs.patch" + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + --with-dbus-sys="${EPREFIX}"/etc/dbus-1/system.d +} + +src_install() { + default + prune_libtool_files +} diff --git a/app-admin/gksu-polkit/metadata.xml b/app-admin/gksu-polkit/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/app-admin/gksu-polkit/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> |