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