/[smecontribs]/rpms/watchdog/contribs7/watchdog.spec
ViewVC logotype

Diff of /rpms/watchdog/contribs7/watchdog.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Sat Dec 4 16:31:53 2010 UTC Revision 1.3 by slords, Sat Dec 4 16:42:57 2010 UTC
# Line 1  Line 1 
1  # $Id$  # $Id: watchdog.spec,v 1.2 2010/12/04 16:31:53 slords Exp $
2  # Authority: slords  # Authority: slords
3  # Name: Shad L. Lords  # Name: Shad L. Lords
4    
5  Summary:          Software and/or Hardware watchdog daemon  Summary: Software and/or Hardware watchdog daemon
6  Name:             watchdog  Name: watchdog
7  Version:          5.6  Version: 5.3.1
8  Release:          1%{?dist}  Release: 7%{?dist}
9  License:          GPL+  License: GPL
10  Group:            System Environment/Daemons  Group: System Environment/Daemons
11    URL: http://sourceforge.net/projects/watchdog/
12  URL:              http://sourceforge.net/projects/watchdog/  Source0: http://dl.sf.net/watchdog/watchdog_%{version}.tar.gz
13  Source0:          http://dl.sf.net/watchdog/watchdog-%{version}.tar.gz  Source1: watchdog.init
14  Source1:          watchdog.init  Source2: README.watchdog.ipmi
15  Source2:          README.watchdog.ipmi  Patch0: %{name}-%{version}-cleanup.patch
16    Patch1: %{name}-%{version}-cleanup-nfs.patch
17  Patch0:           watchdog-5.6-cleanup.patch  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18  Patch1:           watchdog-5.6-quiet-write-warnings.patch  Requires(post): /sbin/chkconfig
   
 BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  
   
 Requires(post):   /sbin/chkconfig  
19  Requires(postun): /sbin/chkconfig  Requires(postun): /sbin/chkconfig
20  Requires(post):   /sbin/service  Requires(post): /sbin/service
21  Requires(postun): /sbin/service  Requires(postun): /sbin/service
22    
   
23  %description  %description
24  The watchdog program can be used as a powerful software watchdog daemon  The watchdog program can be used as a powerful software watchdog daemon
25  or may be alternately used with a hardware watchdog device such as the  or may be alternately used with a hardware watchdog device such as the
# Line 40  ability to reboot will depend on the sta Line 35  ability to reboot will depend on the sta
35  When operating as a hardware watchdog, the machine will experience a hard  When operating as a hardware watchdog, the machine will experience a hard
36  reset (or whatever action was configured to be taken upon watchdog timer  reset (or whatever action was configured to be taken upon watchdog timer
37  expiration) initiated by the BMC.  expiration) initiated by the BMC.
38    
   
39  %prep  %prep
40  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
   
 %patch0 -p1 -b .cleanup  
 %patch1 -p1 -b .quiet-write-warnings  
   
41  cp %{SOURCE2} .  cp %{SOURCE2} .
42    %patch0 -p1
43  mv README README.orig  %patch1 -p1
 iconv -f ISO-8859-1 -t UTF-8 < README.orig > README  
   
   
44  %build  %build
45  %configure  %configure
46  make %{?_smp_mflags}  make %{?_smp_mflags}
47    
   
48  %install  %install
49  rm -rf ${RPM_BUILD_ROOT}  rm -Rf ${RPM_BUILD_ROOT}
50  install -d -m0755 ${RPM_BUILD_ROOT}%{_sysconfdir}  install -d -m0755 ${RPM_BUILD_ROOT}%{_sysconfdir}
51  make DESTDIR=${RPM_BUILD_ROOT} install  make DESTDIR=${RPM_BUILD_ROOT} install
52  install -Dp -m0644 %{name}.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/watchdog  install -Dp -m0644 %{name}.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/watchdog
53  install -Dp -m0755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_initrddir}/watchdog  install -Dp -m0755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_initrddir}/watchdog
54    
   
55  %clean  %clean
56  rm -Rf ${RPM_BUILD_ROOT}  rm -Rf ${RPM_BUILD_ROOT}
57    
   
58  %post  %post
59  if [ $1 -eq 1 ]; then  if [ $1 -eq 1 ]; then
60    /sbin/chkconfig --add %{name}          /sbin/chkconfig --add %{name}
61  fi  fi
62    
   
