1 Summary: Power Manager daemon for Apple PowerBooks
2 Summary(pl): Demon zarz±dzaj±cy poborem energii dla komputerów Apple PowerBook
7 Group: Applications/System
8 Source0: http://linuxppc.jvc.nl/%{name}-%{version}.tgz
9 # Source0-md5: 51f3d8a65e92d26ceee7b2e9e06773d3
11 Patch0: %{name}-pwrctl.patch
12 URL: http://linuxppc.jvc.nl/
13 Requires(post,preun): /sbin/chkconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 pmud is a daemon which periodically polls the PMU (power manager) and
23 performs functions such as enabling or disabling devices appropriately
24 when the power source changes. It can also be instructed to signal
25 init(8) that a power-failure has occured.
28 pmud to demon regularnie odpytuj±cy PMU (jednostkê zarz±dzaj±ce
29 energi±) i wykonuj±cy funkcje takie jak w³±czanie i wy³±czanie
30 urz±dzeñ odpowiednio do zmian ¼ród³a zasilania. Mo¿e tak¿e powiadomiæ
31 proces init o wyst±pieniu awarii zasilania.
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man8} \
43 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,power}
45 install pmud snooze wakebay fblevel $RPM_BUILD_ROOT%{_sbindir}
46 install Batmon $RPM_BUILD_ROOT%{_bindir}
47 install xmouse $RPM_BUILD_ROOT%{_bindir}
49 install pmud.8 snooze.8 fblevel.8 batmon.8 $RPM_BUILD_ROOT%{_mandir}/man8
50 install xmouse.8 $RPM_BUILD_ROOT%{_mandir}/man8
52 install power.conf $RPM_BUILD_ROOT/etc/sysconfig/power
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pmud
54 install pwrctl $RPM_BUILD_ROOT%{_sysconfdir}/power/pwrctl
56 ln -sf %{_sbindir}/snooze $RPM_BUILD_ROOT%{_bindir}/apm
59 rm -rf $RPM_BUILD_ROOT
62 /sbin/chkconfig --add pmud
63 if [ -f /var/lock/subsys/pmud ]; then
64 /etc/rc.d/init.d/pmud restart >&2
66 echo "Run \"/etc/rc.d/init.d/pmud start\" to start pmud daemon."
70 if [ "$1" = "0" ]; then
71 if [ -f /var/lock/subsys/pmud ]; then
72 /etc/rc.d/init.d/pmud stop >&2
74 /sbin/chkconfig --del pmud
78 %defattr(644,root,root,755)
79 %doc BUGS CHANGES INSTALL README THANKS TODO pwrctl-local
80 %attr(755,root,root) %{_sbindir}/*
81 %attr(755,root,root) %{_bindir}/*
82 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/power
83 %attr(754,root,root) /etc/rc.d/init.d/pmud
84 %dir %{_sysconfdir}/power
85 %attr(640,root,root) %{_sysconfdir}/power/pwrctl