aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache20/Makefile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-04-19 04:29:41 +0800
committerijliao <ijliao@FreeBSD.org>2002-04-19 04:29:41 +0800
commitd3e1f82c0d7d25387ebe34a254ec4d3e3fe9f8b5 (patch)
tree9cd9c2afdea6da31ddf3ee5befda9cc70839407a /www/apache20/Makefile
parent08d2f60dacfb0ded591ee0c39d370d068a0bca92 (diff)
downloadfreebsd-ports-gnome-d3e1f82c0d7d25387ebe34a254ec4d3e3fe9f8b5.tar.gz
freebsd-ports-gnome-d3e1f82c0d7d25387ebe34a254ec4d3e3fe9f8b5.tar.zst
freebsd-ports-gnome-d3e1f82c0d7d25387ebe34a254ec4d3e3fe9f8b5.zip
Respect $DESTDIR for all paths
PR: 37211 Submitted by: maintainer
Diffstat (limited to 'www/apache20/Makefile')
-rw-r--r--www/apache20/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/www/apache20/Makefile b/www/apache20/Makefile
index 3d83bc636c3a..d2e3f3ded2bd 100644
--- a/www/apache20/Makefile
+++ b/www/apache20/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>