1 Summary: Daemon that watches lm_sensors and beeps on alarms
2 Summary(pl): Demon kontroluj±cy stan lm_sensors i piszczacy podczas alarmów
8 Source0: http://www.azstarnet.com/~donut/programs/alarmwatch/%{name}-%{version}.tar.gz
10 Source2: %{name}.sysconfig
11 URL: http://www.azstarnet.com/~donut/programs/alarmwatch.html
12 BuildRequires: autoconf
14 Requires(post,preun): /sbin/chkconfig
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 alarmwatch watches the lm_sensors /proc filesystem for the chips you
20 specify, and alerts you by beeping and syslog messages when an alarm
21 that is not ignored is active.
24 alarmwatch kontroluje stan wybranych uk³adów poprzez lm_sensors w
25 systemie plików /proc i ostrzega piskami oraz komunikatami w logach,
26 kiedy nie ignorowany alarm jest aktywny.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
40 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
42 install alarmwatch $RPM_BUILD_ROOT%{_sbindir}
43 sed -e 's@alarmwatch 1@alarmwatch 8@' alarmwatch.1 \
44 > $RPM_BUILD_ROOT%{_mandir}/man8/alarmwatch.8
46 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alarmwatch
47 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alarmwatch
50 rm -rf $RPM_BUILD_ROOT
53 /sbin/chkconfig --add alarmwatch
54 if [ -f /var/lock/subsys/alarmwatch ]; then
55 /etc/rc.d/init.d/gpm alarmwatch >&2
57 echo "Run \"/etc/rc.d/init.d/alarmwatch start\" to start alarmwatch daemon."
58 echo "Remember to configure it first!"
62 if [ "$1" = "0" ]; then
63 if [ -f /var/lock/subsys/alarmwatch ]; then
64 /etc/rc.d/init.d/alarmwatch stop >&2
66 /sbin/chkconfig --del alarmwatch
70 %defattr(644,root,root,755)
72 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/alarmwatch
73 %attr(754,root,root) /etc/rc.d/init.d/alarmwatch
74 %attr(755,root,root) %{_sbindir}/*