0edf4c0
--- cups-1.2svn-r5238/conf/Makefile.system-auth	2006-03-07 09:34:20.000000000 +0000
0edf4c0
+++ cups-1.2svn-r5238/conf/Makefile	2006-03-07 09:45:41.000000000 +0000
0edf4c0
@@ -79,10 +79,14 @@
cvsdist 0519732
 	done
0edf4c0
 	-if test x$(PAMDIR) != x; then \
0edf4c0
 		$(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
0edf4c0
-		if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; then \
0edf4c0
-			$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
cvsdist 0519732
+		if test -f /etc/pam.d/system-auth; then \
0edf4c0
+			$(INSTALL_DATA) cups.system-auth $(BUILDROOT)$(PAMDIR)/cups ; \
0edf4c0
 		else \
0edf4c0
-			$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
0edf4c0
+			if test -r $(BUILDROOT)$(PAMDIR)/cups/$(PAMFILE) ; 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
 
0edf4c0
--- /dev/null	2006-03-07 09:12:30.964372750 +0000
0edf4c0
+++ cups-1.2svn-r5238/conf/cups.system-auth	2006-03-07 09:43:12.000000000 +0000
0edf4c0
@@ -0,0 +1,3 @@
0edf4c0
+#%PAM-1.0
0edf4c0
+auth	include		system-auth
0edf4c0
+account	include		system-auth