summaryrefslogtreecommitdiff
path: root/Mk/bsd.apache.mk
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2014-10-04 10:53:21 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2014-10-04 10:53:21 +0000
commita6fda1e7ec5b807c7085dace4ff6b589ccc59b9d (patch)
tree502041f2ba55bacee110392e4851c8740693f8e9 /Mk/bsd.apache.mk
parent- remove FreeBSD-specific bits (diff)
- fix documentation of user controlled parameters for usage in /etc/make.conf.
APACHE_PORT should be used only in combination with "DEFAULT_VERSIONS+=apache2.2" - ripp AP_BUILDEXT, it is only used in bsd.apache.mk and not exported
Notes
Notes: svn path=/head/; revision=369952
Diffstat (limited to 'Mk/bsd.apache.mk')
-rw-r--r--Mk/bsd.apache.mk27
1 files changed, 17 insertions, 10 deletions
diff --git a/Mk/bsd.apache.mk b/Mk/bsd.apache.mk
index 341bd5a423cf..1c548536835e 100644
--- a/Mk/bsd.apache.mk
+++ b/Mk/bsd.apache.mk
@@ -7,18 +7,26 @@
# Please view me with 4 column tabs!
# =========================================================================
-# Parameter APACHE_PORT (user controlled):
+# User controlled parameters for usage in /etc/make.conf:
#
-# The parameter APACHE_PORT can be used in /etc/make.conf to
-# overwrite the default apache port.
+# DEFAULT_VERSIONS - define the default apache version
+# valid args: apache=2.2, apache=2.4
#
-# This parameter should never be used in the Makefile of a port!
+# APACHE_PORT - use www/apache22-(event|itk|peruser|worker)-mpm
+# instead www/apache22. Use this parameter only in
+# combination with "DEFAULT_VERSIONS+= apache=2.2"
#
# Example entry in /etc/make.conf:
-# APACHE_PORT= www/apache22
+# - Set apache22 as default version
+# DEFAULT_VERSIONS+= apache=2.2
#
-# To get a list of "possible" valid values execute the command:
-# $> egrep 'apache[12]' ports/www/Makefile | awk '{print "www/" $3}'
+# - Additional use a special www/apache22-$MPM port
+# APACHE_PORT= www/apache22-event-mpm
+#
+# Note:
+# - This parameters should never be used in the Makefile of a port!
+# - To get a list of "possible" APACHE_PORT values execute the command:
+# $> awk '/apache22-/ {print "www/" $3}' ports/www/Makefile
#
# =========================================================================
#
@@ -354,7 +362,6 @@ IGNORE?= PREFIX must be equal to APXS_PREFIX.
. endif
.endif
-AP_BUILDEXT= la
APACHEMODDIR= libexec/apache${APACHE_VERSION}
APACHEINCLUDEDIR=include/apache${APACHE_VERSION}
APACHEETCDIR= etc/apache${APACHE_VERSION}
@@ -494,13 +501,13 @@ ap-gen-plist:
.if !target(do-build)
do-build: ap-gen-plist
- @cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
+ (cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.la ${SRC_FILE})
.endif
.if !target(do-install)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
- @${APXS} -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} -i -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}
+ ${APXS} -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} -i -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.la
. if !defined(DEBUG)
@${ECHO_MSG} "===> strip ${APACHEMODDIR}/${MODULENAME}.so"
@[ -e ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so ] && ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so