diff --git a/README.md b/README.md index e1c94d9..9b04fc2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # smartmontools +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 harddisks. +In many cases, these utilities will provide advanced warning of disk degradation and failure. + +Smartmontools supports ATA/ATAPI/SATA-3 to -8 disks and SCSI disks and tape devices. + diff --git a/smartmontools-5.42.1-init-openmamba.patch b/smartmontools-5.42.1-init-openmamba.patch new file mode 100644 index 0000000..b043391 --- /dev/null +++ b/smartmontools-5.42.1-init-openmamba.patch @@ -0,0 +1,12 @@ +diff -Nru smartmontools-5.42.orig/smartd.initd.in smartmontools-5.42/smartd.initd.in +--- smartmontools-5.42.orig/smartd.initd.in 2011-06-06 21:25:36.000000000 +0200 ++++ smartmontools-5.42/smartd.initd.in 2012-04-02 17:57:19.000000000 +0200 +@@ -50,7 +50,7 @@ + } + + # Red Hat or Yellow Dog or Mandrake +-if [ -f /etc/redhat-release -o -f /etc/yellowdog-release -o -f /etc/mandrake-release -o -f /etc/whitebox-release -o -f /etc/trustix-release -o -f /etc/tinysofa-release ] ; then ++if [ -f /etc/openmamba-release -o -f /etc/yellowdog-release -o -f /etc/mandrake-release -o -f /etc/whitebox-release -o -f /etc/trustix-release -o -f /etc/tinysofa-release ] ; then + + # Source function library + . /etc/rc.d/init.d/functions diff --git a/smartmontools.spec b/smartmontools.spec new file mode 100644 index 0000000..88b67be --- /dev/null +++ b/smartmontools.spec @@ -0,0 +1,83 @@ +Name: smartmontools +Version: 6.2 +Release: 1mamba +Summary: Utility programs to control and monitor storage systems using the Self-Monitoring +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://smartmontools.sourceforge.net +Source: http://downloads.sourceforge.net/project/smartmontools/smartmontools/%{version}/smartmontools-%{version}.tar.gz +Patch0: %{name}-5.42.1-init-openmamba.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +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 harddisks. +In many cases, these utilities will provide advanced warning of disk degradation and failure. + +Smartmontools supports ATA/ATAPI/SATA-3 to -8 disks and SCSI disks and tape devices. + +%prep +%setup -q +%patch0 -p 1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_sysconfdir}/smartd_warning.sh +%{_sysconfdir}/smartd.conf +%{_sbindir}/smartctl +%{_sbindir}/smartd +%{_sbindir}/update-smart-drivedb +/lib/systemd/system/smartd.service +%{_datadir}/smartmontools/drivedb.h +%{_docdir}/smartmontools/* +%{_mandir}/man5/smartd.conf.5.gz +%{_mandir}/man8/smartctl.8.gz +%{_mandir}/man8/smartd.8.gz +%doc AUTHORS COPYING +#NEWS README TODO + +%changelog +* Sat Jul 27 2013 Automatic Build System 6.2-1mamba +- automatic update by autodist + +* Thu Mar 21 2013 Automatic Build System 6.1-1mamba +- automatic version update by autodist + +* Thu Dec 27 2012 Automatic Build System 6.0-1mamba +- automatic version update by autodist + +* Mon Apr 02 2012 Ercole 'ercolinux' Carpanetto 5.42-1mamba +- update to 5.42 + +* Tue Apr 19 2011 Silvan Calarco 5.40-1mamba +- update to 5.40 + +* Sun Feb 28 2010 Silvan Calarco 5.39.1-1mamba +- update to 5.39.1 + +* Tue Dec 15 2009 Automatic Build System 5.39-1mamba +- automatic update by autodist + +* Sat Jul 12 2008 gil 5.38-1mamba +- update to 5.38 + +* Sat Aug 19 2006 Silvan Calarco 5.36-1qilnx +- package created by autospec