diff options
author | clement <clement@FreeBSD.org> | 2005-01-11 13:45:05 +0000 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2005-01-11 13:45:05 +0000 |
commit | 4e1149fd37dd757e4994fdc980cd5b0b2461f5b2 (patch) | |
tree | aeea5674d5102def97d6322c40f75cf06f776ac7 /www/apache2 | |
parent | b35a929f7a4cd48ba6e761d978f0d1c13b180a18 (diff) | |
download | FreeBSD-ports-4e1149fd37dd757e4994fdc980cd5b0b2461f5b2.zip FreeBSD-ports-4e1149fd37dd757e4994fdc980cd5b0b2461f5b2.tar.gz |
o startup script:
- Use apache{2,21}flags variable in apache{2,21}_checkconfig().
It fixes restart when apache2ssl_enable is set to YES in rc.conf
and httpd.conf is "old" (i.e. non -DSSL safe) [1]
o Makefile
- split post-install target to add install-startup-script:
User can now upgrade startup script without reinstalling apache2.
NOTE: this is NOT package-safe and NOT supported, even if in most of
cases they're no risk.
Noticed by: many [1]
Diffstat (limited to 'www/apache2')
-rw-r--r-- | www/apache2/Makefile | 19 | ||||
-rw-r--r-- | www/apache2/files/apache.sh | 2 |
2 files changed, 15 insertions, 6 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile index 9f5fe18..5c21853 100644 --- a/www/apache2/Makefile +++ b/www/apache2/Makefile @@ -219,13 +219,22 @@ post-configure: pre-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL -post-install: - @${MKDIR} ${PREFIX}/etc/apache2/envvars.d - @${MKDIR} ${PREFIX}/etc/apache2/Includes +install-startup-script: +.if !exists(${WRKDIR}/apache2libs.sh) || !exists(${WRKDIR}/apache2.sh) + @${MKDIR} ${WRKDIR} + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh +.endif @${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 + @${INSTALL_SCRIPT} -m 555 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh @${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/apache2.sh startup script." - @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh + @${INSTALL_SCRIPT} -m 555 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh + +post-install: install-startup-script + @${MKDIR} ${PREFIX}/etc/apache2/envvars.d + @${MKDIR} ${PREFIX}/etc/apache2/Includes @${ECHO_CMD} "" @${CAT} ${PKGMESSAGE} diff --git a/www/apache2/files/apache.sh b/www/apache2/files/apache.sh index fc71c28..e3e6d66 100644 --- a/www/apache2/files/apache.sh +++ b/www/apache2/files/apache.sh @@ -49,7 +49,7 @@ checkyesno apache2ssl_enable && \ apache2_checkconfig() { echo "Performing sanity check on apache2 configuration:" - ${command} -t + ${command} ${apache2_flags} -t } apache2_precmd() |