]> git.pld-linux.org Git - packages/watchdog.git/blame - watchdog.spec
- up to 5.16
[packages/watchdog.git] / watchdog.spec
CommitLineData
0aaf370c
PG
1# TODO:
2# - resolve limit of interface traffic:
3# http://bugs.gentoo.org/attachment.cgi?id=80309&action=view
4# - check which of these patches can be applied:
5# http://www.christoph-probst.com/technik/software/watchdog/5.2.4/
c9d9c24b
PG
6# - separate package with init-script for wd_keepalive - some parts should
7# be in -common subpackage.
72aaf5d2 8Summary: A software watchdog
54826b2d 9Summary(pl.UTF-8): Programowy strażnik
d508b5c4 10Name: watchdog
a4c331dd 11Version: 5.16
07793d1c 12Release: 1
d508b5c4 13License: GPL
66eb2953 14Group: Daemons
91c3be8c 15Source0: http://ftp.debian.org/debian/pool/main/w/watchdog/%{name}_%{version}.orig.tar.gz
a4c331dd 16# Source0-md5: 1b4f51cabc64d1bee2fce7cdd626831f
4874959c
PG
17Source1: %{name}.init
18Source2: %{name}.sysconfig
06d680cf 19Patch0: %{name}-foreground.patch
5ad65308 20Patch1: %{name}-config.patch
4874959c
PG
21BuildRequires: autoconf
22BuildRequires: automake
aaa72296 23BuildRequires: rpmbuild(macros) >= 1.268
a5fa672f 24Requires(post,preun): /sbin/chkconfig
aaa72296 25Requires: rc-scripts
809d91d6 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8fe50095 27
28%description
d508b5c4
MP
29The watchdog program writes to /dev/watchdog every ten seconds. If the
30device is open but not written to within a minute the machine will
31reboot. Each write delays the reboot time another minute. The ability
e3e1aaca 32to reboot will depend on the state of the machines and interrupts.
8fe50095 33
0639fd4b
JR
34%description -l pl.UTF-8
35Program watchdog zapisuje do /dev/watchdog co 10 sekund. Jeżeli
36urządzenie jest otwarte, ale nic nie zostanie zapisane przez minutę,
37maszyna się zrebootuje. Każdy zapis opóźnia reboot o minutę. Możliwość
e3e1aaca 38rebootu zależy od stanu maszyny i przerwań.
72aaf5d2 39
8fe50095 40%prep
af510777 41%setup -q
57849433 42#%patch0 -p1
5ad65308 43%patch1 -p1
8fe50095 44
45%build
ac06bf3b 46%{__aclocal}
7e1f7fa4 47%{__autoconf}
48%{__automake}
d299ec04 49%configure
d508b5c4 50%{__make}
8fe50095 51
52%install
53rm -rf $RPM_BUILD_ROOT
4874959c
PG
54install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
55
a5fa672f
JB
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
4874959c
PG
58
59install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/watchdog
60install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/watchdog
61
8fe50095 62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
36dc7e5d 66/sbin/chkconfig --add watchdog
aaa72296 67%service watchdog restart "watchdog daemon"
8fe50095 68
557f6a52 69%preun
36dc7e5d 70if [ "$1" = 0 ] ; then
aaa72296 71 %service watchdog stop
72aaf5d2 72 /sbin/chkconfig --del watchdog
36dc7e5d 73fi
8fe50095 74
75%files
d508b5c4 76%defattr(644,root,root,755)
f9cad2a6 77%doc ChangeLog README NEWS AUTHORS IAFA-PACKAGE TODO examples
2bd3bf60 78%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/watchdog.conf
1967145d
PG
79%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/watchdog
80%attr(754,root,root) /etc/rc.d/init.d/watchdog
81%attr(755,root,root) %{_sbindir}/*
82%{_mandir}/man?/*
This page took 0.071455 seconds and 4 git commands to generate.