Blame SOURCES/cups-system-auth.patch

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