tabspace: 8
This commit is contained in:
parent
dd707e413a
commit
e48106740b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358217
1 changed files with 33 additions and 36 deletions
|
@ -1,6 +1,3 @@
|
|||
#-*- tab-width: 4; -*-
|
||||
# ex:ts=4
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# bsd.apache.mk - Apache related macros.
|
||||
|
@ -86,7 +83,7 @@ Apache_Pre_Include= bsd.apache.mk
|
|||
WARNING+= "DEFAULT_APACHE_VER is defined, consider using DEFAULT_VERSIONS=apache=${DEFAULT_APACHE_VER} instead"
|
||||
.endif
|
||||
|
||||
DEFAULT_APACHE_VERSION?= ${APACHE_DEFAULT:S/.//}
|
||||
DEFAULT_APACHE_VERSION?= ${APACHE_DEFAULT:S/.//}
|
||||
APACHE_SUPPORTED_VERSION= 22 24 # preferred version first
|
||||
|
||||
# Print warnings
|
||||
|
@ -125,16 +122,16 @@ IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE ( no version specified )
|
|||
# used only by www/cakephp* ports
|
||||
.if defined(SLAVE_PORT_MODULES)
|
||||
DEFAULT_MODULES_CATEGORIES+= SLAVE_PORT
|
||||
ALL_MODULES_CATEGORIES+= SLAVE_PORT
|
||||
ALL_MODULES_CATEGORIES+= SLAVE_PORT
|
||||
.endif
|
||||
|
||||
# Module selection
|
||||
.for category in ${DEFAULT_MODULES_CATEGORIES}
|
||||
DEFAULT_MODULES+= ${${category}_MODULES}
|
||||
DEFAULT_MODULES+= ${${category}_MODULES}
|
||||
.endfor
|
||||
|
||||
.for category in ${ALL_MODULES_CATEGORIES}
|
||||
AVAILABLE_MODULES+= ${${category}_MODULES}
|
||||
AVAILABLE_MODULES+= ${${category}_MODULES}
|
||||
.endfor
|
||||
|
||||
# detect invalid lowercase params in make.conf
|
||||
|
@ -147,13 +144,13 @@ IGNORE= lowercase WITH_STATIC_MODULES="${WITH_STATIC_MODULES}"\
|
|||
# Setting "@comment " as default.
|
||||
.for module in ${AVAILABLE_MODULES:O}
|
||||
${module}_PLIST_SUB= "@comment "
|
||||
_DISABLE_MODULES+= --disable-${module:tl}
|
||||
_DISABLE_MODULES+= --disable-${module:tl}
|
||||
.endfor
|
||||
|
||||
# Configure
|
||||
# dirty hacks to make sure all modules are disabled before we select them
|
||||
.if ${USE_APACHE:Mcommon2*}
|
||||
CONFIGURE_ARGS+= ${_DISABLE_MODULES:O:u}
|
||||
CONFIGURE_ARGS+= ${_DISABLE_MODULES:O:u}
|
||||
.endif
|
||||
|
||||
# OPTIONS handling
|
||||
|
@ -161,7 +158,7 @@ CONFIGURE_ARGS+= ${_DISABLE_MODULES:O:u}
|
|||
. if ${PORT_OPTIONS:M${module}}
|
||||
_APACHE_MODULES+= ${module}
|
||||
. else
|
||||
WITHOUT_MODULES+= ${module}
|
||||
WITHOUT_MODULES+= ${module}
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
|
@ -175,34 +172,34 @@ WITH_ALL_STATIC_MODULES= yes
|
|||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSUEXEC}
|
||||
_APACHE_MODULES+= ${SUEXEC_MODULES}
|
||||
_APACHE_MODULES+= ${SUEXEC_MODULES}
|
||||
SUEXEC_CONFARGS= with-suexec
|
||||
|
||||
# SUEXEC_DOCROOT should exist
|
||||
SUEXEC_DOCROOT?= ${PREFIX}/www/data
|
||||
#SUEXEC_DOCROOT?= ${WWWDIR}
|
||||
SUEXEC_USERDIR?= public_html
|
||||
SUEXEC_DOCROOT?= ${PREFIX}/www/data
|
||||
#SUEXEC_DOCROOT?= ${WWWDIR}
|
||||
SUEXEC_USERDIR?= public_html
|
||||
# avoid duplicate search paths
|
||||
.if ${LOCALBASE} == ${PREFIX}
|
||||
SUEXEC_SAFEPATH?= ${LOCALBASE}/bin:/usr/bin:/bin
|
||||
SUEXEC_SAFEPATH?= ${LOCALBASE}/bin:/usr/bin:/bin
|
||||
.else
|
||||
SUEXEC_SAFEPATH?= ${PREFIX}/bin:${LOCALBASE}/bin:/usr/bin:/bin
|
||||
SUEXEC_SAFEPATH?= ${PREFIX}/bin:${LOCALBASE}/bin:/usr/bin:/bin
|
||||
.endif
|
||||
SUEXEC_LOGFILE?= /var/log/httpd-suexec.log
|
||||
SUEXEC_UIDMIN?= 1000
|
||||
SUEXEC_GIDMIN?= 1000
|
||||
SUEXEC_CALLER?= ${WWWOWN}
|
||||
CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-caller=${SUEXEC_CALLER} \
|
||||
--${SUEXEC_CONFARGS}-uidmin=${SUEXEC_UIDMIN} \
|
||||
--${SUEXEC_CONFARGS}-gidmin=${SUEXEC_GIDMIN} \
|
||||
--${SUEXEC_CONFARGS}-userdir="${SUEXEC_USERDIR}" \
|
||||
--${SUEXEC_CONFARGS}-docroot="${SUEXEC_DOCROOT}" \
|
||||
--${SUEXEC_CONFARGS}-safepath="${SUEXEC_SAFEPATH}" \
|
||||
--${SUEXEC_CONFARGS}-logfile="${SUEXEC_LOGFILE}" \
|
||||
--${SUEXEC_CONFARGS}-bin="${PREFIX}/sbin/suexec"
|
||||
SUEXEC_LOGFILE?= /var/log/httpd-suexec.log
|
||||
SUEXEC_UIDMIN?= 1000
|
||||
SUEXEC_GIDMIN?= 1000
|
||||
SUEXEC_CALLER?= ${WWWOWN}
|
||||
CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-caller=${SUEXEC_CALLER} \
|
||||
--${SUEXEC_CONFARGS}-uidmin=${SUEXEC_UIDMIN} \
|
||||
--${SUEXEC_CONFARGS}-gidmin=${SUEXEC_GIDMIN} \
|
||||
--${SUEXEC_CONFARGS}-userdir="${SUEXEC_USERDIR}" \
|
||||
--${SUEXEC_CONFARGS}-docroot="${SUEXEC_DOCROOT}" \
|
||||
--${SUEXEC_CONFARGS}-safepath="${SUEXEC_SAFEPATH}" \
|
||||
--${SUEXEC_CONFARGS}-logfile="${SUEXEC_LOGFILE}" \
|
||||
--${SUEXEC_CONFARGS}-bin="${PREFIX}/sbin/suexec"
|
||||
|
||||
. if defined(WITH_SUEXEC_UMASK)
|
||||
CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-umask=${SUEXEC_UMASK}
|
||||
CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-umask=${SUEXEC_UMASK}
|
||||
. endif
|
||||
.endif
|
||||
|
||||
|
@ -303,11 +300,11 @@ _USE_APACHE:= ${USE_APACHE_BUILD}
|
|||
_USE_APACHE:= ${USE_APACHE_RUN}
|
||||
.endif
|
||||
|
||||
_APACHE_VERSION_CHECK:= ${_USE_APACHE:C/^([1-9][0-9])$/\1-\1/}
|
||||
_APACHE_VERSION_CHECK:= ${_USE_APACHE:C/^([1-9][0-9])$/\1-\1/}
|
||||
_APACHE_VERSION_MINIMUM_TMP:= ${_APACHE_VERSION_CHECK:C/([1-9][0-9])[-+].*/\1/}
|
||||
_APACHE_VERSION_MINIMUM:= ${_APACHE_VERSION_MINIMUM_TMP:M[1-9][0-9]}
|
||||
_APACHE_VERSION_MINIMUM:= ${_APACHE_VERSION_MINIMUM_TMP:M[1-9][0-9]}
|
||||
_APACHE_VERSION_MAXIMUM_TMP:= ${_APACHE_VERSION_CHECK:C/.*-([1-9][0-9])/\1/}
|
||||
_APACHE_VERSION_MAXIMUM:= ${_APACHE_VERSION_MAXIMUM_TMP:M[1-9][0-9]}
|
||||
_APACHE_VERSION_MAXIMUM:= ${_APACHE_VERSION_MAXIMUM_TMP:M[1-9][0-9]}
|
||||
|
||||
.if defined(_APACHE_VERSION)
|
||||
# Validate Apache version whether it meets USE_APACHE version restriction.
|
||||
|
@ -429,15 +426,15 @@ print-closest-mirrors:
|
|||
|
||||
.if !target(show-modules)
|
||||
show-modules:
|
||||
.if !empty(APACHE_MODULES)
|
||||
.if !empty(APACHE_MODULES)
|
||||
.for module in ${AVAILABLE_MODULES}
|
||||
@${PRINTF} "%-20s : " ${module}
|
||||
. if ${APACHE_MODULES:M${module}}
|
||||
@${ECHO} -n "enabled "
|
||||
. if !empty(WITH_STATIC_MODULES) && ${WITH_STATIC_MODULES:M${module}}
|
||||
@${ECHO_CMD} " (static)"
|
||||
@${ECHO_CMD} " (static)"
|
||||
. else
|
||||
@${ECHO_CMD} "(shared)"
|
||||
@${ECHO_CMD} "(shared)"
|
||||
. endif
|
||||
. else
|
||||
@${ECHO_CMD} disabled
|
||||
|
@ -445,7 +442,7 @@ show-modules:
|
|||
.endfor
|
||||
.else
|
||||
.for module in ${AVAILABLE_MODULES}
|
||||
@${PRINTF} "%-20s : disabled\n" ${module}
|
||||
@${PRINTF} "%-20s : disabled\n" ${module}
|
||||
.endfor
|
||||
.endif
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue