From 8c36410a24fbf6c50df189df3e6d2a5e6fb08014 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Wed, 15 Mar 2017 16:26:15 -0500 Subject: Removing desktop-privileges --- pcr/desktop-privileges/10-cpufreqselector.rules | 5 ---- pcr/desktop-privileges/10-udisks.rules | 5 ---- pcr/desktop-privileges/10-udisks2.rules | 5 ---- pcr/desktop-privileges/10-upower.rules | 6 ----- pcr/desktop-privileges/PKGBUILD | 34 ------------------------- 5 files changed, 55 deletions(-) delete mode 100644 pcr/desktop-privileges/10-cpufreqselector.rules delete mode 100644 pcr/desktop-privileges/10-udisks.rules delete mode 100644 pcr/desktop-privileges/10-udisks2.rules delete mode 100644 pcr/desktop-privileges/10-upower.rules delete mode 100644 pcr/desktop-privileges/PKGBUILD (limited to 'pcr/desktop-privileges') diff --git a/pcr/desktop-privileges/10-cpufreqselector.rules b/pcr/desktop-privileges/10-cpufreqselector.rules deleted file mode 100644 index b17ab2aa6..000000000 --- a/pcr/desktop-privileges/10-cpufreqselector.rules +++ /dev/null @@ -1,5 +0,0 @@ -polkit.addRule(function(action, subject) { - if (action.id == "org.gnome.cpufreqselector" && subject.isInGroup("power")) { - return polkit.Result.YES; - } -}); diff --git a/pcr/desktop-privileges/10-udisks.rules b/pcr/desktop-privileges/10-udisks.rules deleted file mode 100644 index 4fef5f496..000000000 --- a/pcr/desktop-privileges/10-udisks.rules +++ /dev/null @@ -1,5 +0,0 @@ -polkit.addRule(function(action, subject) { -if (action.id.indexOf("org.freedesktop.udisks.") == 0 && subject.isInGroup("storage")) { - return polkit.Result.YES; - } -}); diff --git a/pcr/desktop-privileges/10-udisks2.rules b/pcr/desktop-privileges/10-udisks2.rules deleted file mode 100644 index af1e1a122..000000000 --- a/pcr/desktop-privileges/10-udisks2.rules +++ /dev/null @@ -1,5 +0,0 @@ -polkit.addRule(function(action, subject) { - if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) { - return polkit.Result.YES; - } -}); diff --git a/pcr/desktop-privileges/10-upower.rules b/pcr/desktop-privileges/10-upower.rules deleted file mode 100644 index af91947ef..000000000 --- a/pcr/desktop-privileges/10-upower.rules +++ /dev/null @@ -1,6 +0,0 @@ -polkit.addRule(function(action, subject) { - if (action.id == "org.freedesktop.upower.hibernate" || - action.id == "org.freedesktop.upower.suspend") { - return polkit.Result.YES; - } -}); diff --git a/pcr/desktop-privileges/PKGBUILD b/pcr/desktop-privileges/PKGBUILD deleted file mode 100644 index d2bf5660b..000000000 --- a/pcr/desktop-privileges/PKGBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# Contributor (Arch): Ulf WInkelvos -# Former Maintainer (Arch): anonymous_user <31337h4ck3r at gmail dot com> -# Former Maintainer (Arch): 3V0LU710N -# Maintainer (Arch): nous at archlinux.us -# Maintainer: Omar Vega Ramos - -pkgname=desktop-privileges -pkgver=0.5 -pkgrel=2.parabola1 -pkgdesc="A collection of polkit rules to manage automounting of removable media, suspend and hibernate actions and CPU frequency settings." -arch=('any') -url="https://aur.archlinux.org/packages/desktop-privileges/" -license=('GPL') -groups=('openrc-desktop') -depends=('polkit-consolekit' 'udisks2' 'upower' 'pm-utils') -optdepends=('mate-power-manager-upower') -conflicts=('polkit-automount-upower-rules') -replaces=('polkit-automount-upower-rules') -source=('10-cpufreqselector.rules' '10-udisks.rules' '10-udisks2.rules' '10-upower.rules') - -build() { -true -} - -package() { - install -dm755 "${pkgdir}/etc/polkit-1/" - install -dm700 "${pkgdir}/etc/polkit-1/rules.d/" - install -Dm644 *.rules ${pkgdir}/etc/polkit-1/rules.d/ -} - -sha256sums=('681d85042aa06197e00aa54a47d0331f9c8675fdc555321b611a6ec3ab0eb73f' - '002ec5fd0592bb9a25321ed4836913cdaa818d3322212bd7d0f315509bda7b62' - 'f3f8cb03c13a84cacbc8f1e4517253a009d96335eb648a1253676dac75466766' - '805cadc921bce8b11f1f6e170428a7d30fc9377f143df1ff4b0efe0e625a96bf') -- cgit v1.2.3