]> git.pld-linux.org Git - packages/watchdog.git/blob - watchdog.spec
adapterized (almost only)
[packages/watchdog.git] / watchdog.spec
1 Name:           watchdog
2 Version:        4.5
3 Release:        2
4 Summary:        A software watchdog
5 License:        GPL
6 Group:          Applications/System
7 Group(de):      Applikationen/System
8 Group(pl):      Aplikacje/System
9 Vendor:         Michael Meskes <meskes@debian.org>
10 Icon:           doggy.gif
11 Source0:        ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
12 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
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.
20
21 %prep
22 %setup -q
23
24 %build
25 ./configure --prefix=%{_prefix}
26 %{__make}
27
28 %install
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
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %post
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
42
43 %postun
44 if [ "$1" = 0 ] ; then
45   /sbin/chkconfig --del watchdog
46 fi
47
48 %files
49 %defattr(644,root,root,755)
50 %doc ChangeLog examples README NEWS AUTHORS COPYING IAFA-PACKAGE
51 %doc INSTALL watchdog.lsm
52 %{_prefix}/man/man?/*
53 %attr(755, root, root) %{_sbindir}/watchdog
54 %attr(755, root, root) %config /etc/rc.d/init.d/watchdog
55 %config %{_sysconfdir}/watchdog.conf
This page took 0.355434 seconds and 4 git commands to generate.