jdefelice

smartmontools.spec (6.0 on el5)

Dec 9th, 2012
429
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Summary:    Tools for monitoring SMART capable hard disks
  2. Name:       smartmontools
  3. Version:    6.0
  4. Release:    1%{?dist}
  5. Epoch:      1
  6. Group:      System Environment/Base
  7. License:    GPL
  8. URL:        http://smartmontools.sourceforge.net/
  9. Source0:    http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  10. Source1:    smartd.initd
  11. Source2:    smartmontools.sysconf
  12.  
  13. BuildRoot:  %{_tmppath}/%{name}-%{version}-root
  14. PreReq:     /sbin/chkconfig /sbin/service
  15. Requires:   fileutils mailx
  16. BuildRequires: readline-devel ncurses-devel /usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf util-linux groff gettext
  17. BuildRequires: libselinux-devel
  18. Obsoletes:  kernel-utils
  19. ExclusiveArch:  i386 x86_64 ia64 ppc ppc64
  20.  
  21. %description
  22. The smartmontools package contains two utility programs (smartctl
  23. and smartd) to control and monitor storage systems using the Self-
  24. Monitoring, Analysis and Reporting Technology System (SMART) built
  25. into most modern ATA and SCSI hard disks. In many cases, these
  26. utilities will provide advanced warning of disk degradation and
  27. failure.
  28.  
  29. %prep
  30. %setup -q
  31.  
  32. %build
  33. #./autogen.sh
  34. %configure --with-selinux=yes --docdir=%{_defaultdocdir}/smartmontools-%{version}
  35. make CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
  36.  
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make DESTDIR=$RPM_BUILD_ROOT install
  40.  
  41. #rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd.conf
  42. rm -f examplescripts/Makefile*
  43. install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd
  44. install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/smartmontools
  45.  
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48.  
  49. %preun
  50. if [ "$1" = "0" ] ; then
  51.  /sbin/service smartd stop >/dev/null 2>&1
  52.  /sbin/chkconfig --del smartd
  53. fi
  54. exit 0
  55.  
  56. %post
  57. /sbin/chkconfig --add smartd
  58.  
  59. %triggerpostun -- kernel-utils
  60. /sbin/chkconfig --add smartd
  61. exit 0
  62.  
  63. %files
  64. %defattr(-,root,root)
  65. %doc AUTHORS CHANGELOG COPYING INSTALL NEWS README
  66. %doc TODO WARNINGS examplescripts smartd.conf
  67. %{_sbindir}/smartd
  68. %{_sbindir}/smartctl
  69. %{_sbindir}/update-smart-drivedb
  70. %{_sysconfdir}/rc.d/init.d/smartd
  71. %{_mandir}/man?/smart*.*
  72. %{_datadir}/smartmontools/drivedb.h
  73. %config(noreplace) %{_sysconfdir}/smartd.conf
  74. %config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
  75.  
  76. %changelog
  77. * Sun Dec 09 2012 James DeFelice <james.defelice at gmail.com> - 1:6.0-1
  78. - new upstream version
  79.  
  80. * Tue Oct 04 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-3
  81. - fix SCSI log page sanity check (#714888)
  82.  
  83. * Thu Aug 07 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-2
  84. - fix CXXFLAGS and default configuration file
  85.  
  86. * Thu Aug 07 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-1
  87. - upgrade to 5.38
  88. - fix #438556 - upgrade request
  89. - fix #456471 - SELinux prevents smartd from monitoring 3ware RAID
  90.  
  91. * Tue Dec 04 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.36-4
  92. - fix #232168 - wrong exit status of the init script
  93. - fix #326551 - smartctl hangs the system when run on PERC controller
  94.  
  95. * Tue Nov  7 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.36-3.1
  96. - set cloexec on device descriptor so it doesn't leak to sendmail (#214182)
  97. - fixed minor bug in initscript (#213683)
  98. - backported SATA disk detection from upstream
  99.  
  100. * Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 1:5.36-3
  101. - rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
  102.   (#203001)
  103.  
  104. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:5.36-2.1
  105. - rebuild
  106.  
  107. * Tue Jun 27 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.36-2
  108. - kudzu is deprecated, replace it with HAL (#195752)
  109. - moved later in the boot process so haldaemon is already running
  110.   when drives are being detected
  111.  
  112. * Thu May 11 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.36-1
  113. - new upstream version
  114. - included patch with support for cciss controllers (#191288)
  115.  
  116. * Tue May  2 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-8
  117. - regenerate smartd.conf on every startup if the config file
  118.   is autogenerated (#190065)
  119.  
  120. * Fri Mar 24 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-7
  121. - add missing quotes to /etc/sysconfig/smartmontools
  122.  
  123. * Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-6
  124. - test SATA drives correctly
  125.  
  126. * Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-5
  127. - add default /etc/sysconfig/smartmontools file
  128. - ignore errors on startup (#186130)
  129. - test drive for SMART support before adding it to smartd.conf
  130.  
  131. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:5.33-4.2
  132. - bump again for double-long bug on ppc(64)
  133.  
  134. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:5.33-4.1
  135. - rebuilt for new gcc4.1 snapshot and glibc changes
  136.  
  137. * Fri Dec 16 2005 Tomas Mraz <tmraz@redhat.com> 1:5.33-4
  138. - mail should be sent to root not root@localhost (#174252)
  139.  
  140. * Fri Nov 25 2005 Tomas Mraz <tmraz@redhat.com> 1:5.33-3
  141. - add libata disks with -d ata if the libata version
  142.   is new enough otherwise do not add them (#145859, #174095)
  143.  
  144. * Thu Nov  3 2005 Tomas Mraz <tmraz@redhat.com> 1:5.33-2
  145. - Spec file cleanup by Robert Scheck <redhat@linuxnetz.de> (#170959)
  146. - manual release numbering
  147. - remove bogus patch of non-installed file
  148. - only non-removable drives should be added to smartd.conf
  149. - smartd.conf should be owned (#171498)
  150.  
  151. * Tue Oct 25 2005 Dave Jones <davej@redhat.com>
  152. - Add comments to generated smartd.conf (#135397)
  153.  
  154. * Thu Aug 04 2005 Karsten Hopp <karsten@redhat.de>
  155. - package all python files
  156.  
  157. * Tue Mar  1 2005 Dave Jones <davej@redhat.com>
  158. - Rebuild for gcc4
  159.  
  160. * Wed Feb  9 2005 Dave Jones <davej@redhat.com>
  161. - Build on PPC32 too (#147090)
  162.  
  163. * Sat Dec 18 2004 Dave Jones <davej@redhat.com>
  164. - Initial packaging, based upon kernel-utils.
RAW Paste Data