components/apache2/patches/Makefile.in.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 716 2d2eb53223b2
permissions -rw-r--r--
Close of build 04.
--- Makefile.in	Tue Nov 25 12:24:49 2008
+++ Makefile.in	Tue Feb 28 07:08:05 2012
@@ -49,6 +49,9 @@
 	    				-e 's#@@[email protected]@#$(PORT)#g' \
 	    				-e 's#@@[email protected]@#$(SSLPORT)#g' \
 	    				-e '/@@[email protected]@/d' \
+	    				-e 's#@@[email protected]@#$(sysconfdir)#g' \
+	    				-e 's#@@[email protected]@#$(runtimedir)#g' \
+	    				-e 's#@@[email protected]@#$(datadir)#g' \
 	    				< $$i; \
 	    		else \
 	    			sed -n -e '/@@[email protected]@/q' \
@@ -87,6 +90,19 @@
 	        cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
 	    fi ; \
 	fi
+	@if ! grep "{APACHE_USER_ENVVARS}" $(DESTDIR)$(sbindir)/envvars > /dev/null; then \
+	    echo '# If you run apachectl with APACHE_USER_ENVVARS in its environment'\
+		>> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo '# the specified file will be sourced here. The standard path is'\
+		>> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo '# /etc/apache2/2.2/envvars.' >> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo '' >> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo 'if [ "x$${APACHE_USER_ENVVARS}" != "x" -a -f "$${APACHE_USER_ENVVARS}" ]; then'\
+		>> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo '. "$${APACHE_USER_ENVVARS}"' >> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo 'fi' >> $(DESTDIR)$(sbindir)/envvars ; \
+	fi
+	@grep "^#" $(top_builddir)/support/envvars-std > $(DESTDIR)$(sysconfdir)/envvars
 
 # Create a sanitized config_vars.mk
 build/config_vars.out: build/config_vars.mk
@@ -165,7 +181,6 @@
 
 install-other:
 	@test -d $(DESTDIR)$(logfiledir) || $(MKINSTALLDIRS) $(DESTDIR)$(logfiledir)
-	@test -d $(DESTDIR)$(runtimedir) || $(MKINSTALLDIRS) $(DESTDIR)$(runtimedir)
 	@for ext in dll x; do \
 		file=apachecore.$$ext; \
 		if test -f $$file; then \