components/apache24/patches/Makefile.in.patch
changeset 2079 46ce7840065c
parent 716 2d2eb53223b2
child 4697 2be298b79293
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/apache24/patches/Makefile.in.patch	Thu Sep 11 12:35:18 2014 -0700
@@ -0,0 +1,43 @@
+Patch origin: in-house
+Patch status: Solaris-specific; not suitable for upstream
+
+--- Makefile.in
++++ Makefile.in
+@@ -50,6 +50,9 @@
+ 	    				-e 's#@@Port@@#$(PORT)#g' \
+ 	    				-e 's#@@SSLPort@@#$(SSLPORT)#g' \
+ 	    				-e '/@@LoadModule@@/d' \
++	    				-e 's#@@SysconfDir@@#$(sysconfdir)#g' \
++	    				-e 's#@@RuntimeDir@@#$(runtimedir)#g' \
++	    				-e 's#@@DataDir@@#$(datadir)#g' \
+ 	    				< $$i; \
+ 	    		else \
+ 	    			sed -n -e '/@@LoadModule@@/q' \
+@@ -96,6 +99,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.4/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
+@@ -182,7 +198,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 \