1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

- Re-add apache2ssl_enable support

Noticed by:	 Oliver Brandmueller <ob at e-Gitt dot NET>
This commit is contained in:
Clement Laforet 2007-09-10 14:48:36 +00:00
parent 2f54689f1f
commit 3f99c30a52
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199280
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@
PORTNAME= apache
PORTVERSION= 2.0.61
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \
${MASTER_SITE_LOCAL:S/$/:powerlogo/}

View File

@ -13,6 +13,9 @@
# Set it to "YES" to enable apache2
# apache2_profiles (str): Set to "" by default.
# Define your profiles here.
# apache2ssl_enable (bool): Set to "NO" by default.
# Set it to "YES" to start apache with SSL
# (if <IfDefined SSL> exists in httpd.conf)
# apache2limits_enable (bool):Set to "NO" by default.
# Set it to yes to run `limits $limits_args`
# just before apache starts.
@ -38,6 +41,7 @@ pidfile="${_pidprefix}.pid"
required_files=%%PREFIX%%/etc/apache2/httpd.conf
[ -z "$apache2_enable" ] && apache2_enable="NO"
[ -z "${apache2ssl_enable}" ] && apache2ssl_enable="NO"
[ -z "$apache2_profiles" ] && apache2_profiles=""
[ -z "$apache2_flags" ] && apache2_flags=""
[ -z "$apache2limits_enable" ] && apache2limits_enable="NO"
@ -56,6 +60,7 @@ if [ -n "$2" ]; then
fi
required_files="${apache2_configfile}"
eval apache2_enable="\${apache2_${profile}_enable:-${apache2_enable}}"
eval apache2ssl_enable=\${apache2ssl_${profile}_enable:-NO}
eval apache2_flags="\${apache2_${profile}_flags:-${apache2_flags}}"
eval apache2_http_accept_enable="\${apache2_${profile}_http_accept_enable:-${apache2_http_accept_enable}}"
eval apache2limits_enable="\${apache2limits_${profile}_enable:-${apache2limits_enable}}"
@ -80,6 +85,9 @@ else
fi
fi
checkyesno apache2ssl_enable && \
apache2_flags="-DSSL $apache2_flags"
apache2_requirepidfile()
{
if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then