2012-12-10 14:43:43 +01:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
2009-03-22 14:47:54 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= apache-solr
|
2017-04-17 17:16:35 +02:00
|
|
|
PORTVERSION= 6.5.0
|
2009-03-22 14:47:54 +01:00
|
|
|
CATEGORIES= textproc java
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= APACHE/lucene/solr/${PORTVERSION}
|
2013-02-26 05:01:30 +01:00
|
|
|
DISTNAME= solr-${PORTVERSION}
|
2009-03-22 14:47:54 +01:00
|
|
|
|
2016-09-11 13:43:36 +02:00
|
|
|
MAINTAINER= idefix@fechner.net
|
2009-03-22 14:47:54 +01:00
|
|
|
COMMENT= High performance search server built using Lucene Java
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2013-02-26 05:01:30 +01:00
|
|
|
|
2016-09-11 13:43:36 +02:00
|
|
|
CONFLICTS_INSTALL= apache-solr3-* apache-solr-4* apache-solr-5*
|
|
|
|
|
|
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
|
|
lsof:sysutils/lsof
|
2013-02-26 05:01:30 +01:00
|
|
|
|
2015-06-26 12:40:45 +02:00
|
|
|
USES= cpe tar:tgz
|
2016-08-28 17:53:49 +02:00
|
|
|
USE_JAVA= yes
|
2016-09-11 13:43:36 +02:00
|
|
|
JAVA_VERSION= 1.8+
|
|
|
|
JAVA_RUN= yes
|
2009-03-22 14:47:54 +01:00
|
|
|
NO_BUILD= yes
|
2014-10-19 22:18:04 +02:00
|
|
|
NO_ARCH= yes
|
2010-01-13 08:51:50 +01:00
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
2016-09-11 13:43:36 +02:00
|
|
|
SUB_FILES= pkg-message pkg-install
|
2014-10-19 22:18:04 +02:00
|
|
|
USE_RC_SUBR= solr
|
2016-09-11 13:43:36 +02:00
|
|
|
USERS= solr
|
|
|
|
GROUPS= ${USERS}
|
2009-03-22 14:47:54 +01:00
|
|
|
|
2015-03-30 20:55:39 +02:00
|
|
|
CPE_PRODUCT= solr
|
|
|
|
CPE_VENDOR= apache
|
|
|
|
|
2016-09-11 13:43:36 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|solr.log=.*|solr.log=/var/log/solr|g' ${WRKSRC}/server/resources/log4j.properties
|
|
|
|
|
2009-03-22 14:47:54 +01:00
|
|
|
do-install:
|
2016-09-11 13:43:36 +02:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${CPE_PRODUCT}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/solr ${STAGEDIR}${PREFIX}/${CPE_PRODUCT}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/solr.in.sh ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
2016-12-21 18:29:56 +01:00
|
|
|
${ECHO} 'SOLR_HOME="/var/db/solr"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
|
|
|
${ECHO} 'LOG4J_PROPS="/var/db/solr/log4j.properties"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
|
|
|
${ECHO} 'SOLR_LOGS_DIR="/var/log/solr"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
|
|
|
${ECHO} 'SOLR_PORT="8983"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
|
|
|
${ECHO} 'SOLR_PID_DIR="/var/db/solr"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
|
|
|
${ECHO} 'SOLR_OPTS="$$SOLR_OPTS -Djetty.host=localhost"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
|
2016-09-11 13:43:36 +02:00
|
|
|
|
|
|
|
${MKDIR} ${STAGEDIR}/var/db/solr
|
|
|
|
${MKDIR} ${STAGEDIR}/var/log/solr
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/server/solr/solr.xml ${STAGEDIR}/var/db/solr/solr.xml-dist
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/server/resources/log4j.properties ${STAGEDIR}/var/db/solr/log4j.properties-dist
|
2009-03-22 14:47:54 +01:00
|
|
|
|
2012-05-04 18:31:05 +02:00
|
|
|
.include <bsd.port.mk>
|