power-profiles-daemon: initial commit, version 0.21
This commit is contained in:
parent
80bbc7148b
commit
deed87dc38
20
power-profiles-daemon/.footprint
Normal file
20
power-profiles-daemon/.footprint
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
drwxr-xr-x root/root usr/
|
||||||
|
drwxr-xr-x root/root usr/bin/
|
||||||
|
-rwxr-xr-x root/root usr/bin/powerprofilesctl
|
||||||
|
drwxr-xr-x root/root usr/lib/
|
||||||
|
drwxr-xr-x root/root usr/lib/power-profiles-daemon/
|
||||||
|
-rwxr-xr-x root/root usr/lib/power-profiles-daemon/power-profiles-daemon
|
||||||
|
drwxr-xr-x root/root usr/share/
|
||||||
|
drwxr-xr-x root/root usr/share/bash-completion/
|
||||||
|
drwxr-xr-x root/root usr/share/bash-completion/completions/
|
||||||
|
-rw-r--r-- root/root usr/share/bash-completion/completions/powerprofilesctl
|
||||||
|
drwxr-xr-x root/root usr/share/dbus-1/
|
||||||
|
drwxr-xr-x root/root usr/share/dbus-1/system-services/
|
||||||
|
-rw-r--r-- root/root usr/share/dbus-1/system-services/net.hadess.PowerProfiles.service
|
||||||
|
-rw-r--r-- root/root usr/share/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service
|
||||||
|
drwxr-xr-x root/root usr/share/dbus-1/system.d/
|
||||||
|
-rw-r--r-- root/root usr/share/dbus-1/system.d/net.hadess.PowerProfiles.conf
|
||||||
|
-rw-r--r-- root/root usr/share/dbus-1/system.d/org.freedesktop.UPower.PowerProfiles.conf
|
||||||
|
drwxr-xr-x root/root usr/share/polkit-1/
|
||||||
|
drwxr-xr-x root/root usr/share/polkit-1/actions/
|
||||||
|
-rw-r--r-- root/root usr/share/polkit-1/actions/power-profiles-daemon.policy
|
6
power-profiles-daemon/.signature
Normal file
6
power-profiles-daemon/.signature
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
|
RWSagIOpLGJF33YnoB8v8uQWYoNVAqpqo5k1Jfq4jCI0wbp+vYyQHC+1ZkGv24jnDUxIye5ob+hW2psayP6a2vehvOiVIGDtbwM=
|
||||||
|
SHA256 (Pkgfile) = 96f3581a4caa238f7a4f489e6c08ea7bc68cc52c087c2c73c954b4f99307285a
|
||||||
|
SHA256 (.footprint) = 09367df6bfc78a05bb4c658faa7d1b56381bfb1568b6687d7964c15da6646f23
|
||||||
|
SHA256 (power-profiles-daemon-0.21.tar.bz2) = c61a2350e58d51d4d6e58a61cf2aaa9b307ce42f16c40c4ece0bf1ed6d020506
|
||||||
|
SHA256 (ppd.service) = 9adc2b9dc506bb03e0866b28b481d01fde5123763b3830cca53ac187da32a2cd
|
28
power-profiles-daemon/Pkgfile
Normal file
28
power-profiles-daemon/Pkgfile
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Description: Makes power profiles handling available over D-Bus
|
||||||
|
# URL: https://gitlab.freedesktop.org/upower/power-profiles-daemon
|
||||||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||||
|
# Depends on: libgudev polkit python3-shtab
|
||||||
|
|
||||||
|
name=power-profiles-daemon
|
||||||
|
version=0.21
|
||||||
|
release=1
|
||||||
|
source=(https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/archive/$version/power-profiles-daemon-$version.tar.bz2
|
||||||
|
ppd.service)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
meson setup $name-$version build \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libexecdir=lib/$name \
|
||||||
|
--buildtype=plain \
|
||||||
|
--wrap-mode nodownload \
|
||||||
|
-D b_lto=true \
|
||||||
|
-D b_pie=true \
|
||||||
|
-D systemdsystemunitdir=/delete \
|
||||||
|
-D tests=false
|
||||||
|
meson compile -C build
|
||||||
|
DESTDIR=$PKG meson install -C build
|
||||||
|
|
||||||
|
rm -r $PKG/delete
|
||||||
|
|
||||||
|
install -Dm 755 $SRC/ppd.service $PKG/etc/rc.d/power-profiles-daemon
|
||||||
|
}
|
35
power-profiles-daemon/ppd.service
Executable file
35
power-profiles-daemon/ppd.service
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# /etc/rc.d/power-profiles-daemon: start/stop power-profiles-daemon daemon
|
||||||
|
#
|
||||||
|
|
||||||
|
SSD=/sbin/start-stop-daemon
|
||||||
|
PROG=/usr/lib/power-profiles-daemon/power-profiles-daemon
|
||||||
|
OPTS=""
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
start)
|
||||||
|
$SSD --start --background --exec $PROG -- $OPTS
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
$SSD --stop --retry 10 --exec $PROG
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
$SSD --status --exec $PROG
|
||||||
|
case $? in
|
||||||
|
0) echo "$PROG is running with pid $(pidof $PROG)" ;;
|
||||||
|
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||||
|
3) echo "$PROG is not running" ;;
|
||||||
|
4) echo "Unable to determine the program status" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: $0 [start|stop|restart|status]"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# End of file
|
Loading…
x
Reference in New Issue
Block a user