upower: switch to systemd.

This commit is contained in:
Juan RP 2011-10-11 04:06:12 +02:00
parent 0ba35a8a0e
commit b8fba188b0
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[Unit]
Description=Power Manager
After=syslog.target
[Service]
Type=dbus
BusName=org.freedesktop.UPower
ExecStart=/usr/libexec/upowerd
[Install]
WantedBy=graphical.target

View file

@ -1,6 +1,7 @@
# Template file for 'upower'
pkgname=upower
version=0.9.14
revision=1
homepage="http://upower.freedesktop.org"
distfiles="${homepage}/releases/$pkgname-$version.tar.xz"
build_style=gnu_configure
@ -16,6 +17,7 @@ long_desc="
message bus. Some operations (such as suspending the system) are restricted
using PolicyKit."
systemd_services="upowerd.service"
conf_files="/etc/UPower/UPower.conf"
subpackages="upower-devel"
@ -40,3 +42,8 @@ Add_dependency build polkit-devel
Add_dependency full udev
Add_dependency full pm-utils
post_install()
{
vinstall ${FILESDIR}/upowerd.service 644 lib/systemd/system
}