2012-10-22 09:48:01 +00:00
|
|
|
# Created by: Bernhard Froehlich <decke@bluelife.at>
|
2008-09-07 22:23:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= helma
|
2010-02-22 20:48:38 +00:00
|
|
|
PORTVERSION= 1.7.0
|
2014-07-01 11:18:45 +00:00
|
|
|
PORTREVISION= 1
|
2008-09-07 22:23:35 +00:00
|
|
|
CATEGORIES= www java
|
2010-02-22 20:48:38 +00:00
|
|
|
MASTER_SITES= http://adele.helma.org/download/helma/${PORTVERSION}/ \
|
2012-10-22 09:48:01 +00:00
|
|
|
LOCAL/decke
|
2008-12-22 21:13:16 +00:00
|
|
|
DISTFILES= helma-${PORTVERSION}.tar.gz helma-${PORTVERSION}-src.tar.gz
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2016-01-12 15:15:29 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-08-06 09:11:57 +00:00
|
|
|
COMMENT= Web application framework for fast and efficient scripting
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2014-07-01 11:18:45 +00:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKBASE}/licenses/license.txt
|
|
|
|
|
2008-09-07 22:23:35 +00:00
|
|
|
WRKBASE= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2008-12-22 21:13:16 +00:00
|
|
|
WRKSRC= ${WRKBASE}
|
2008-09-07 22:23:35 +00:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_RC_SUBR= helma
|
|
|
|
USE_JAVA= yes
|
2012-12-10 13:43:43 +00:00
|
|
|
JAVA_VERSION= 1.6+
|
2008-09-07 22:23:35 +00:00
|
|
|
USE_ANT= yes
|
|
|
|
ALL_TARGET= clean jar
|
2015-10-23 17:48:18 +00:00
|
|
|
NO_ARCH= yes
|
2008-09-07 22:23:35 +00:00
|
|
|
|
|
|
|
DBDIR?= /var/db/${PORTNAME}
|
|
|
|
LOGDIR?= /var/log/${PORTNAME}
|
|
|
|
HELMA_USER= ${WWWOWN}
|
|
|
|
HELMA_GROUP= ${WWWGRP}
|
|
|
|
HELMA_CONFIG= ${WRKBASE}/scripts/helma.conf
|
|
|
|
|
|
|
|
PLIST_SUB= DBDIR="${DBDIR}" \
|
|
|
|
LOGDIR="${LOGDIR}" \
|
|
|
|
HELMA_USER="${HELMA_USER}" \
|
|
|
|
HELMA_GROUP="${HELMA_GROUP}"
|
|
|
|
|
2014-07-15 17:09:35 +00:00
|
|
|
OPTIONS_DEFINE= MYSQL DOCS
|
2014-07-01 10:10:35 +00:00
|
|
|
OPTIONS_SUB= yes
|
2014-07-15 17:09:35 +00:00
|
|
|
OPTIONS_DESC= Install MySQL Connector for Java
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2016-04-01 14:33:55 +00:00
|
|
|
MYSQL_RUN_DEPENDS= ${JAVALIBDIR}/mysql-connector-java.jar:databases/mysql-connector-java
|
2014-07-01 10:10:35 +00:00
|
|
|
|
2008-09-07 22:23:35 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|JAVA_HOME=/usr/lib/j2sdk1.5-sun|JAVA_HOME=${JAVA_HOME}|' \
|
|
|
|
${HELMA_CONFIG}
|
|
|
|
@${REINPLACE_CMD} -e 's|HELMA_INSTALL=/usr/local/helma/helma-1.6.x|HELMA_INSTALL=${DATADIR}|' \
|
|
|
|
${HELMA_CONFIG}
|
|
|
|
@${REINPLACE_CMD} -e 's|HELMA_HOME=\$$HELMA_INSTALL|HELMA_HOME=${WWWDIR}|' \
|
|
|
|
${HELMA_CONFIG}
|
|
|
|
@${REINPLACE_CMD} -e 's|HELMA_USER=helma|HELMA_USER=${HELMA_USER}|' \
|
|
|
|
${HELMA_CONFIG}
|
|
|
|
@${REINPLACE_CMD} -e 's|HELMA_LOG=\$$HELMA_HOME/log/helma-out.log|HELMA_LOG=${LOGDIR}/helma-out.log|' \
|
|
|
|
${HELMA_CONFIG}
|
|
|
|
@${ECHO_CMD} "HELMA_CONFIG=${ETCDIR}" >> \
|
|
|
|
${HELMA_CONFIG}
|
|
|
|
|
|
|
|
@${ECHO_CMD} "" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${ECHO_CMD} "# custom directories" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${ECHO_CMD} "hopHome = ${WWWDIR}" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${ECHO_CMD} "appHome = ${WWWDIR}/apps" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${ECHO_CMD} "appsPropFile = ${ETCDIR}/apps.properties" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${ECHO_CMD} "dbPropFile = ${ETCDIR}/db.properties" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${ECHO_CMD} "dbHome = ${DBDIR}" >> \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
@${REINPLACE_CMD} -e 's|# logDir = console|logDir = ${LOGDIR}|' \
|
|
|
|
${WRKBASE}/server.properties
|
|
|
|
|
|
|
|
do-install:
|
2014-07-01 10:10:35 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/helma.sh.in ${STAGEDIR}${PREFIX}/bin/helma
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2014-07-01 10:10:35 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${WWWDIR} && \
|
|
|
|
(cd ${WRKBASE} && ${COPYTREE_SHARE} "apps modules" ${STAGEDIR}${WWWDIR} \
|
2015-10-23 17:48:18 +00:00
|
|
|
"! -name *.html ! -name helma-*.jar ! -name .jsdoc")
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2014-07-01 10:10:35 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR} && \
|
|
|
|
(cd ${WRKBASE} && ${COPYTREE_SHARE} "lib launcher.jar" ${STAGEDIR}${DATADIR} \
|
2008-09-07 22:23:35 +00:00
|
|
|
"! -name *.html ! -name helma-*.jar ! -name .jsdoc")
|
|
|
|
|
2015-10-23 17:48:18 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${LOGDIR}
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2015-10-23 17:48:18 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DBDIR}
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2014-07-01 10:10:35 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}; \
|
2010-02-22 20:48:38 +00:00
|
|
|
for f in apps.properties db.properties server.properties scripts/helma.conf; do \
|
2014-07-01 10:10:35 +00:00
|
|
|
${INSTALL_DATA} ${WRKBASE}/$$f ${STAGEDIR}${ETCDIR}/$${f##*/}.sample; \
|
2008-09-07 22:23:35 +00:00
|
|
|
done
|
|
|
|
|
2015-10-23 17:48:18 +00:00
|
|
|
do-install-DOCS-on:
|
2014-07-01 10:10:35 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
|
|
|
|
(cd ${WRKBASE} && ${COPYTREE_SHARE} "licenses license.txt README.txt" ${STAGEDIR}${DOCSDIR})
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2014-07-01 10:10:35 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/docs/api/jala && \
|
|
|
|
(cd ${WRKBASE}/modules/jala/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/docs/api/jala)
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2015-10-23 17:48:18 +00:00
|
|
|
do-install-MYSQL-on:
|
2014-07-01 10:10:35 +00:00
|
|
|
${LN} -sf ${JAVALIBDIR}/mysql-connector-java.jar ${STAGEDIR}${DATADIR}/lib/ext/mysql-connector-java.jar
|
2008-09-07 22:23:35 +00:00
|
|
|
|
2015-10-23 17:48:18 +00:00
|
|
|
.include <bsd.port.mk>
|