cups/cups-1.1.16-system-auth.patch

24 lines
777 B
Diff

only in patch2:
--- cups-1.1.16/conf/cups.system-auth 1970-01-01 01:00:00.000000000 +0100
+++ cups-1.1.16/conf/cups.system-auth 2002-11-20 12:44:44.000000000 +0000
@@ -0,0 +1,3 @@
+#%PAM-1.0
+auth required pam_stack.so service=system-auth
+account required pam_stack.so service=system-auth
only in patch2:
--- cups-1.1.16/conf/Makefile.system-auth 2002-11-20 12:45:05.000000000 +0000
+++ cups-1.1.16/conf/Makefile 2002-11-20 12:47:23.000000000 +0000
@@ -67,7 +67,11 @@
done
-if test x$(PAMDIR) != x$(BUILDROOT); then \
$(INSTALL_DIR) $(PAMDIR); \
- $(INSTALL_DATA) pam.conf $(PAMDIR)/cups; \
+ if test -f /etc/pam.d/system-auth; then \
+ $(INSTALL_DATA) cups.system-auth $(PAMDIR)/cups ; \
+ else \
+ $(INSTALL_DATA) pam.conf $(PAMDIR)/cups; \
+ fi \
fi