diff options
author | clement <clement@FreeBSD.org> | 2004-12-18 01:52:20 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-12-18 01:52:20 +0800 |
commit | 9ba4b102720667feff93d69c9c4a189626de5652 (patch) | |
tree | ac3765374f16317087021182768df11909696efe /www/apache20/Makefile | |
parent | 8b5231d49208b20fec9e196c9610edec25903b9f (diff) | |
download | freebsd-ports-graphics-9ba4b102720667feff93d69c9c4a189626de5652.tar.gz freebsd-ports-graphics-9ba4b102720667feff93d69c9c4a189626de5652.tar.zst freebsd-ports-graphics-9ba4b102720667feff93d69c9c4a189626de5652.zip |
- Remove useless APR_FROM_PORTS check in post-install
- Add support for modular sbin/envvars
You can now put your own scripts you want to execute at envvars
stage in ${PREFIX}/etc/apache2/envvars.d
Only script ending by *.env are run.
Example:
/usr/local/etc/apache2/envvars.d/mod_python3.env
Discussed with: perky on -apache@
Diffstat (limited to 'www/apache20/Makefile')
-rw-r--r-- | www/apache20/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/www/apache20/Makefile b/www/apache20/Makefile index 6ff64538a09..39f23879999 100644 --- a/www/apache20/Makefile +++ b/www/apache20/Makefile @@ -213,17 +213,18 @@ post-configure: s,%%WWWGRP%%,${WWWGRP}, ; \ s,%%WWWBASEDIR%%,${PREFIX}/www," \ ${WRKSRC}/docs/conf/httpd-std.conf + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ + ${WRKSRC}/support/envvars-std pre-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: + @${MKDIR} ${PREFIX}/etc/apache2/envvars.d @${MKDIR} ${PREFIX}/etc/apache2/Includes -.if !defined(WITH_APR_FROM_PORTS) - @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup script." + @${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup script." @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh -.endif - @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup script." + @${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/apache2.sh startup script." @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh @${ECHO_CMD} "" @${CAT} ${PKGMESSAGE} |