summaryrefslogtreecommitdiff
path: root/www/apache/patches/patch-aa
diff options
context:
space:
mode:
authorjlam <jlam>2002-01-01 06:12:05 +0000
committerjlam <jlam>2002-01-01 06:12:05 +0000
commit0293dbc31423e823a78a202b2d09cd7c093032e8 (patch)
tree00b7f894a9b5a364fb7770e7314870345a221404 /www/apache/patches/patch-aa
parentde10a3fd2c7b54422c773c1e472def05f26db49f (diff)
downloadpkgsrc-0293dbc31423e823a78a202b2d09cd7c093032e8.tar.gz
Fix installation so that existing config files are preserved when building
from source instead of installing from a binary package (problem noted in private email by George Coulouris <george@coulouris.org>. Also move the ownership of SSL-related config directories to the www/ap-ssl package.
Diffstat (limited to 'www/apache/patches/patch-aa')
-rw-r--r--www/apache/patches/patch-aa94
1 files changed, 18 insertions, 76 deletions
diff --git a/www/apache/patches/patch-aa b/www/apache/patches/patch-aa
index 50c314ac778..b4f0e31706c 100644
--- a/www/apache/patches/patch-aa
+++ b/www/apache/patches/patch-aa
@@ -1,8 +1,20 @@
-$NetBSD: patch-aa,v 1.16 2001/11/15 05:32:57 jlam Exp $
+$NetBSD: patch-aa,v 1.17 2002/01/01 06:12:06 jlam Exp $
---- Makefile.tmpl.orig Thu Nov 15 00:06:33 2001
+--- Makefile.tmpl.orig Tue Jan 1 00:38:59 2002
+++ Makefile.tmpl
-@@ -387,34 +387,6 @@
+@@ -324,11 +324,6 @@
+ $(MKDIR) $(root)$(mandir)/man1
+ $(MKDIR) $(root)$(mandir)/man8
+ $(MKDIR) $(root)$(sysconfdir)
+- $(MKDIR) $(root)$(sysconfdir)/ssl.crt
+- $(MKDIR) $(root)$(sysconfdir)/ssl.crl
+- $(MKDIR) $(root)$(sysconfdir)/ssl.csr
+- $(MKDIR) $(root)$(sysconfdir)/ssl.key
+- $(MKDIR) $(root)$(sysconfdir)/ssl.prm
+ $(MKDIR) $(root)$(htdocsdir)
+ $(MKDIR) $(root)$(manualdir)
+ $(MKDIR) $(root)$(iconsdir)
+@@ -387,34 +382,6 @@
file=`echo $${mod} | sed -e 's;^.*/\([^/]*\);\1;'`; \
echo "$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}"; \
$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}; \
@@ -37,7 +49,7 @@ $NetBSD: patch-aa,v 1.16 2001/11/15 05:32:57 jlam Exp $
done; \
fi
@echo "<=== [programs]"
-@@ -531,7 +503,7 @@
+@@ -531,7 +498,7 @@
# icons and distributed CGI scripts.
install-data:
@echo "===> [data: Installing initial data files]"
@@ -46,14 +58,7 @@ $NetBSD: patch-aa,v 1.16 2001/11/15 05:32:57 jlam Exp $
echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(htdocsdir)/]"; \
else \
echo "Copying tree $(TOP)/htdocs/ -> $(root)$(htdocsdir)/"; \
-@@ -547,15 +519,16 @@
- find $(root)$(manualdir)/ -type d -exec chmod a+rx {} \; ; \
- find $(root)$(manualdir)/ -type f -print | xargs chmod a+r ; \
- fi
-- -@if [ -f $(root)$(cgidir)/printenv ]; then \
-+ -@if false; then \
- echo "[PRESERVING EXISTING CGI SUBDIR: $(root)$(cgidir)/]"; \
- else \
+@@ -553,9 +520,10 @@
for script in printenv test-cgi; do \
cat $(TOP)/cgi-bin/$${script} |\
sed -e 's;^#!/.*perl;#!$(PERL);' \
@@ -66,7 +71,7 @@ $NetBSD: patch-aa,v 1.16 2001/11/15 05:32:57 jlam Exp $
done; \
fi
@echo "Copying tree $(TOP)/icons/ -> $(root)$(iconsdir)/"; \
-@@ -569,7 +542,7 @@
+@@ -569,7 +537,7 @@
# and initial config files while preserving existing ones.
install-config:
@echo "===> [config: Installing Apache configuration files]"
@@ -75,66 +80,3 @@ $NetBSD: patch-aa,v 1.16 2001/11/15 05:32:57 jlam Exp $
if [ .$$conf = .httpd.conf ]; then \
target_conf="$(TARGET).conf"; \
else \
-@@ -622,7 +595,7 @@
- > $(TOP)/$(SRC)/.apaci.install.tmp && \
- echo "$(INSTALL_DATA) $(TOP)/conf/$${conf}-dist[*] $(root)$(sysconfdir)/$${target_conf}.default"; \
- $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(sysconfdir)/$${target_conf}.default; \
-- if [ ! -f "$(root)$(sysconfdir)/$${target_conf}" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/$${conf}-dist[*] $(root)$(sysconfdir)/$${target_conf}"; \
- $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(sysconfdir)/$${target_conf}; \
- else \
-@@ -632,7 +605,7 @@
- -@for conf in mime.types magic; do \
- echo "$(INSTALL_DATA) $(TOP)/conf/$${conf} $(root)$(sysconfdir)/$${conf}.default"; \
- $(INSTALL_DATA) $(TOP)/conf/$${conf} $(root)$(sysconfdir)/$${conf}.default; \
-- if [ ! -f "$(root)$(sysconfdir)/$${conf}" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/$${conf} $(root)$(sysconfdir)/$${conf}"; \
- $(INSTALL_DATA) $(TOP)/conf/$${conf} $(root)$(sysconfdir)/$${conf}; \
- else \
-@@ -650,7 +623,7 @@
- chmod 700 $(root)$(sysconfdir)/ssl.key; \
- echo "chmod 755 $(root)$(sysconfdir)/ssl.prm"; \
- chmod 755 $(root)$(sysconfdir)/ssl.prm; \
-- if [ ! -f "$(root)$(sysconfdir)/ssl.crt/README.CRT" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.crt/README.CRT $(root)$(sysconfdir)/ssl.crt/README.CRT"; \
- $(INSTALL) $(TOP)/conf/ssl.crt/README.CRT $(root)$(sysconfdir)/ssl.crt/README.CRT; \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.crt/Makefile $(root)$(sysconfdir)/ssl.crt/Makefile"; \
-@@ -677,7 +650,7 @@
- echo "Updating hash symlinks in $(root)$(sysconfdir)/ssl.crt/:"; \
- SSL_PROGRAM="`grep '^SSL_PROGRAM=' $(TOP)/$(SRC)/Makefile.config | sed -e 's:^.*=::'`"; \
- (cd $(root)$(sysconfdir)/ssl.crt/ && $(MAKE) $(MFLAGS) SSL_PROGRAM=$$SSL_PROGRAM); \
-- if [ ! -f "$(root)$(sysconfdir)/ssl.csr/README.CSR" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.csr/README.CSR $(root)$(sysconfdir)/ssl.csr/README.CSR"; \
- $(INSTALL) $(TOP)/conf/ssl.csr/README.CSR $(root)$(sysconfdir)/ssl.csr/README.CSR; \
- echo "$(INSTALL_DATA) -m 400 $(TOP)/conf/ssl.csr/server.csr $(root)$(sysconfdir)/ssl.csr/server.csr"; \
-@@ -685,7 +658,7 @@
- else \
- echo "[PRESERVING EXISTING CSR FILES: $(root)$(sysconfdir)/ssl.csr/*]"; \
- fi; \
-- if [ ! -f "$(root)$(sysconfdir)/ssl.crl/README.CRL" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.crl/README.CRL $(root)$(sysconfdir)/ssl.crl/README.CRL"; \
- $(INSTALL) $(TOP)/conf/ssl.crl/README.CRL $(root)$(sysconfdir)/ssl.crl/README.CRL; \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.crl/Makefile $(root)$(sysconfdir)/ssl.crl/Makefile"; \
-@@ -693,7 +666,7 @@
- else \
- echo "[PRESERVING EXISTING CRL FILES: $(root)$(sysconfdir)/ssl.crl/*]"; \
- fi; \
-- if [ ! -f "$(root)$(sysconfdir)/ssl.key/README.KEY" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.key/README.KEY $(root)$(sysconfdir)/ssl.key/README.KEY"; \
- $(INSTALL) $(TOP)/conf/ssl.key/README.KEY $(root)$(sysconfdir)/ssl.key/README.KEY; \
- echo "$(INSTALL_DATA) -m 400 $(TOP)/conf/ssl.key/snakeoil-ca-rsa.key $(root)$(sysconfdir)/ssl.key/snakeoil-ca-rsa.key"; \
-@@ -713,7 +686,7 @@
- else \
- echo "[PRESERVING EXISTING KEY FILES: $(root)$(sysconfdir)/ssl.key/*]"; \
- fi; \
-- if [ ! -f "$(root)$(sysconfdir)/ssl.prm/README.PRM" ]; then \
-+ if true; then \
- echo "$(INSTALL_DATA) $(TOP)/conf/ssl.prm/README.PRM $(root)$(sysconfdir)/ssl.prm/README.PRM"; \
- $(INSTALL) $(TOP)/conf/ssl.prm/README.PRM $(root)$(sysconfdir)/ssl.prm/README.PRM; \
- echo "$(INSTALL_DATA) -m 400 $(TOP)/conf/ssl.prm/snakeoil-ca-dsa.prm $(root)$(sysconfdir)/ssl.prm/snakeoil-ca-dsa.prm"; \