summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorobache <obache>2008-02-23 05:26:01 +0000
committerobache <obache>2008-02-23 05:26:01 +0000
commit4471e4e653ed9adf8750c2ff82855bdd2b72d858 (patch)
treedce0681a934146f778bf2112b439d2b165cfba5e /www
parent5336e8687a050e85bc145c4cc9a033a8de1466a7 (diff)
downloadpkgsrc-4471e4e653ed9adf8750c2ff82855bdd2b72d858.tar.gz
Add DESTDIR support.
Diffstat (limited to 'www')
-rw-r--r--www/apache/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile
index 919a08ac995..33ce656af7c 100644
--- a/www/apache/Makefile
+++ b/www/apache/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.197 2008/02/23 05:16:33 obache Exp $
+# $NetBSD: Makefile,v 1.198 2008/02/23 05:26:01 obache Exp $
#
# This pkg does not compile in mod_ssl, only the `mod_ssl EAPI' (a set of
# code hooks that allow mod_ssl to be compiled separately later, if desired).
@@ -14,6 +14,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://httpd.apache.org/
COMMENT= Apache HTTP (Web) server
+PKG_DESTDIR_SUPPORT= user-destdir
+
NETBSD_LOGO= sitedrivenby.gif
SITES.${NETBSD_LOGO}= http://www.NetBSD.org/images/logos/
@@ -46,6 +48,7 @@ CONFIGURE_ARGS+= --with-port=80
CONFIGURE_ENV+= OPTIM=${APACHE_CUSTOM_CFLAGS:Q}
CONFIGURE_ENV+= EAPI_MM="${BUILDLINK_PREFIX.libmm}"
CONFIGURE_ENV+= BINOWN=${BINOWN:Q} BINGRP=${BINGRP:Q}
+INSTALL_MAKE_FLAGS+= root=${DESTDIR:Q}
.include "../../mk/bsd.prefs.mk"
@@ -223,16 +226,16 @@ pre-install:
post-install:
.if !defined(NOPIC)
- cd ${PREFIX}/lib/httpd; ${MV} libproxy.so mod_proxy.so
+ cd ${DESTDIR}${PREFIX}/lib/httpd; ${MV} libproxy.so mod_proxy.so
.endif
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/httpd
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/httpd
for file in httpd.conf magic mime.types; do \
- ${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file}.default \
- ${PREFIX}/share/examples/httpd; \
- ${RM} -f ${PKG_SYSCONFDIR}/$${file}.default; \
+ ${INSTALL_DATA} ${DESTDIR}${PKG_SYSCONFDIR}/$${file}.default \
+ ${DESTDIR}${PREFIX}/share/examples/httpd; \
+ ${RM} -f ${DESTDIR}${PKG_SYSCONFDIR}/$${file}.default; \
done
- ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs
- ${CHMOD} ${NONBINMODE} ${PREFIX}/libexec/cgi-bin/printenv \
- ${PREFIX}/libexec/cgi-bin/test-cgi
+ ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${DESTDIR}${PREFIX}/share/httpd/htdocs
+ ${CHMOD} ${NONBINMODE} ${DESTDIR}${PREFIX}/libexec/cgi-bin/printenv \
+ ${DESTDIR}${PREFIX}/libexec/cgi-bin/test-cgi
.include "../../mk/bsd.pkg.mk"