diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
commit | 3b0d97b0de8516db29699676c860489da3f7f0e1 (patch) | |
tree | bb388f6b2532587595653e67cce25229ed050cb8 /www/apache-tomcat55 | |
parent | 10abca39942a8f34d088f39ccc073fee44271274 (diff) | |
download | pkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/apache-tomcat55')
-rw-r--r-- | www/apache-tomcat55/Makefile | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/www/apache-tomcat55/Makefile b/www/apache-tomcat55/Makefile index cb74ffb4884..ddd4d697630 100644 --- a/www/apache-tomcat55/Makefile +++ b/www/apache-tomcat55/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2008/05/26 02:13:25 joerg Exp $ +# $NetBSD: Makefile,v 1.16 2008/06/20 01:09:40 joerg Exp $ DISTNAME= apache-tomcat-${TOMCAT_VERSION} CATEGORIES= www java @@ -9,6 +9,8 @@ MAINTAINER= abs@NetBSD.org HOMEPAGE= http://tomcat.apache.org/ COMMENT= The Apache Project's Java Servlet 2.4 and JSP 2.0 server +PKG_DESTDIR_SUPPORT= user-destdir + TOMCAT_VERSION= 5.5.26 USE_JAVA= run @@ -60,22 +62,23 @@ FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME:Q} TOMCAT_LIB=${TOMCAT_LIB:Q} do-build: @${MV} ${WRKSRC}/conf ${WRKDIR} + +INSTALLATION_DIRS+= ${EGDIR2} ${TOMCAT_LIB} + do-install: - ${INSTALL_DATA_DIR} ${EGDIR2} .for f in ${CFILES} - ${INSTALL_DATA} ${WRKDIR}/conf/${f} ${EGDIR} + ${INSTALL_DATA} ${WRKDIR}/conf/${f} ${DESTDIR}${EGDIR} .endfor .for f in ${CF2FILES} - ${INSTALL_DATA} ${WRKDIR}/conf/${CATALINA_DIR}/${f} ${EGDIR2} + ${INSTALL_DATA} ${WRKDIR}/conf/${CATALINA_DIR}/${f} ${DESTDIR}${EGDIR2} .endfor - ${INSTALL_DATA_DIR} ${TOMCAT_LIB} ${RM} -rf ${WRKSRC}/temp/* - @cd ${WRKSRC} && pax -rw -pm . ${TOMCAT_LIB} + cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TOMCAT_LIB} - ${FIND} ${TOMCAT_LIB} -type f -name \*.bat -print | ${XARGS} ${RM} -f - ${FIND} ${TOMCAT_LIB} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE} - ${FIND} ${TOMCAT_LIB} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE} - ${FIND} ${TOMCAT_LIB} -type f -name \*.sh -print | \ + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -name \*.bat -print | ${XARGS} ${RM} -f + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE} + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE} + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -name \*.sh -print | \ ${XARGS} ${CHMOD} ${BINMODE} .include "../../mk/java-vm.mk" |