summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authorsbd <sbd>2011-11-14 01:23:26 +0000
committersbd <sbd>2011-11-14 01:23:26 +0000
commitbc28cc7c5de9245c4d94ab84273107d46e68afe1 (patch)
treebcd4de00f00e43cd6d5810f7bf9b0eeea951a86b /print/cups/patches
parent563bdcda9addf8579de7d5c64ce1afdd98512a41 (diff)
downloadpkgsrc-bc28cc7c5de9245c4d94ab84273107d46e68afe1.tar.gz
Skip installing the config files in the ${INSTALL_TARGET} stage, instead
install them in the post-install target. This allows the destdir stage-install target to run as non root.
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-conf_Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/print/cups/patches/patch-conf_Makefile b/print/cups/patches/patch-conf_Makefile
new file mode 100644
index 00000000000..87737691be0
--- /dev/null
+++ b/print/cups/patches/patch-conf_Makefile
@@ -0,0 +1,21 @@
+$NetBSD: patch-conf_Makefile,v 1.1 2011/11/14 01:23:27 sbd Exp $
+
+Don't install the config files (leave it up to pkgsrc).
+
+--- conf/Makefile.orig 2011-05-12 05:21:56.000000000 +0000
++++ conf/Makefile
+@@ -70,14 +70,6 @@ install: all install-data install-header
+ #
+
+ install-data:
+- for file in $(KEEP); do \
+- if test -r $(SERVERROOT)/$$file ; then \
+- $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \
+- else \
+- $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \
+- fi ; \
+- done
+- $(INSTALL_CONFIG) -g $(CUPS_GROUP) cupsd.conf $(SERVERROOT)/cupsd.conf.default
+ $(INSTALL_DIR) -m 755 $(DATADIR)/mime
+ for file in $(REPLACE); do \
+ if test -r $(DATADIR)/mime/$$file ; then \