freebsd-ports/mail/jboss-mailservices/Makefile
Herve Quiroz 7f07af37d6 Fix jboss4 deploy path
PR:		77797
Submitted by:	maintainer
2005-02-20 22:42:23 +00:00

39 lines
1.1 KiB
Makefile

# New ports collection makefile for: JBoss Mail Services
# Date created: Thu Jan 6 13:39:18 EET 2005
# Whom: Anton Yudin <toha@toha.org.ua>
#
# $FreeBSD$
#
PORTNAME= jboss-mailservices
PORTVERSION= m1
CATEGORIES= mail java
MASTER_SITES= http://www.jboss.org/wiki/attach?page=MailServicesMilestoneReleases/
DISTNAME= ${PORTNAME}-${PORTVERSION}-final
MAINTAINER= toha@toha.org.ua
COMMENT= JBoss Mail Services
RUN_DEPENDS= ${LOCALBASE}/jboss4/server/default/conf/jboss-service.xml:${PORTSDIR}/java/jboss4
USE_JAVA= YES
JAVA_VERSION= 1.4+
NO_BUILD= YES
USE_ZIP= YES
DEPLOY_PATH= ${LOCALBASE}/jboss4/server/default/deploy
WRKSRC= ${WRKDIR}/deploy
.include <bsd.port.pre.mk>
do-install:
cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL} -d ${DEPLOY_PATH}/'{}' \; && \
${FIND} . -type f -exec ${INSTALL_DATA} '{}' ${DEPLOY_PATH}/'{}' \;
post-install:
@${FIND} -s ${WRKSRC}/mail.ear -not -type d 2>/dev/null | \
${SED} -ne 's,^${WRKSRC},${DEPLOY_PATH:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${FIND} -s -d ${WRKSRC}/mail.ear -type d 2>/dev/null | \
${SED} -ne 's,^${WRKSRC},@dirrm ${DEPLOY_PATH:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
.include <bsd.port.post.mk>