diff options
author | jlam <jlam@pkgsrc.org> | 2001-11-15 07:12:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-11-15 07:12:17 +0000 |
commit | 1706cb5016a2cf050d664287911ea2b3061badae (patch) | |
tree | 7c8a3aa6e4346dcf74dbbe85a17ae62c024a0f29 /www/apache6/patches/patch-aa | |
parent | e664ae52f16fdcec5e0d7d35079a09fa416922bc (diff) | |
download | pkgsrc-1706cb5016a2cf050d664287911ea2b3061badae.tar.gz |
Fix installation when an old config file exists.
Diffstat (limited to 'www/apache6/patches/patch-aa')
-rw-r--r-- | www/apache6/patches/patch-aa | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/www/apache6/patches/patch-aa b/www/apache6/patches/patch-aa index 3cb8871fe29..983ed9ce5e1 100644 --- a/www/apache6/patches/patch-aa +++ b/www/apache6/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.5 2001/10/17 07:47:53 martti Exp $ +$NetBSD: patch-aa,v 1.6 2001/11/15 07:12:18 jlam Exp $ ---- Makefile.tmpl.orig Sat Oct 6 22:01:09 2001 -+++ Makefile.tmpl Tue Oct 16 22:34:00 2001 +--- Makefile.tmpl.orig Sat Oct 6 18:01:09 2001 ++++ Makefile.tmpl @@ -328,20 +328,7 @@ file=`echo $${mod} | sed -e 's;^.*/\([^/]*\);\1;'`; \ echo "$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}"; \ @@ -23,6 +23,15 @@ $NetBSD: patch-aa,v 1.5 2001/10/17 07:47:53 martti Exp $ fi @echo "<=== [programs]" +@@ -457,7 +444,7 @@ + # icons and distributed CGI scripts. + install-data: + @echo "===> [data: Installing initial data files]" +- -@if [ -f $(root)$(htdocsdir)/index.html ] || [ -f $(root)$(htdocsdir)/index.html.en ]; then \ ++ -@if false; then \ + echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(htdocsdir)/]"; \ + else \ + echo "Copying tree $(TOP)/htdocs/ -> $(root)$(htdocsdir)/"; \ @@ -473,15 +460,16 @@ find $(root)$(manualdir)/ -type d -exec chmod a+rx {} \; ; \ find $(root)$(manualdir)/ -type f -print | xargs chmod a+r ; \ @@ -52,3 +61,21 @@ $NetBSD: patch-aa,v 1.5 2001/10/17 07:47:53 martti Exp $ if [ .$$conf = .httpd.conf ]; then \ target_conf="$(TARGET).conf"; \ else \ +@@ -536,7 +524,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 \ +@@ -546,7 +534,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 \ |