diff --git a/smartmontools-5.42-service.patch b/smartmontools-5.42-service.patch new file mode 100644 index 0000000..4bda3a9 --- /dev/null +++ b/smartmontools-5.42-service.patch @@ -0,0 +1,14 @@ +diff -urN smartmontools-5.42/smartd.service.in smartmontools-5.42-patched/smartd.service.in +--- smartmontools-5.42/smartd.service.in 2012-01-10 12:52:35.627980195 +0400 ++++ smartmontools-5.42-patched/smartd.service.in 2012-01-10 12:53:13.842502505 +0400 +@@ -3,8 +3,8 @@ + After=syslog.target + + [Service] +-EnvironmentFile=/usr/local/etc/sysconfig/smartmontools +-ExecStart=/usr/local/sbin/smartd -n $smartd_opts ++EnvironmentFile=/etc/sysconfig/smartd ++ExecStart=/usr/sbin/smartd -n $smartd_opts + + [Install] + WantedBy=multi-user.target diff --git a/smartmontools.spec b/smartmontools.spec index d7560dd..a918adb 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -1,14 +1,16 @@ Summary: For monitoring S.M.A.R.T. disks and devices -Name: smartmontools -Version: 5.41 -Release: %mkrel 3 -License: GPL +Name: smartmontools +Version: 5.41 +%define subrel 2 +Release: %mkrel 1 +License: GPLv2 Group: System/Kernel and hardware URL: http://smartmontools.sourceforge.net/ Source0: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz Source1: smartd.conf Source2: smartd.init Source3: smartd.sysconfig +Patch0: smartmontools-5.42-service.patch Obsoletes: smartsuite Provides: smartsuite Requires(post): rpm-helper @@ -30,8 +32,8 @@ ATA/ATAPI-7 specifications. The package is intended to incorporate as much man smartctl and man smartd will provide more information. %prep - %setup -q +%patch0 -p1 %build %configure2_5x \ @@ -74,7 +76,14 @@ rm -rf %{buildroot} %changelog -* Sun Jun 12 2011 Oden Eriksson 5.41-1mdv2011.0 +* Fri Mar 02 2012 Oden Eriksson 5.41-1.2 +- built for updates + +* Tue Jan 10 2012 Andrey Bondrov 5.41-1.1mdv2011.0 ++ Revision: 759511 +- Add patch0 to fix service path (bug #64477) + +* Sun Jun 12 2011 Oden Eriksson 5.41-1 + Revision: 684306 - fix build, take #2 (someone will have to marge changes from smartmontools-5.41-1.fc16.src.rpm i guess...) - fix build, take #1 @@ -132,7 +141,7 @@ rm -rf %{buildroot} - drop patch1: hsm fix, merged upstream - drop patch2: strange_buffer fix, merged upstream - + Olivier Blin + + Olivier Blin - restore BuildRoot + Thierry Vignaud