components/apache2/patches/Makefile.in.patch
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Mon, 24 Oct 2011 15:15:55 -0700
changeset 538 d8d7345db00f
parent 278 77b380ba9d84
child 716 2d2eb53223b2
permissions -rw-r--r--
7104397 Userland should split out package BUILD_VERSION information Added tag s11 for changeset 10bd3a98a582

--- Makefile.in	Tue Nov 25 12:24:49 2008
+++ Makefile.in	Thu May 19 08:09:10 2011
@@ -49,6 +49,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' \
@@ -87,6 +90,12 @@
 	        cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
 	    fi ; \
 	fi
+	@if ! grep "$(sysconfdir)/envvars" $(DESTDIR)$(sbindir)/envvars > /dev/null; then \
+	    echo 'if [ -f $(sysconfdir)/envvars ]; then' >> $(DESTDIR)$(sbindir)/envvars ; \
+	    echo '. $(sysconfdir)/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 +174,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 \