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