ports/90309: [fix] www/apache22: envvars.d doesn't work
Simun Mikecin
sime at logos.hr
Mon Dec 12 21:50:06 UTC 2005
>Number: 90309
>Category: ports
>Synopsis: [fix] www/apache22: envvars.d doesn't work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 12 21:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Simun Mikecin
>Release: FreeBSD 6.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD data.home.hr 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Dec 6 22:53:01 CET 2005 root at data.home.hr:/var/obj/usr/src.6/sys/DATA amd64
>Description:
Scripts in ${LOCALBASE}/etc/apache22/envvars.d do not get loaded because
${LOCALBASE}/sbin/envvars tries to find them in
${LOCALBASE}/etc/apache21/envvars.d
>How-To-Repeat:
create a file /usr/local/etc/apache22/envvars.d/test.env which contains:
TESTVAR=testvalue
export TESTVAR
start apache and try to find TESTVAR in the apache environment.
If using php I suggest using phpinfo().
>Fix:
diff -urN apache22.old/files/patch-support:envvars-std.in apache22/files/patch-support:envvars-std.in
--- apache22.old/files/patch-support:envvars-std.in Sat Feb 5 19:26:21 2005
+++ apache22/files/patch-support:envvars-std.in Mon Dec 12 22:43:55 2005
@@ -5,7 +5,7 @@
#
@OS_SPECIFIC_VARS@
+
-+ENVVARS_DIR=%%PREFIX%%/etc/apache21/envvars.d
++ENVVARS_DIR=%%PREFIX%%/etc/apache22/envvars.d
+
+for envvars_file in $(ls ${ENVVARS_DIR}/*.env 2>/dev/null)
+do
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list