LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File watchdog.spec of Package watchdog (Project home:furlongm)

Summary:          Software and/or Hardware watchdog daemon
Name:             watchdog
Version:          5.15
Release:          1
License:          GPL-2.0
Group:            System Environment/Daemons
URL:              http://sourceforge.net/projects/watchdog/
Source0:          %{name}-%{version}.tar.gz
Patch0:           watchdog-sysconfdir.diff

%description
The watchdog program can be used as a powerful software watchdog daemon
or may be alternately used with a hardware watchdog device such as the
IPMI hardware watchdog driver interface to a resident Baseboard
Management Controller (BMC).  watchdog periodically writes to /dev/watchdog;
the interval between writes to /dev/watchdog is configurable through settings
in the watchdog sysconfig file.  This configuration file is also used to
set the watchdog to be used as a hardware watchdog instead of its default
software watchdog operation.  In either case, if the device is open but not
written to within the configured time period, the watchdog timer expiration
will trigger a machine reboot. When operating as a software watchdog, the
ability to reboot will depend on the state of the machine and interrupts.
When operating as a hardware watchdog, the machine will experience a hard
reset (or whatever action was configured to be taken upon watchdog timer
expiration) initiated by the BMC.

%prep
%setup -q -n %{name}-%{version}
mv README README.orig
iconv -f ISO-8859-1 -t UTF-8 < README.orig > README
%patch0 -p1

%build
%configure
%__make %{?jobs:-j%jobs}

%install
rm -Rf ${RPM_BUILD_ROOT}
install -d -m0755 ${RPM_BUILD_ROOT}%{_sysconfdir}
make DESTDIR=${RPM_BUILD_ROOT} install

%clean
rm -Rf ${RPM_BUILD_ROOT}

%files
%defattr(-, root, root, -)
%doc AUTHORS ChangeLog COPYING examples/ IAFA-PACKAGE NEWS README TODO README.watchdog.ipmi
%config(noreplace) %{_sysconfdir}/watchdog.conf
%{_sbindir}/watchdog
%{_sbindir}/wd_keepalive
%{_sbindir}/wd_identify
%{_mandir}/man5/watchdog.conf.5*
%{_mandir}/man8/watchdog.8*
%{_mandir}/man8/wd_keepalive.8*
%{_mandir}/man8/wd_identify.8*

%changelog
* Mon Nov 21 2016 Marcus Furlong <furlongm@gmail.com> - 5.15
- Initial OBS release