2005-11-03 17:06:22 +00:00
|
|
|
Summary: Tools for monitoring SMART capable hard disks
|
2005-10-25 09:13:18 +00:00
|
|
|
Name: smartmontools
|
2008-03-10 12:37:22 +00:00
|
|
|
Version: 5.38
|
2008-08-08 10:32:24 +00:00
|
|
|
Release: 6%{?dist}
|
2005-02-10 02:03:05 +00:00
|
|
|
Epoch: 1
|
2005-10-25 09:13:18 +00:00
|
|
|
Group: System Environment/Base
|
2007-08-20 11:23:11 +00:00
|
|
|
License: GPLv2+
|
2005-11-03 17:06:22 +00:00
|
|
|
URL: http://smartmontools.sourceforge.net/
|
2006-05-11 07:54:10 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2007-02-27 08:57:04 +00:00
|
|
|
Source1: smartd.initd
|
2008-05-12 10:17:58 +00:00
|
|
|
Source2: smartmontools.sysconf
|
2008-03-10 12:37:22 +00:00
|
|
|
Patch1: smartmontools-5.38-cloexec.patch
|
|
|
|
Patch2: smartmontools-5.37-addrinfo.patch
|
2008-05-05 09:54:19 +00:00
|
|
|
Patch3: smartmontools-5.38-perc.patch
|
|
|
|
Patch4: smartmontools-5.38-selinux.patch
|
2006-05-11 07:54:10 +00:00
|
|
|
|
2005-11-03 17:06:22 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
PreReq: /sbin/chkconfig /sbin/service
|
2007-06-21 13:26:38 +00:00
|
|
|
Requires: fileutils mailx
|
2008-05-05 10:11:17 +00:00
|
|
|
BuildRequires: readline-devel ncurses-devel /usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf util-linux groff gettext
|
|
|
|
BuildRequires: libselinux-devel
|
2005-01-07 06:02:58 +00:00
|
|
|
Obsoletes: kernel-utils
|
2007-08-20 11:23:11 +00:00
|
|
|
ExclusiveArch: i386 x86_64 %{arm} ia64 ppc ppc64
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%description
|
2005-10-25 09:13:18 +00:00
|
|
|
The smartmontools package contains two utility programs (smartctl
|
|
|
|
and smartd) to control and monitor storage systems using the Self-
|
|
|
|
Monitoring, Analysis and Reporting Technology System (SMART) built
|
2008-05-12 10:17:58 +00:00
|
|
|
into most modern ATA and SCSI hard disks. In many cases, these
|
2005-10-25 09:13:18 +00:00
|
|
|
utilities will provide advanced warning of disk degradation and
|
|
|
|
failure.
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%prep
|
2005-11-03 17:06:22 +00:00
|
|
|
%setup -q
|
2007-03-07 13:17:49 +00:00
|
|
|
%patch1 -p1 -b .cloexec
|
2008-03-10 12:37:22 +00:00
|
|
|
%patch2 -p1 -b .addrinfo
|
2008-05-05 09:54:19 +00:00
|
|
|
%patch3 -p1 -b .perc
|
|
|
|
%patch4 -p1 -b .selinux
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%build
|
2007-10-31 07:42:56 +00:00
|
|
|
./autogen.sh
|
2008-05-05 09:54:19 +00:00
|
|
|
%configure --with-selinux
|
2008-08-08 10:32:24 +00:00
|
|
|
make CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%install
|
2005-11-03 17:06:22 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2005-01-07 06:02:58 +00:00
|
|
|
|
2007-12-12 14:16:19 +00:00
|
|
|
#rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd.conf
|
2005-11-03 17:06:22 +00:00
|
|
|
rm -f examplescripts/Makefile*
|
2007-02-27 08:57:04 +00:00
|
|
|
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd
|
2008-05-12 10:17:58 +00:00
|
|
|
install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/smartmontools
|
2007-12-12 14:16:19 +00:00
|
|
|
|
2005-01-07 06:02:58 +00:00
|
|
|
%clean
|
2005-11-03 17:06:22 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" = "0" ] ; then
|
2007-02-12 14:21:41 +00:00
|
|
|
/sbin/service smartd stop >/dev/null 2>&1
|
2005-01-07 06:02:58 +00:00
|
|
|
/sbin/chkconfig --del smartd
|
|
|
|
fi
|
2007-02-11 22:35:56 +00:00
|
|
|
exit 0
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add smartd
|
|
|
|
|
2005-01-13 06:55:57 +00:00
|
|
|
%triggerpostun -- kernel-utils
|
|
|
|
/sbin/chkconfig --add smartd
|
|
|
|
exit 0
|
|
|
|
|
2007-06-21 13:26:38 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS CHANGELOG COPYING INSTALL NEWS README
|
|
|
|
%doc TODO WARNINGS examplescripts smartd.conf
|
|
|
|
%{_sbindir}/smartd
|
|
|
|
%{_sbindir}/smartctl
|
|
|
|
%{_sysconfdir}/rc.d/init.d/smartd
|
|
|
|
%{_mandir}/man?/smart*.*
|
2007-12-12 14:16:19 +00:00
|
|
|
# %ghost %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/smartd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/smartd.conf
|
2007-06-21 13:26:38 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
|
|
|
|
2005-01-07 06:02:58 +00:00
|
|
|
%changelog
|
2008-08-08 10:32:24 +00:00
|
|
|
* Fri Aug 08 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-6
|
|
|
|
- correct CXXFLAGS so the PIE code is produced
|
|
|
|
|
2008-05-12 10:17:58 +00:00
|
|
|
* Mon May 12 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-5
|
|
|
|
- remove config subpackage
|
|
|
|
|
2008-05-05 10:11:17 +00:00
|
|
|
* Mon May 05 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-4.1
|
|
|
|
- add libselinux-devel to BR
|
|
|
|
|
2008-05-05 09:54:19 +00:00
|
|
|
* Mon May 05 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-4
|
|
|
|
- fix #232218 character devices /dev/twa* for 3ware 9000 series RAID
|
|
|
|
controllers are not created
|
|
|
|
|
|
|
|
* Thu Mar 27 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-3
|
|
|
|
- don't attempt to query DELL PERC controllers -- they'd go offline
|
|
|
|
|
2008-03-18 08:04:30 +00:00
|
|
|
* Tue Mar 18 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-2
|
|
|
|
- fix FD_CLOEXEC on SCSI device file descriptors not being set
|
|
|
|
|
2008-03-10 12:37:22 +00:00
|
|
|
* Mon Mar 10 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.38-1
|
|
|
|
- new upstream version
|
|
|
|
|
2008-02-12 07:40:17 +00:00
|
|
|
* Tue Feb 12 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-8.5
|
|
|
|
- rebuild (gcc-4.3)
|
|
|
|
|
2008-01-15 14:30:20 +00:00
|
|
|
* Tue Jan 15 2008 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-8.4
|
|
|
|
- change '-d ata' to '-d sat' in the config script for SATA drives
|
|
|
|
|
2007-12-12 14:16:19 +00:00
|
|
|
* Wed Dec 12 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-8.3
|
|
|
|
- fix #375791 - parameter warning for smartd in logwatch output
|
|
|
|
|
2007-10-31 11:47:40 +00:00
|
|
|
* Wed Oct 31 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-8.2
|
|
|
|
- rebuild (one more error in autogen.sh)
|
|
|
|
|
2007-10-31 11:12:25 +00:00
|
|
|
* Wed Oct 31 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-8.1
|
|
|
|
- fix build with new automake
|
|
|
|
|
2007-10-31 07:42:56 +00:00
|
|
|
* Wed Oct 31 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-8
|
|
|
|
- fix #359561 - typo in smartd-conf.py causes smartd to skip all disks
|
|
|
|
|
|
|
|
* Mon Oct 15 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-7.1
|
|
|
|
- improved patch for getaddrinfo
|
|
|
|
|
2007-10-12 13:25:59 +00:00
|
|
|
* Fri Oct 12 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-7
|
|
|
|
- replace gethostbyname with getaddrinfo
|
|
|
|
|
2007-09-04 11:59:22 +00:00
|
|
|
* Tue Sep 04 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-6
|
|
|
|
- fix #271741 - smartd-conf.py should allow customization of parameters
|
|
|
|
- fix #253753 - service starting by default, perhaps shouldn't
|
|
|
|
- update initscript (related #247058 - initscript review)
|
|
|
|
|
2007-08-20 11:23:11 +00:00
|
|
|
* Mon Aug 20 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-5
|
|
|
|
- add support for 24 disks on 3ware RAID controllers (related #252055)
|
|
|
|
- fix #245442 - add %%{arm} to smartmontools's set of build archs
|
|
|
|
- update license tag
|
|
|
|
|
2007-06-21 13:26:38 +00:00
|
|
|
* Thu Jun 21 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-4
|
|
|
|
- fix #241389 - smartd-conf.py pulls in a big dependency chain, so
|
|
|
|
build a separate config package
|
|
|
|
|
2007-06-05 08:10:33 +00:00
|
|
|
* Tue Jun 05 2007 Tomas Smetana <tsmetana@redhat.com> - 1:5.37-3
|
|
|
|
- fix #241385 - smartmontools missing dependency on mailx
|
|
|
|
- fix #241388 - unneeded smartd-conf.py[co] installed in /usr/sbin
|
|
|
|
|
2007-03-07 13:35:48 +00:00
|
|
|
* Wed Mar 7 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 1:5.37-2
|
|
|
|
- re-add cloexec patch
|
|
|
|
- re-add one erased changelog entry
|
|
|
|
- compile with -fpie (instead of -fpic)
|
|
|
|
|
2007-02-27 08:57:04 +00:00
|
|
|
* Tue Feb 27 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 1:5.37-1
|
|
|
|
- new upstream version
|
2007-02-22 12:13:39 +00:00
|
|
|
|
2007-03-07 13:17:49 +00:00
|
|
|
* Thu Feb 22 2007 Tomas Mraz <tmraz@redhat.com> - 1:5.36-8
|
|
|
|
- enable SMART on disks when smartd-conf.py runs (fix
|
|
|
|
by Calvin Ostrum) (#214502)
|
|
|
|
|
2007-02-12 14:21:41 +00:00
|
|
|
* Mon Feb 12 2007 Tomas Mraz <tmraz@redhat.com> - 1:5.36-7
|
|
|
|
- redirect service script output to null (#224566)
|
|
|
|
|
2007-02-11 22:35:56 +00:00
|
|
|
* Sun Feb 11 2007 Florian La Roche <laroche@redhat.com> - 1:5.36-6
|
|
|
|
- make sure the preun script does not fail
|
|
|
|
|
2006-11-07 16:17:11 +00:00
|
|
|
* Tue Nov 7 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.36-5
|
2006-11-07 10:19:40 +00:00
|
|
|
- set cloexec on device descriptor so it doesn't leak to sendmail (#214182)
|
|
|
|
- fixed minor bug in initscript (#213683)
|
|
|
|
- backported SATA disk detection from upstream
|
|
|
|
|
2006-08-18 20:17:56 +00:00
|
|
|
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 1:5.36-3
|
|
|
|
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
|
|
|
|
(#203001)
|
|
|
|
|
2006-07-12 08:15:53 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:5.36-2.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-27 15:40:29 +00:00
|
|
|
* Tue Jun 27 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.36-2
|
|
|
|
- kudzu is deprecated, replace it with HAL (#195752)
|
|
|
|
- moved later in the boot process so haldaemon is already running
|
|
|
|
when drives are being detected
|
|
|
|
|
2006-05-11 07:54:10 +00:00
|
|
|
* Thu May 11 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.36-1
|
|
|
|
- new upstream version
|
|
|
|
- included patch with support for cciss controllers (#191288)
|
|
|
|
|
2006-05-02 13:47:46 +00:00
|
|
|
* Tue May 2 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-8
|
|
|
|
- regenerate smartd.conf on every startup if the config file
|
|
|
|
is autogenerated (#190065)
|
|
|
|
|
2006-03-24 17:50:08 +00:00
|
|
|
* Fri Mar 24 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-7
|
|
|
|
- add missing quotes to /etc/sysconfig/smartmontools
|
|
|
|
|
2006-03-23 13:14:16 +00:00
|
|
|
* Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-6
|
|
|
|
- test SATA drives correctly
|
|
|
|
|
2006-03-22 16:14:08 +00:00
|
|
|
* Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-5
|
|
|
|
- add default /etc/sysconfig/smartmontools file
|
|
|
|
- ignore errors on startup (#186130)
|
|
|
|
- test drive for SMART support before adding it to smartd.conf
|
|
|
|
|
2006-02-11 05:42:29 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:5.33-4.2
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 13:51:33 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:5.33-4.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-16 22:17:09 +00:00
|
|
|
* Fri Dec 16 2005 Tomas Mraz <tmraz@redhat.com> 1:5.33-4
|
|
|
|
- mail should be sent to root not root@localhost (#174252)
|
2005-12-09 22:43:15 +00:00
|
|
|
|
2005-11-25 15:16:35 +00:00
|
|
|
* Fri Nov 25 2005 Tomas Mraz <tmraz@redhat.com> 1:5.33-3
|
|
|
|
- add libata disks with -d ata if the libata version
|
|
|
|
is new enough otherwise do not add them (#145859, #174095)
|
|
|
|
|
2005-11-03 17:06:22 +00:00
|
|
|
* Thu Nov 3 2005 Tomas Mraz <tmraz@redhat.com> 1:5.33-2
|
|
|
|
- Spec file cleanup by Robert Scheck <redhat@linuxnetz.de> (#170959)
|
|
|
|
- manual release numbering
|
|
|
|
- remove bogus patch of non-installed file
|
|
|
|
- only non-removable drives should be added to smartd.conf
|
|
|
|
- smartd.conf should be owned (#171498)
|
|
|
|
|
2005-10-25 09:08:33 +00:00
|
|
|
* Tue Oct 25 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Add comments to generated smartd.conf (#135397)
|
|
|
|
|
2005-08-04 10:14:24 +00:00
|
|
|
* Thu Aug 04 2005 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- package all python files
|
|
|
|
|
2005-03-02 04:24:04 +00:00
|
|
|
* Tue Mar 1 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Rebuild for gcc4
|
|
|
|
|
2005-02-10 02:01:23 +00:00
|
|
|
* Wed Feb 9 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Build on PPC32 too (#147090)
|
|
|
|
|
2005-01-07 06:02:58 +00:00
|
|
|
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
|
|
|
|
- Initial packaging, based upon kernel-utils.
|
|
|
|
|