summaryrefslogtreecommitdiff
path: root/app-misc/passwordless-upgrade
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-06-01 13:10:27 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-06-01 13:10:27 +0300
commit0482fc465e1ac247a9514c572256b2cd97731438 (patch)
tree932cf2b5be1167013123c02324038db1be754f3c /app-misc/passwordless-upgrade
parent2ac9951255deef1b3b5ddcde3cbf9ffc425c38db (diff)
added passwordless-upgrade and cleaning up skel+live
Diffstat (limited to 'app-misc/passwordless-upgrade')
-rw-r--r--app-misc/passwordless-upgrade/files/10-RigoDaemon.rules7
-rw-r--r--app-misc/passwordless-upgrade/passwordless-upgrade-1.ebuild21
2 files changed, 28 insertions, 0 deletions
diff --git a/app-misc/passwordless-upgrade/files/10-RigoDaemon.rules b/app-misc/passwordless-upgrade/files/10-RigoDaemon.rules
new file mode 100644
index 00000000..83210590
--- /dev/null
+++ b/app-misc/passwordless-upgrade/files/10-RigoDaemon.rules
@@ -0,0 +1,7 @@
+/* Allow users in the entropy group to launch system upgrades */
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.sabayon.RigoDaemon.upgrade" &&
+ subject.isInGroup("entropy")) {
+ return polkit.Result.YES;
+ }
+});
diff --git a/app-misc/passwordless-upgrade/passwordless-upgrade-1.ebuild b/app-misc/passwordless-upgrade/passwordless-upgrade-1.ebuild
new file mode 100644
index 00000000..29393bb3
--- /dev/null
+++ b/app-misc/passwordless-upgrade/passwordless-upgrade-1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="Allow users in the entropy group to run system upgrades without password"
+HOMEPAGE="http://www.rogentos.ro"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_install () {
+ dodir /usr/share/polkit-1/rules.d
+ insinto /usr/share/polkit-1/rules.d
+ doins "${FILESDIR}/10-RigoDaemon.rules"
+}