rpms/smartmontools/F-8 smartmontools.spec,1.38,1.39

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Wed Dec 12 14:44:31 UTC 2007


Author: tsmetana

Update of /cvs/pkgs/rpms/smartmontools/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3667

Modified Files:
	smartmontools.spec 
Log Message:
* Wed Dec 12 2007 Tomas Smetana <tsmetana at redhat.com> - 1:5.37-7.2
- fix #375791 - parameter warning for smartd in logwatch output



Index: smartmontools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/smartmontools/F-8/smartmontools.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- smartmontools.spec	31 Oct 2007 12:19:09 -0000	1.38
+++ smartmontools.spec	12 Dec 2007 14:43:58 -0000	1.39
@@ -1,7 +1,7 @@
 Summary:	Tools for monitoring SMART capable hard disks
 Name:		smartmontools
 Version:	5.37
-Release: 	7.1%{?dist}
+Release: 	7.2%{?dist}
 Epoch:		1
 Group:		System Environment/Base
 License:	GPLv2+
@@ -61,6 +61,18 @@
 touch $RPM_BUILD_ROOT%{_sbindir}/smartd-conf.py{c,o}
 install -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/smartmontools
 
+%define cfgfile $RPM_BUILD_ROOT%{_sysconfdir}/smartd.conf
+echo "# *SMARTD*AUTOGENERATED* /etc/smartd.conf" > %{cfgfile}.head
+echo \
+"# The line above is relevant only if you have smartmontools-config	installed:" \
+	>> %{cfgfile}.head
+echo "# Remove the line if you have edited the file and you do not want" \
+	>> %{cfgfile}.head
+echo "# it to be overwritten on the next smartd startup." >> %{cfgfile}.head
+echo "" >> %{cfgfile}.head
+cat %{cfgfile}.head smartd.conf > %{cfgfile}
+rm -f %{cfgfile}.head
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -86,7 +98,7 @@
 %{_sbindir}/smartctl
 %{_sysconfdir}/rc.d/init.d/smartd
 %{_mandir}/man?/smart*.*
-%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/smartd.conf
+%config(noreplace) %{_sysconfdir}/smartd.conf
 %config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
 
 %files config
@@ -95,6 +107,9 @@
 %exclude %{_sbindir}/smartd-conf.py[co]
 
 %changelog
+* Wed Dec 12 2007 Tomas Smetana <tsmetana at redhat.com> - 1:5.37-7.2
+- fix #375791 - parameter warning for smartd in logwatch output
+
 * Wed Oct 31 2007 Tomas Smetana <tsmetana at redhat.com> - 1:5.37-7.1
 - fix #359561 - typo in smartd-conf.py causes smartd to skip all disks
 - improved getaddrinfo patch




More information about the fedora-extras-commits mailing list