Summary: Powerd is a UPS monitoring program to safely shutdown unattended Summary(pl.UTF-8): Powerd jest programem do monitorowania UPS-ów Name: powerd Version: 2.0.2 Release: 3 License: GPL Group: Networking/Daemons Source0: http://dl.sourceforge.net/power/%{name}-%{version}.tar.gz # Source0-md5: de283f67a1a64dee59d8f52c4c094569 Source1: %{name}.init URL: http://power.sourceforge.net/ PreReq: rc-scripts Requires(post,preun): /sbin/chkconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Powerd is an effective power daemon that can monitor a UPS and safely shutdown the computer. It can also notify other powerd's on the network that may not be able to monitor the serial line, so they may also safely shutdown. It also has the capability of auto identifying your particular UPS and cable configurations. %description -l pl.UTF-8 Powerd jest efektywnym demonem, który potrafi monitorować UPS-a oraz bezpiecznie zamknąć komputer. Potrafi także zakomunikować innym demonom w sieci, które mogą nie potrafić monitorować linii szeregowej, tak że mogą być one także bezpiecznie zamknięte. Demon ten potrafi automatycznie identyfikować UPS-a i konfigurację kabla. %prep %setup -q %build %configure2_13 %{__make} CFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir},%{_mandir}/man8} install powerd detectups $RPM_BUILD_ROOT%{_sbindir} install powerd.8 $RPM_BUILD_ROOT%{_mandir}/man8 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ups %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add ups if [ -f /var/lock/subsys/ups ]; then /etc/rc.d/init.d/ups restart >&2 else echo "Run \"/etc/rc.d/init.d/ups start\" to start powerd ups daemon." fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/ups ]; then /etc/rc.d/init.d/ups stop >&2 fi /sbin/chkconfig --del ups fi %files %defattr(644,root,root,755) %doc SUPPORTED Changelog README FAQ TODO %attr(755,root,root) %{_sbindir}/* %attr(754,root,root) /etc/rc.d/init.d/ups %{_mandir}/*/*