Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
smartmontools
> smartmontools.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File smartmontools.spec of Package smartmontools (Revision 15)
Currently displaying revision
15
,
show latest
# # spec file for package smartmontools (Version 5.39.1) # # norootforbuild Name: smartmontools License: GPL v2 or later Group: Hardware/Other Version: 5.39.1 Release: 1 Source: %{name}-%{version}.tar.bz2 #Source: sm5-svn20090801.tar.bz2 Source1: README.SATA Patch: smartmontools-powersave-notify.patch Patch1: smartmontools-stresslinux-init-script.patch PreReq: %insserv_prereq %fillup_prereq coreutils %if 0%{?suse_version} > 1000 Requires: powersave %endif %if 0%{?suse_version} > 1020 Requires: licenses BuildRequires: licenses %endif %if 0%{?suse_version} < 1000 BuildRequires: kernel-source %endif Url: http://smartmontools.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc-c++ libstdc++-devel Summary: Monitor for S.M.A.R.T. Disks and Devices Obsoletes: smartctl smartd ucsc-smartsuite smartsuite %description SMARTmontools controls and monitors storage devices using the Self-Monitoring, Analysis, and Reporting Technology System (S.M.A.R.T.) built into ATA, SATA and SCSI Hard Drives. This is used to check the hard drive reliability and to predict drive failures. The suite contains two utilities. The first, smartctl, is a command line utility designed to perform simple S.M.A.R.T. tasks. The second, smartd, is a daemon that periodically monitors the smart status and reports errors to syslog. The package is compatible with the ATA/ATAPI-3 to -7 specification. The package is intended to incorporate as much "vendor specific" and "reserved" information as possible about disk drives. The commands man smartctl and man smartd will provide more information. Authors: -------- Bruce Allen <smartmontools-support@lists.sourceforge.net> %prep %setup -q -n %{name}-%{version} cp -a %{S:1} . %if 0%{?suse_version} > 1000 %patch %endif %patch1 %build ./autogen.sh %if 0%{?suse_version} >= 1000 export CFLAGS="$RPM_OPT_FLAGS -fPIE" export CXXFLAGS="$RPM_OPT_FLAGS -fPIE" export LDFLAGS="-pie" %else # glibc header linux/cciss_ioctl.h is broken and outdated in SLES9 (#302136). Let's use the one from kernel: export CPPFLAGS=-I/usr/src/linux/include %endif %configure\ --with-docdir=%{_defaultdocdir}/%{name} make %{?jobs:-j%jobs} %install %makeinstall mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d cp smartd.initd $RPM_BUILD_ROOT%{_sysconfdir}/init.d/smartd chmod +x $RPM_BUILD_ROOT%{_sysconfdir}/init.d/smartd ln -s ../..%{_sysconfdir}/init.d/smartd $RPM_BUILD_ROOT%{_sbindir}/rcsmartd %if 0%{?suse_version} > 1000 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/smartmontools cp examplescripts/Example4 $RPM_BUILD_ROOT%{_prefix}/lib/smartmontools/smart-notify chmod +x $RPM_BUILD_ROOT%{_prefix}/lib/smartmontools/smart-notify %endif mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/default echo '#smartd_opts=""' >$RPM_BUILD_ROOT%{_sysconfdir}/default/smartmontools %if 0%{?suse_version} < 1010 cp README.SATA $RPM_BUILD_ROOT%{_datadir}/doc/packages/%{name}/ %endif #remove installed files we don't want to package rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/ %if 0%{?suse_version} > 1020 ln -sf %{_datadir}/doc/licenses/md5/$(md5sum COPYING | sed 's/ .*//') $RPM_BUILD_ROOT%{_docdir}/%{name}/COPYING %endif %clean rm -rf $RPM_BUILD_ROOT %pre # Older SuSE versions (<=10.2) don't do restart on update. Test it and set flag. # This file exists since smartmontools-5.37: if ! test -f usr/share/doc/packages/smartmontools/examplescripts/Example4 ; then touch var/adm/smartd_needs_restart fi %post %if 0%{?suse_version} < 1010 # With some broken drivers in older kernels, smartd can hang the system. # Don't start it by default. %{fillup_and_insserv -f smartd} %else # Turn smartd on by default. %{fillup_and_insserv -f -Y smartd} %endif # Older SuSE versions (<=10.2) don't do restart on update. Do it now. if test -f var/adm/smartd_needs_restart ; then rm var/adm/smartd_needs_restart %{restart_on_update smartd} fi %preun %{stop_on_removal smartd} %postun %{restart_on_update smartd} %{insserv_cleanup} %files %defattr(-, root, root) %doc %{_docdir}/%{name} %doc %{_mandir}/man*/* %if 0%{?suse_version} > 1000 %{_prefix}/lib/smartmontools %endif %{_sbindir}/* %config(noreplace) %{_sysconfdir}/default/* %{_sysconfdir}/init.d/* %config(noreplace) %{_sysconfdir}/*.conf %changelog * Sun Mar 28 2010 Carsten Schoene <cs@linux-administrator.com> - 5.39.1-1 - update to release 5.39.1 - Fix crash on kFreeBSD. - Fix regression in smartctl option '-q, --quietmode'. - Fix regression in smartd directive '-l selftest'. - Linux: Allow smartd 'DEVICESCAN -d sat'. - Linux: Fix spin-up of SATA drive if '-n standby' is used. - Windows: Fix parsing of 3ware 'tw_cli' output. * Mon Dec 14 2009 Carsten Schoene <cs@linux-administrator.com> - 5.39-1 - update to release 5.39 - Sourcecode repository moved from CVS to SVN - Support for USB devices with Cypress, JMicron and Sunplus USB bridges - USB device type autodetection for some devices on Linux, Windows and FreeBSD (http://sourceforge.net/apps/trac/smartmontools/wiki/Supported_USB-Devices) - Support for Areca controllers on Linux - Support for MegaRAID controllers on Linux - Support for HighPoint RocketRAID controllers on FreeBSD - Support RAID controllers using /dev/pass devices on FreeBSD - Support CHECK_POWER_MODE and WRITE_LOG on FreeBSD - Support for up to 128 devices on 3ware controllers - smartctl option '-l xerror' to print ATA SMART Extended Comprehensive Error Log - smartctl option '-l xselftest' to print ATA SMART Extended Self-test Log - smartctl option '-l sataphy' to print SATA Phy Event Counters - smartctl option '-l sasphy' to print SAS device phy information - smartctl options '-l gplog,...' and '-l smartlog,...' to print any log page - smartctl option '-x' to print all extended info if available - smartctl prints SCSI load/unload cycle counts - Improve display of huge raw values of some SMART attributes - Option '-d sat+TYPE' to use SAT with controllers which require '-d TYPE' - Option '-v ID,RAW_FORMAT,ATTR_NAME' to add new vendor specific attributes - Support for SSD drives using 64-bit raw attributes - Many additions to drive database - New simplified syntax for drive database - Option '-B FILE' to read drive database from a file - Configure option to add drive database file to distribution - smartd can now handle attributes 197 and 198 with increasing raw values - smartd logs changes of self-test execution status - smartd directive '-n powermode,N' to limit the number of skipped checks - smartd flag '!' for '-r' and '-R' directives to log changes as critical - smartd supports scheduled Selective Self-Tests - Self-tests scheduled during system downtime or disk standby are run after next startup - smartd option '-s PREFIX' to store smartd internal state until next startup - smartd option '-A PREFIX' to log attributes at each check cycle - Configure options to enable the above by default - Change to an object oriented interface to access ATA and SCSI devices - Linux, Win32 and FreeBSD modules migrated to new interface - Rework of smartd data structures - Checkin date and SVN revision and optional BUILD_INFO printed in version info - Better support for GSmartControl on Windows - SELinux fixes to 3ware device node creation - Fix CCISS file descriptor leak on FreeBSD - Compile fixes for Solaris and FreeBSD - Use getaddrinfo() instead of gethostbyname() to support IPv6 - C++ Support for QNX Target, already tested for QNX 6.3.2 on x86 and armle target - Additional support for Samsung MLC flash drives - New device type detection algorithm on FreeBSD, not based on filename - Support for the adaX (ATA on CAM bus) devices on FreeBSD 8.0 and higher * Sat Aug 01 2009 Carsten Schoene <cs@linux-administrator.com> - 5.38.99-1 - update to svn snapshot 2009-01-08 - added patch to support stresslinux in init script * Sat Jul 05 2008 Carsten Schoene <cs@linux-administrator.com> - update to smartmontools 5.38 - removed two patches