4 Summary: A software watchdog
6 Group: Applications/System
7 Group(de): Applikationen/System
8 Group(pl): Aplikacje/System
9 Vendor: Michael Meskes <meskes@debian.org>
11 Source0: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
12 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 The watchdog program writes to /dev/watchdog every ten seconds. If the
16 device is open but not written to within a minute the machine will
17 reboot. Each write delays the reboot time another minute. The ability
18 to reboot will depend on the state of the machines and interrupts. To
19 use this software at least a version 1.3.52 kernel is needed.
25 ./configure --prefix=%{_prefix}
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT/{dev,etc/rc.d/init.d}
31 %{__make} install DESTDIR=$RPM_BUILD_ROOT
32 install -c -m 755 rc.watchdog.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/watchdog
35 rm -rf $RPM_BUILD_ROOT
38 rm -f /dev/watchdog /dev/temperature
39 mknod /dev/watchdog c 10 130
40 mknod /dev/temperature c 10 131
41 /sbin/chkconfig --add watchdog
44 if [ "$1" = 0 ] ; then
45 /sbin/chkconfig --del watchdog
49 %defattr(644,root,root,755)
50 %doc ChangeLog examples README NEWS AUTHORS COPYING IAFA-PACKAGE
51 %doc INSTALL watchdog.lsm
53 %attr(755, root, root) %{_sbindir}/watchdog
54 %attr(755, root, root) %config /etc/rc.d/init.d/watchdog
55 %config %{_sysconfdir}/watchdog.conf