aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2004-07-26 23:24:05 +0800
committerroam <roam@FreeBSD.org>2004-07-26 23:24:05 +0800
commitb7c7fc647c94cbc25e604254f28165bc7051e97a (patch)
tree58b631c809fa14975192c24f825ca1bf4d8d09aa /www
parent46cf9838ed6ff8a06b163d1b130996523051f351 (diff)
downloadfreebsd-ports-gnome-b7c7fc647c94cbc25e604254f28165bc7051e97a.tar.gz
freebsd-ports-gnome-b7c7fc647c94cbc25e604254f28165bc7051e97a.tar.zst
freebsd-ports-gnome-b7c7fc647c94cbc25e604254f28165bc7051e97a.zip
In the rc.d/localpkg New World Order, the apache.sh startup script may
be executed when the apache_enable and other config variables have already been set, e.g. via /etc/rc.conf. In that case, load_rc_config will not do anything at all, and the "defaults" set in the script will override the user's settings. Fix this by honoring any previously-set config variables. Carte blanche by: ache (maintainer)
Diffstat (limited to 'www')
-rw-r--r--www/apache13/Makefile2
-rw-r--r--www/apache13/files/apache.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/www/apache13/Makefile b/www/apache13/Makefile
index 67497e5d18bb..be4927de7cac 100644
--- a/www/apache13/Makefile
+++ b/www/apache13/Makefile
@@ -7,7 +7,7 @@
PORTNAME= apache
PORTVERSION= 1.3.31
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
DISTNAME= apache_${PORTVERSION}
diff --git a/www/apache13/files/apache.sh b/www/apache13/files/apache.sh
index 03e31dd16321..3e3cdff59aba 100644
--- a/www/apache13/files/apache.sh
+++ b/www/apache13/files/apache.sh
@@ -13,9 +13,9 @@
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
-apache_enable="NO"
-apache_flags=""
-apache_pidfile="/var/run/httpd.pid"
+apache_enable=${apache_enable-"NO"}
+apache_flags=${apache_flags-""}
+apache_pidfile=${apache_pidfile-"/var/run/httpd.pid"}
. %%RC_SUBR%%