aboutsummaryrefslogtreecommitdiff
path: root/www/apache21/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-04-18 20:29:41 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-04-18 20:29:41 +0000
commita7fe341967a9b6a7d94feb12765b74f343905ad4 (patch)
treee657c5991a80a7c090d5d8e21574355994aed11c /www/apache21/Makefile
parentd9a5a2d7f4c9b6636035fe77567179ad04955b5c (diff)
downloadports-a7fe341967a9b6a7d94feb12765b74f343905ad4.tar.gz
ports-a7fe341967a9b6a7d94feb12765b74f343905ad4.zip
Notes
Diffstat (limited to 'www/apache21/Makefile')
-rw-r--r--www/apache21/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/www/apache21/Makefile b/www/apache21/Makefile
index 3d83bc636c3a..d2e3f3ded2bd 100644
--- a/www/apache21/Makefile
+++ b/www/apache21/Makefile
@@ -41,7 +41,9 @@ CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
SHARED_MODULES= all cgid charset_lite ext_filter case_filter case_filter_in \
deflate bucketeer
-RC_SUB= -e 's,@@PREFIX@@,${PREFIX},g'
+RC_SUB= -e 's,@@PREFIX@@,${PREFIX},g' -e 's,@@DESTDIR@@,${DESTDIR},g'
+MAKE_ENV+= DESTDIR=${DESTDIR}
+PLIST_SUB+= DESTDIR=${DESTDIR}
.if defined(NOPORTDOCS)
MAKE_ENV+= NOPORTDOCS=YES
@@ -68,7 +70,7 @@ CONFIGURE_ARGS+= --enable-suexec \
--with-suexec-uidmin=1000 --with-suexec-gidmin=1000 \
--with-suexec-docroot="${PREFIX}/www/data" \
--with-suexec-safepath="${PREFIX}/bin:${LOCALBASE}/bin:/usr/bin:/bin" \
- --with-suexec-logfile="/var/log/httpd-suexec.log"
+ --with-suexec-logfile="${DESTDIR}/var/log/httpd-suexec.log"
PLIST_SUB+= SUEXEC=""
.else
PLIST_SUB+= SUEXEC="@comment "
@@ -112,6 +114,7 @@ post-patch:
); done
@${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} -f {} \;
@${SED} ${RC_SUB} ${FILESDIR}/apache.sh >${WRKDIR}/apache2.sh
+ @${SED} ${RC_SUB} ${FILESDIR}/config.layout >>${WRKSRC}/config.layout
.if ${OSVERSION} >= 500032
.for ltfile in srclib/pcre/ltmain.sh srclib/apr/build/ltmain.sh \
srclib/apr-util/xml/expat/conftools/ltmain.sh
@@ -128,5 +131,7 @@ post-install:
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh; \
fi
+ [ -d ${DESTDIR}/var/log ] || ${MKDIR} ${DESTDIR}/var/log
+ [ -d ${DESTDIR}/var/run ] || ${MKDIR} ${DESTDIR}/var/run
.include <bsd.port.post.mk>