rpms/cups/F-9 cups.spec,1.443,1.444

Tim Waugh twaugh at fedoraproject.org
Wed May 6 12:33:29 UTC 2009


Author: twaugh

Update of /cvs/pkgs/rpms/cups/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7908

Modified Files:
	cups.spec 
Log Message:
* Wed May  6 2009 Tim Waugh <twaugh at redhat.com> 1:1.3.10-5
- Restart cupsd if "ServerAlias *" is added to cupsd.conf
  (bug #497354).
- Ship "ServerAlias *" in cupsd.conf.default configuration file as
  well (bug #498884).



Index: cups.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cups/F-9/cups.spec,v
retrieving revision 1.443
retrieving revision 1.444
diff -u -p -r1.443 -r1.444
--- cups.spec	27 Apr 2009 15:57:14 -0000	1.443
+++ cups.spec	6 May 2009 12:32:59 -0000	1.444
@@ -7,7 +7,7 @@
 Summary: Common Unix Printing System
 Name: cups
 Version: 1.3.10
-Release: 4%{?svn:.svn%{svn}}%{?dist}
+Release: 5%{?svn:.svn%{svn}}%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source: ftp://ftp.easysw.com/pub/cups/test//cups-%{version}%{?svn:svn-r%{svn}}-source.tar.bz2
@@ -269,13 +269,15 @@ ln -s ../../ppd $RPM_BUILD_ROOT%{_datadi
 
 # Disable Host: checking by default for compatibility.  The
 # ServerAlias directive was added in 1.3.10.
-cat <<"EOF" >> $RPM_BUILD_ROOT%{_sysconfdir}/cups/cupsd.conf
+for suffix in conf conf.default; do
+  cat <<"EOF" >> $RPM_BUILD_ROOT%{_sysconfdir}/cups/cupsd."$suffix"
 
 # You should list each hostname alias used for this server so that it
 # can verify the correct name is used for it.  Using "ServerAlias *"
 # disables checking.
 ServerAlias *
 EOF
+done
 
 # Remove unshipped files.
 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat? $RPM_BUILD_ROOT%{_mandir}/*/cat?
@@ -350,6 +352,7 @@ if [ "$1" -gt 0 ]; then
 # disables checking.
 ServerAlias *
 EOF
+        /sbin/service cups condrestart > /dev/null 2>&1 || :
     fi
 fi
 
@@ -476,6 +479,12 @@ rm -rf $RPM_BUILD_ROOT
 %{cups_serverbin}/daemon/cups-lpd
 
 %changelog
+* Wed May  6 2009 Tim Waugh <twaugh at redhat.com> 1:1.3.10-5
+- Restart cupsd if "ServerAlias *" is added to cupsd.conf
+  (bug #497354).
+- Ship "ServerAlias *" in cupsd.conf.default configuration file as
+  well (bug #498884).
+
 * Mon Apr 27 2009 Tim Waugh <twaugh at redhat.com> 1:1.3.10-4
 - Adjust cupsd.conf by adding "ServerAlias *" automatically on upgrade
   (part of bug #497301).  The default cupsd.conf now includes this




More information about the scm-commits mailing list