summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/power-manager.service1
-rw-r--r--packaging/power-manager.spec12
2 files changed, 3 insertions, 10 deletions
diff --git a/packaging/power-manager.service b/packaging/power-manager.service
index 13609c8..9205295 100644
--- a/packaging/power-manager.service
+++ b/packaging/power-manager.service
@@ -5,6 +5,7 @@ Description=Start the power manager service
Type=forking
ExecStart=/usr/bin/pmctrl start
Environment=DISPLAY=:0
+PIDFile=/var/run/power-manager.pid
[Install]
WantedBy=multi-user.target
diff --git a/packaging/power-manager.spec b/packaging/power-manager.spec
index dfa5220..1746074 100644
--- a/packaging/power-manager.spec
+++ b/packaging/power-manager.spec
@@ -2,8 +2,8 @@ Name: power-manager
Summary: Power manager
Version: 1.3.23
Release: 9
-Group: framework/system
-License: APLv2
+Group: System/Power Management
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: power-manager.manifest
Requires(post): /usr/bin/vconftool
@@ -51,11 +51,6 @@ mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
install -m 0644 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/power-manager.service
ln -s ../power-manager.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/power-manager.service
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
-ln -s %{_sysconfdir}/init.d/pmctrl %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S35power-manager
-ln -s %{_sysconfdir}/init.d/pmctrl %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S00power-manager
-
%post
vconftool set -t int memory/pm/state 0 -i
vconftool set -t int memory/pm/battery_timetofull -1 -i
@@ -76,9 +71,6 @@ fi
%files
%manifest %{name}.manifest
%license LICENSE.APLv2
-%{_sysconfdir}/rc.d/init.d/pmctrl
-%{_sysconfdir}/rc.d/rc3.d/S35power-manager
-%{_sysconfdir}/rc.d/rc5.d/S00power-manager
%{_bindir}/pm_event
%{_bindir}/pmctrl
%{_bindir}/power_manager