63  %preun  %preun
64  if [ $1 -eq 0 ]; then  if [ $1 -eq 0 ]; then
65    /sbin/service %{name} stop >/dev/null 2>&1          /sbin/service %{name} stop >/dev/null 2>&1
66    /sbin/chkconfig --del %{name}          /sbin/chkconfig --del %{name}
67  fi  fi
68    
   
69  %postun  %postun
70  if [ $1 -ge 1 ]; then  if [ $1 -ge 1 ]; then
71    /sbin/service %{name} condrestart >/dev/null  2>&1          /sbin/service %{name} condrestart >/dev/null  2>&1
72  fi  fi
73    
74    
75  %files  %files
76  %defattr(-, root, root, -)  %defattr(-, root, root, 0755)
77  %doc AUTHORS ChangeLog COPYING examples/ IAFA-PACKAGE NEWS README TODO README.watchdog.ipmi  %doc AUTHORS ChangeLog COPYING examples/ IAFA-PACKAGE NEWS README TODO README.watchdog.ipmi
78    %doc %{_mandir}/man5/watchdog.conf.5*
79    %doc %{_mandir}/man8/watchdog.8*
80  %config(noreplace) %{_sysconfdir}/watchdog.conf  %config(noreplace) %{_sysconfdir}/watchdog.conf
81  %config(noreplace) %{_sysconfdir}/sysconfig/watchdog  %config(noreplace) %{_sysconfdir}/sysconfig/watchdog
82  %{_sysconfdir}/rc.d/init.d/watchdog  %{_sysconfdir}/rc.d/init.d/watchdog
83  %{_sbindir}/watchdog  %{_sbindir}/watchdog
84  %{_sbindir}/wd_keepalive  %{_sbindir}/wd_keepalive
 %{_mandir}/man5/watchdog.conf.5*  
 %{_mandir}/man8/watchdog.8*  
 %{_mandir}/man8/wd_keepalive.8*  
   
85    
86  %changelog  %changelog
 * Thu Mar 26 2009 Richard W.M. Jones <rjones@redhat.com> - 5.6-1  
 - Rebase to watchdog 5.6.  
 - Drop cleanup patch, since it is now upstream.  
 - Drop NFS cleanup patch, since it breaks NFS support for one call.  
 - Add patch for general cleanups (sent upstream 2009-03-26).  
 - Add patch to quiet write warnings about unused return values.  
   
 * Thu Mar 12 2009 Richard W.M. Jones <rjones@redhat.com> - 5.5-1  
 - New upstream release 5.5 - Resolves: 446123  
 - Synchronize the spec file formatting with Fedora.  
 - Upstream source URL has changed (_ into -).  
 - Convert README file to UTF-8.  
 - Fix defattr line.  
 - Manpages shouldn't be marked as doc.  
 - Added wd_keepalive manpage.  
   
87  * Mon Jun 11  2007 Lon Hohberger <lhh@redhat.com> - 5.3.1-7  * Mon Jun 11  2007 Lon Hohberger <lhh@redhat.com> - 5.3.1-7
88  - Rebuild for RHEL5 Update 1 - Resolves: 227401  - Rebuild for RHEL5 Update 1 - Resolves: 227401
   
89  * Wed May 30  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-6  * Wed May 30  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-6
90  - Fixed the init script file.  - Fixed the init script file.
   
91  * Tue May 29  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-5  * Tue May 29  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-5
92  - Fixed a compile warning in nfsmount_xdr file.  - Fixed a compile warning in nfsmount_xdr file.
   
93  * Wed May 23  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-4  * Wed May 23  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-4
94  - Fixed rpmlint warnings.  - Fixed rpmlint warnings.
   
95  * Wed May 16  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-3  * Wed May 16  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-3
96  - Changes to spec, init script and README file per Carol Hebert recommendation.  - Changes to spec, init script and README file per Carol Hebert recommendation.
   
97  * Thu Apr 19  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-2  * Thu Apr 19  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-2
98  - Added README.watchdog.ipmi  - Added README.watchdog.ipmi
   
99  * Mon Apr 16  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-1  * Mon Apr 16  2007 Konrad Rzeszutek <konradr@redhat.com> - 5.3.1-1
100  - Initial copy.  - Initial copy.


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed