summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Henson2018-11-27 06:50:12 -0700
committerJeff Henson2018-11-27 06:50:12 -0700
commit17948565e8b21d85180cd87a68fdccbb4a1b5986 (patch)
tree9f4494fb32df91eeac14a27df9f8cf18179bc412
parent9bf478d89266d128f9cb55ba268af2ec37090444 (diff)
downloadaur-17948565e8b21d85180cd87a68fdccbb4a1b5986.tar.gz
Allow users in the power group to use pwrstat
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD5
-rw-r--r--pwrstatd.service2
3 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7747ef279b5..cfce8a0ec89 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = powerpanel
pkgdesc = CyberPower UPS daemon
pkgver = 1.3.2
- pkgrel = 5
+ pkgrel = 6
url = https://www.cyberpowersystems.com/product/software/powerpanel-for-linux/
arch = x86_64
arch = i686
@@ -13,7 +13,8 @@ pkgbase = powerpanel
backup = etc/pwrstatd.conf
source = pwrstatd.service
source = https://dl4jz3rbrsfum.cloudfront.net/software/powerpanel-132-x86_64.tar.gz
- sha256sums = 2bcf5ba2c5d8c9ab886b6a5aba06f0da1630fabb440621860b2da221fcf9eb34
+ sha256sums = 255e5958346daa9d7c0e96ae3d86095afd3b3ec99880205d15d51b8f20a602df
+ sha256sums = 265099590e82303fa1082a84dda02488d41762ca5b94f2bb7fd395c9b4ac1c36
sha256sums = 265099590e82303fa1082a84dda02488d41762ca5b94f2bb7fd395c9b4ac1c36
pkgname = powerpanel
diff --git a/PKGBUILD b/PKGBUILD
index ea557d6f58e..d34bdf95406 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=powerpanel
pkgver=1.3.2
_pkgverdl=132
-pkgrel=5
+pkgrel=6
pkgdesc="CyberPower UPS daemon"
arch=("x86_64" "i686")
url="https://www.cyberpowersystems.com/product/software/powerpanel-for-linux/"
@@ -13,7 +13,8 @@ backup=(etc/powerpanel/pwrstatd-{powerfail,lowbatt,email}.sh
etc/pwrstatd.conf)
source=('pwrstatd.service')
-sha256sums=('2bcf5ba2c5d8c9ab886b6a5aba06f0da1630fabb440621860b2da221fcf9eb34')
+sha256sums=('255e5958346daa9d7c0e96ae3d86095afd3b3ec99880205d15d51b8f20a602df'
+ '265099590e82303fa1082a84dda02488d41762ca5b94f2bb7fd395c9b4ac1c36')
if [[ $CARCH = 'x86_64' ]]; then
source+=("https://dl4jz3rbrsfum.cloudfront.net/software/powerpanel-$_pkgverdl-x86_64.tar.gz")
diff --git a/pwrstatd.service b/pwrstatd.service
index 9a1160ca5a5..222f4e5943d 100644
--- a/pwrstatd.service
+++ b/pwrstatd.service
@@ -2,6 +2,8 @@
Description=PowerPanel for Linux software can be used with most CyberPower UPS products.
[Service]
+Group=power
+UMask=0002
ExecStart=/usr/bin/pwrstatd
[Install]