diff options
author | clement <clement@FreeBSD.org> | 2007-09-10 22:48:36 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2007-09-10 22:48:36 +0800 |
commit | 29cdecce9d8c345683923a396a421fa022fcd19a (patch) | |
tree | 816d0c9ec4fe192fd2f5193cea89df8aabf15516 /www | |
parent | fc7136b5394deb7022ceb0f773d2b571543d3e09 (diff) | |
download | freebsd-ports-gnome-29cdecce9d8c345683923a396a421fa022fcd19a.tar.gz freebsd-ports-gnome-29cdecce9d8c345683923a396a421fa022fcd19a.tar.zst freebsd-ports-gnome-29cdecce9d8c345683923a396a421fa022fcd19a.zip |
- Re-add apache2ssl_enable support
Noticed by: Oliver Brandmueller <ob at e-Gitt dot NET>
Diffstat (limited to 'www')
-rw-r--r-- | www/apache20/Makefile | 1 | ||||
-rw-r--r-- | www/apache20/files/apache2.sh.in | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/www/apache20/Makefile b/www/apache20/Makefile index 20c7b9857245..450cc1a2861a 100644 --- a/www/apache20/Makefile +++ b/www/apache20/Makefile @@ -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/} diff --git a/www/apache20/files/apache2.sh.in b/www/apache20/files/apache2.sh.in index 9c45b91479ea..65aef9d9d091 100644 --- a/www/apache20/files/apache2.sh.in +++ b/www/apache20/files/apache2.sh.in @@ -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 |