diff options
author | joerg <joerg> | 2009-07-07 19:07:35 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-07-07 19:07:35 +0000 |
commit | c340a0de0134a6b17d967e6d4ac807e1b713fd74 (patch) | |
tree | 23fbe46a07f5b0c97a756a381fb9a769777b8600 /www/jakarta-tomcat4 | |
parent | ff8a1923575d5695bda64113e954791aba20d475 (diff) | |
download | pkgsrc-c340a0de0134a6b17d967e6d4ac807e1b713fd74.tar.gz |
user-destdir support
Diffstat (limited to 'www/jakarta-tomcat4')
-rw-r--r-- | www/jakarta-tomcat4/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/www/jakarta-tomcat4/Makefile b/www/jakarta-tomcat4/Makefile index 11fe72e2794..5c03d8420e0 100644 --- a/www/jakarta-tomcat4/Makefile +++ b/www/jakarta-tomcat4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/05/26 02:13:25 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2009/07/07 19:09:45 joerg Exp $ PKGNAME= jakarta-tomcat4-${TOMCAT_VERSION} DISTNAME= jakarta-tomcat-${TOMCAT_VERSION} @@ -12,6 +12,8 @@ MAINTAINER= erh@NetBSD.org HOMEPAGE= http://tomcat.apache.org/ COMMENT= The Apache Project's Java Servlet 2.3 and JSP 1.2 server +PKG_DESTDIR_SUPPORT= user-destdir + TOMCAT_VERSION= 4.1.30 # This needs java 1.4 or higher. @@ -43,14 +45,15 @@ do-build: ${MV} -f ${WRKSRC}/conf/${FILE} ${WRKSRC}/conf/${FILE}.default .endfor +INSTALLATION_DIRS= ${TOMCAT_LIB} + do-install: - ${INSTALL_DATA_DIR} ${TOMCAT_LIB} - cd ${WRKSRC} && pax -rw -pm . ${TOMCAT_LIB} - @${FIND} ${TOMCAT_LIB} -type f -print \ + cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TOMCAT_LIB} + @${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -print \ | ${XARGS} ${CHMOD} a+r - @${FIND} ${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \ + @${FIND} ${DESTDIR}${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \ | ${XARGS} ${CHMOD} a+rx - @${FIND} ${TOMCAT_LIB} -type d -print \ + @${FIND} ${DESTDIR}${TOMCAT_LIB} -type d -print \ | ${XARGS} ${CHMOD} a+rx .include "../../mk/bsd.pkg.mk" |