summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-15 17:54:04 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-15 17:54:04 +0100
commit83867871b78c0a25c6e7c90ff8bece10afce3b93 (patch)
tree6da872da1f65a18fc386fe8170d34efe64d799cf
parent97f2aff61729557c98c72439432242c30e3d0a6b (diff)
add policykit rule
-rw-r--r--sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy22
-rw-r--r--sys-boot/unetbootin-static/unetbootin-static-625.ebuild2
2 files changed, 24 insertions, 0 deletions
diff --git a/sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy b/sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy
new file mode 100644
index 00000000..9130ed94
--- /dev/null
+++ b/sys-boot/unetbootin-static/files/ro.kogaion.unetbootin-static.policy
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+<policyconfig>
+
+ <vendor>Kogaion</vendor>
+ <vendor_url>http://rogentos.ro</vendor_url>
+
+ <action id="ro.kogaion.sisyphus.pkexec.run">
+ <description>Run Sisyphus</description>
+ <message>Authentication is required to run Unetbootin</message>
+ <icon_name>drive-harddisk</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/unetbootin-static-625</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>
diff --git a/sys-boot/unetbootin-static/unetbootin-static-625.ebuild b/sys-boot/unetbootin-static/unetbootin-static-625.ebuild
index 5e0e6e82..067dcaaf 100644
--- a/sys-boot/unetbootin-static/unetbootin-static-625.ebuild
+++ b/sys-boot/unetbootin-static/unetbootin-static-625.ebuild
@@ -25,4 +25,6 @@ src_install() {
dodir /usr/share/applications
insinto /usr/share/applications
doins ${FILESDIR}/${PN}.desktop
+ dodir /usr/share/polkit-1/actions
+ doins ${FILESDIR}/ro.kogaion.${PN}.policy
}