rse         98/04/14 01:55:39

  Modified:    .        Makefile.tmpl
  Log:
  Let the user explicitly know that we are preserving his existing
  configuration files and make sure these hint messages are found
  by the user by doing the install-config target last.
  
  Revision  Changes    Path
  1.16      +32 -28    apache-1.3/Makefile.tmpl
  
  Index: Makefile.tmpl
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/Makefile.tmpl,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Makefile.tmpl     1998/04/12 12:52:39     1.15
  +++ Makefile.tmpl     1998/04/14 08:55:39     1.16
  @@ -171,8 +171,7 @@
        fi
        @$(MAKE) -f $(MKF) $(MFLAGS) \
            install-mktree install-programs $(install-support) \
  -             install-config install-include \
  -             install-docroot
  +             install-include install-docroot install-config
        [EMAIL PROTECTED] -f .install.tmp
        [EMAIL PROTECTED] -f .install.conf
        [EMAIL PROTECTED] [ ".$(QUIET)" != .1 ]; then \
  @@ -299,11 +298,37 @@
        fi
        @echo "<=== [support]"
   
  +#   install the Apache C header files 
  +install-include:
  +     @echo "===> [include: Installing Apache C header files]"
  +     $(CP) $(SRC)/include/*.h $(includedir)/
  +     osdir=`grep '^OSDIR' $(SRC)/Makefile.config | sed -e 's:^OSDIR=::'`; \
  +     $(CP) $(SRC)/$$osdir/os.h $(includedir)/
  +     @echo "<=== [include]"
  +
  +#   create an initial document root containing the Apache manual,
  +#   icons and distributed CGI scripts.
  +install-docroot:
  +     @echo "===> [docroot: Installing initial DocumentRoot files]"
  +     -(cd $(ROOT)/htdocs/ && $(TAR) cf - *) |\
  +      (cd $(datadir)/htdocs/ && $(TAR) xf -)
  +     -find $(datadir)/htdocs/ -type d -exec chmod a+rx {} \;
  +     -find $(datadir)/htdocs/ -type f -exec chmod a+r {} \;
  +     -(cd $(ROOT)/icons/ && $(TAR) cf - *) |\
  +      (cd $(datadir)/icons/ && $(TAR) xf -)
  +     -find $(datadir)/icons/ -type d -exec chmod a+rx {} \;
  +     -find $(datadir)/icons/ -type f -exec chmod a+r {} \;
  +     -(cd $(ROOT)/cgi-bin/ && $(TAR) cf - *) |\
  +      (cd $(datadir)/cgi-bin/ && $(TAR) xf -)
  +     -find $(datadir)/cgi-bin/ -type d -exec chmod a+rx {} \;
  +     -find $(datadir)/cgi-bin/ -type f -exec chmod a+r {} \;
  +     @echo "<=== [docroot]"
  +
   #   create the initial configuration by providing default files
   #   and initial config files while preserving existing ones.
   install-config:
        @echo "===> [config: Installing Apache configuration files]"
  -     for conf in httpd.conf access.conf srm.conf; do \
  +     [EMAIL PROTECTED] conf in httpd.conf access.conf srm.conf; do \
           (echo "##"; \
            echo "## $$conf -- Apache HTTP server configuration file"; \
            echo "##"; \
  @@ -322,40 +347,19 @@
                -e 
's;logs/access_log;$(localstatedir)/$(localstatesubdir_logs)/access_log;' \
                -e 
's;logs/error_log;$(localstatedir)/$(localstatesubdir_logs)/error_log;' \
                >.install.tmp && \
  +             echo "$(INSTALL_DATA) .install.tmp 
$(sysconfdir)/$$conf.default"; \
                $(INSTALL_DATA) .install.tmp $(sysconfdir)/$$conf.default; \
                if [ ! -f "$(sysconfdir)/$$conf" ]; then \
  +                     echo "$(INSTALL_DATA) .install.tmp 
$(sysconfdir)/$$conf"; \
                        $(INSTALL_DATA) .install.tmp $(sysconfdir)/$$conf; \
  +             else \
  +                     echo "[PRESERVING EXISTING CONFIG FILE: 
$(sysconfdir)/$$conf]"; \
                fi; \
        done
        $(CP) $(ROOT)/conf/mime.types $(sysconfdir)/mime.types
        $(CP) $(ROOT)/conf/magic $(sysconfdir)/magic
        @echo "<=== [config]"
   
  -#   install the Apache C header files 
  -install-include:
  -     @echo "===> [include: Installing Apache C header files]"
  -     $(CP) $(SRC)/include/*.h $(includedir)/
  -     osdir=`grep '^OSDIR' $(SRC)/Makefile.config | sed -e 's:^OSDIR=::'`; \
  -     $(CP) $(SRC)/$$osdir/os.h $(includedir)/
  -     @echo "<=== [include]"
  -
  -#   create an initial document root containing the Apache manual,
  -#   icons and distributed CGI scripts.
  -install-docroot:
  -     @echo "===> [docroot: Installing initial DocumentRoot files]"
  -     -(cd $(ROOT)/htdocs/ && $(TAR) cf - *) |\
  -      (cd $(datadir)/htdocs/ && $(TAR) xf -)
  -     -find $(datadir)/htdocs/ -type d -exec chmod a+rx {} \;
  -     -find $(datadir)/htdocs/ -type f -exec chmod a+r {} \;
  -     -(cd $(ROOT)/icons/ && $(TAR) cf - *) |\
  -      (cd $(datadir)/icons/ && $(TAR) xf -)
  -     -find $(datadir)/icons/ -type d -exec chmod a+rx {} \;
  -     -find $(datadir)/icons/ -type f -exec chmod a+r {} \;
  -     -(cd $(ROOT)/cgi-bin/ && $(TAR) cf - *) |\
  -      (cd $(datadir)/cgi-bin/ && $(TAR) xf -)
  -     -find $(datadir)/cgi-bin/ -type d -exec chmod a+rx {} \;
  -     -find $(datadir)/cgi-bin/ -type f -exec chmod a+r {} \;
  -     @echo "<=== [docroot]"
   
   ## ------------------------------------------------------------------
   ##                       Cleanup Targets  
  
  
  

Reply via email to