Upgrade cups to 1.3.7
[packages.git] / net / cups / patches / 130-no_chown.patch
index 5fb27f9..eceb8e9 100644 (file)
@@ -1,11 +1,12 @@
---- cups-1.1.23/systemv/Makefile.old   Sun Oct 15 03:33:34 2006
-+++ cups-1.1.23/systemv/Makefile       Sun Oct 15 03:33:55 2006
-@@ -77,7 +77,7 @@
+diff -urN cups-1.3.7/systemv/Makefile cups-1.3.7.new/systemv/Makefile
+--- cups-1.3.7/systemv/Makefile        2007-07-11 23:46:42.000000000 +0200
++++ cups-1.3.7.new/systemv/Makefile    2008-07-13 16:15:46.000000000 +0200
+@@ -70,7 +70,7 @@
        $(INSTALL_BIN) lp $(BINDIR)
        $(INSTALL_BIN) lpoptions $(BINDIR)
        $(INSTALL_BIN) lpstat $(BINDIR)
--      -$(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR)
-+      -$(INSTALL_BIN) lppasswd $(BINDIR)
-       if test ! -x $(BINDIR)/lppasswd; then \
-               chmod 755 $(BINDIR)/lppasswd; \
-       fi
+-      $(INSTALL_BIN) -m 4755 -o root lppasswd $(BINDIR) || $(INSTALL_BIN) lppasswd $(BINDIR)
++      $(INSTALL_BIN) lppasswd $(BINDIR)
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               for file in $(TARGETS); do \