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
|
|
|
|
Version: 5.33
|
2006-02-11 05:42:29 +00:00
|
|
|
Release: 4.2
|
2005-02-10 02:03:05 +00:00
|
|
|
Epoch: 1
|
2005-10-25 09:13:18 +00:00
|
|
|
Group: System Environment/Base
|
|
|
|
License: GPL
|
2005-11-03 17:06:22 +00:00
|
|
|
URL: http://smartmontools.sourceforge.net/
|
|
|
|
Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
2005-01-07 06:02:58 +00:00
|
|
|
Source1: smartd.initd
|
|
|
|
Source2: smartd-conf.py
|
2005-11-03 17:06:22 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
PreReq: /sbin/chkconfig /sbin/service
|
2005-01-07 06:02:58 +00:00
|
|
|
Requires: fileutils kudzu
|
2005-11-03 17:06:22 +00:00
|
|
|
BuildRequires: readline-devel ncurses-devel /usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf util-linux groff gettext
|
2005-01-07 06:02:58 +00:00
|
|
|
Obsoletes: kernel-utils
|
2005-02-10 02:01:23 +00:00
|
|
|
ExclusiveArch: i386 x86_64 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
|
|
|
|
into most modern ATA and SCSI hard disks. In many cases, these
|
|
|
|
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
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2005-11-03 17:06:22 +00:00
|
|
|
make CFLAGS="$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
|
|
|
|
2005-11-03 17:06:22 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd.conf
|
|
|
|
rm -f examplescripts/Makefile*
|
|
|
|
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd
|
|
|
|
install -D -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/smartd-conf.py
|
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
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2005-11-03 17:06:22 +00:00
|
|
|
%doc AUTHORS CHANGELOG COPYING INSTALL NEWS README
|
|
|
|
%doc TODO WARNINGS examplescripts smartd.conf
|
|
|
|
%{_sbindir}/smartd
|
|
|
|
%{_sbindir}/smartctl
|
|
|
|
%{_sbindir}/smartd-conf.py*
|
|
|
|
%{_sysconfdir}/rc.d/init.d/smartd
|
|
|
|
%{_mandir}/man?/smart*.*
|
|
|
|
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/smartd.conf
|
2005-01-07 06:02:58 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" = "0" ] ; then
|
|
|
|
/sbin/service smartd stop
|
|
|
|
/sbin/chkconfig --del smartd
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add smartd
|
|
|
|
|
2005-01-13 06:55:57 +00:00
|
|
|
%triggerpostun -- kernel-utils
|
|
|
|
/sbin/chkconfig --add smartd
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
2005-01-07 06:02:58 +00:00
|
|
|
%changelog
|
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.
|
|
|
|
|