422bce3414
my ports in the past 3 weeks while ports were broken on any 10.x machines, which means I'm unable to maintain them. So let people know that there's no available support for them until things are back to normal (which also means that anyone with spare time will be able to fix them without getting approval).
82 lines
2.0 KiB
Makefile
82 lines
2.0 KiB
Makefile
# New ports collection makefile for: xsm
|
|
# Date created: 2006-07-30
|
|
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= extsm
|
|
PORTVERSION= 1.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= www java
|
|
MASTER_SITES= SF/rxsm/rxsm/${PORTVERSION}
|
|
DISTNAME= xsm-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Extensible Site Manager (XSM)
|
|
|
|
RUN_DEPENDS= mvn:${PORTSDIR}/devel/maven2
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/xsm
|
|
|
|
OPTIONS= TOMCAT6 "Use Tomcat 6" on \
|
|
TOMCAT55 "Use Tomcat 5.5" off \
|
|
RESIN3 "Use Resin 3" off
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= README INSTALL
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
PORTEXAMPLES= xsm-demo-config.zip
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
WEBAPP_DIRS= #empty
|
|
|
|
.if defined(WITH_TOMCAT6)
|
|
WEBAPP_DIRS+= apache-tomcat-6.0
|
|
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
|
|
.endif
|
|
|
|
.if defined(WITH_TOMCAT55)
|
|
WEBAPP_DIRS+= tomcat5.5
|
|
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
|
|
.endif
|
|
|
|
.if defined(WITH_RESIN3)
|
|
WEBAPP_DIRS+= resin3
|
|
RUN_DEPENDS+= ${LOCALBASE}/resin3/lib/resin.jar:${PORTSDIR}/www/resin3
|
|
.endif
|
|
|
|
do-install:
|
|
.if ${PREFIX} != ${LOCALBASE}
|
|
@${ECHO_CMD} "Warning: you changed prefix to ${PREFIX}"
|
|
@${ECHO_CMD} "Default installation will not work if you installed"
|
|
@${ECHO_CMD} "application server in different prefix"
|
|
.endif
|
|
.for DIR in ${WEBAPP_DIRS}
|
|
@${ECHO_CMD} "${DIR}/webapps/xsm.war" >> ${TMPPLIST}
|
|
.if !exists(${PREFIX}/${DIR}/webapps)
|
|
${MKDIR} ${PREFIX}/${DIR}/webapps
|
|
@${ECHO_CMD} "@unexec rmdir %D/${DIR}/webapps 2>/dev/null || true" >> ${TMPPLIST}
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/xsm.war ${PREFIX}/${DIR}/webapps
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}/
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}/
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}/
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|