summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/apache13-modssl/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/www/apache13-modssl/Makefile b/www/apache13-modssl/Makefile
index 85f7a7a..7bd710c 100644
--- a/www/apache13-modssl/Makefile
+++ b/www/apache13-modssl/Makefile
@@ -71,12 +71,14 @@ check-depends::
@${FALSE}
.endif
-.if exists(${PREFIX}/etc/rc.d/apache.sh)
-PLIST_FILES+= etc/rc.d/apache.sh.sample
+.if exists(${PREFIX}/etc/rc.d/apache.sh) || !defined(USE_RC_SUBR)
+APACHE_SH?= etc/rc.d/apache.sh.sample
.else
-PLIST_FILES+= etc/rc.d/apache.sh
+APACHE_SH?= etc/rc.d/apache.sh
.endif
+PLIST_FILES+= ${APACHE_SH}
+
.if defined(WITH_APACHE_SUEXEC) && ${WITH_APACHE_SUEXEC} == yes
APACHE_SUEXEC_CALLER?=www
@@ -390,9 +392,9 @@ pre-install:
post-install:
.if defined(USE_RC_SUBR)
- ${INSTALL_SCRIPT} ${WRKSRC}/rcng.sh ${PREFIX}/etc/rc.d/apache.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/rcng.sh ${PREFIX}/${APACHE_SH}
.else
- ${INSTALL_SCRIPT} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh.sample
+ ${INSTALL_SCRIPT} ${WRKSRC}/apache.sh ${PREFIX}/${APACHE_SH}
.endif
.if defined(WITH_APACHE_MODSNMP) || defined(APACHE_WITH_MODSNMP)
@${MKDIR} ${DATADIR}/buckets
OpenPOWER on IntegriCloud