Blame SOURCES/cups-system-auth.patch

3635cf
diff -up cups-1.5b1/conf/cups.password-auth.system-auth cups-1.5b1/conf/cups.password-auth
3635cf
--- cups-1.5b1/conf/cups.password-auth.system-auth	2011-05-23 17:27:27.000000000 +0200
3635cf
+++ cups-1.5b1/conf/cups.password-auth	2011-05-23 17:27:27.000000000 +0200
3635cf
@@ -0,0 +1,4 @@
3635cf
+#%PAM-1.0
3635cf
+# Use password-auth common PAM configuration for the daemon
3635cf
+auth        include     password-auth
3635cf
+account     include     password-auth
3635cf
diff -up cups-1.5b1/conf/cups.system-auth.system-auth cups-1.5b1/conf/cups.system-auth
3635cf
--- cups-1.5b1/conf/cups.system-auth.system-auth	2011-05-23 17:27:27.000000000 +0200
3635cf
+++ cups-1.5b1/conf/cups.system-auth	2011-05-23 17:27:27.000000000 +0200
3635cf
@@ -0,0 +1,3 @@
3635cf
+#%PAM-1.0
3635cf
+auth	include		system-auth
3635cf
+account	include		system-auth
3635cf
diff -up cups-1.5b1/conf/Makefile.system-auth cups-1.5b1/conf/Makefile
3635cf
--- cups-1.5b1/conf/Makefile.system-auth	2011-05-12 07:21:56.000000000 +0200
3635cf
+++ cups-1.5b1/conf/Makefile	2011-05-23 17:27:27.000000000 +0200
3635cf
@@ -90,10 +90,16 @@ install-data:
3635cf
 	done
3635cf
 	-if test x$(PAMDIR) != x; then \
3635cf
 		$(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
3635cf
-		if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
3635cf
-			$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
3635cf
+		if test -f /etc/pam.d/password-auth; then \
3635cf
+			$(INSTALL_DATA) cups.password-auth $(BUILDROOT)$(PAMDIR)/cups; \
3635cf
+		elif test -f /etc/pam.d/system-auth; then \
3635cf
+			$(INSTALL_DATA) cups.system-auth $(BUILDROOT)$(PAMDIR)/cups; \
3635cf
 		else \
3635cf
-			$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
3635cf
+			if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
3635cf
+				$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
3635cf
+			else \
3635cf
+				$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
3635cf
+			fi ; \
3635cf
 		fi ; \
3635cf
 	fi
3635cf