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.
37 gzip -9nf README Changelog
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
42 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
44 install alarmwatch $RPM_BUILD_ROOT%{_sbindir}
45 sed -e 's@alarmwatch 1@alarmwatch 8@' alarmwatch.1 \
46 > $RPM_BUILD_ROOT%{_mandir}/man8/alarmwatch.8
48 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alarmwatch
49 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alarmwatch
52 rm -rf $RPM_BUILD_ROOT
55 /sbin/chkconfig --add alarmwatch
56 if [ -f /var/lock/subsys/alarmwatch ]; then
57 /etc/rc.d/init.d/gpm alarmwatch >&2
59 echo "Run \"/etc/rc.d/init.d/alarmwatch start\" to start alarmwatch daemon."
60 echo "Remember to configure it first!"
64 if [ "$1" = "0" ]; then
65 if [ -f /var/lock/subsys/alarmwatch ]; then
66 /etc/rc.d/init.d/alarmwatch stop >&2
68 /sbin/chkconfig --del alarmwatch
72 %defattr(644,root,root,755)
74 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/alarmwatch
75 %attr(754,root,root) /etc/rc.d/init.d/alarmwatch
76 %attr(755,root,root) %{_sbindir}/*