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 | |
parent | ff8a1923575d5695bda64113e954791aba20d475 (diff) | |
download | pkgsrc-c340a0de0134a6b17d967e6d4ac807e1b713fd74.tar.gz |
user-destdir support
Diffstat (limited to 'www')
-rw-r--r-- | www/jakarta-tomcat4/Makefile | 15 | ||||
-rw-r--r-- | www/jakarta-tomcat5/Makefile | 23 | ||||
-rw-r--r-- | www/jalbum/Makefile | 8 |
3 files changed, 27 insertions, 19 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" diff --git a/www/jakarta-tomcat5/Makefile b/www/jakarta-tomcat5/Makefile index 1e0a1e801f3..a6bee24adcb 100644 --- a/www/jakarta-tomcat5/Makefile +++ b/www/jakarta-tomcat5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2008/05/26 02:13:25 joerg Exp $ +# $NetBSD: Makefile,v 1.17 2009/07/07 19:09:09 joerg Exp $ PKGNAME= jakarta-tomcat5-${TOMCAT_VERSION} DISTNAME= jakarta-tomcat-${TOMCAT_VERSION} @@ -11,6 +11,8 @@ MAINTAINER= erh@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.0.30 USE_JAVA= run @@ -52,21 +54,22 @@ FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME:Q} TOMCAT_LIB=${TOMCAT_LIB:Q} do-build: @${MV} ${WRKSRC}/conf ${WRKDIR} + +INSTALLATION_DIRS= ${EGDIR} ${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} - @(cd ${WRKSRC} && pax -rw -pm . ${TOMCAT_LIB}; \ - ${FIND} ${TOMCAT_LIB} -type f -print | ${XARGS} ${CHMOD} a+r; \ - ${FIND} ${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \ + @(cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TOMCAT_LIB}; \ + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -print | ${XARGS} ${CHMOD} a+r; \ + ${FIND} ${DESTDIR}${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \ | ${XARGS} ${CHMOD} a+rx; \ - ${FIND} ${TOMCAT_LIB} -type d -print | ${XARGS} ${CHMOD} a+rx; \ - ${FIND} ${TOMCAT_LIB} -type f -name \*.bat -print | \ + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type d -print | ${XARGS} ${CHMOD} a+rx; \ + ${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -name \*.bat -print | \ ${XARGS} ${RM} -f) .include "../../mk/java-vm.mk" diff --git a/www/jalbum/Makefile b/www/jalbum/Makefile index 768fdce1bfe..0bdc49aa5e6 100644 --- a/www/jalbum/Makefile +++ b/www/jalbum/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2009/05/12 12:27:20 martti Exp $ +# $NetBSD: Makefile,v 1.22 2009/07/07 19:07:35 joerg Exp $ DISTNAME= JAlbum${VERSION} PKGNAME= jalbum-${VERSION} @@ -13,6 +13,8 @@ HOMEPAGE= http://jalbum.net/ COMMENT= Web photo album generator LICENSE= gnu-lgpl-v2 +PKG_DESTDIR_SUPPORT= user-destdir + VERSION= 7.1 USE_JAVA= run @@ -30,8 +32,8 @@ do-build: < ${FILESDIR:Q}/jalbum > ${WRKDIR:Q}/jalbum do-install: - ${INSTALL_SCRIPT} ${WRKDIR:Q}/jalbum ${PREFIX:Q}/bin - (cd ${WRKDIR:Q}/JAlbum && pax -rw * ${PREFIX:Q}/share/jalbum) + ${INSTALL_SCRIPT} ${WRKDIR:Q}/jalbum ${DESTDIR}${PREFIX}/bin + (cd ${WRKDIR:Q}/JAlbum && pax -rw * ${DESTDIR}${PREFIX}/share/jalbum) .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" |