freebsd-ports/textproc/elasticsearch/Makefile
Jimmy Olgeni 22d7896c17 Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. A few Makefiles
where not included as they contain Latin-1 characters that break
the Phabricator workflow. Categories T-V.

CR:		D509
Approved by:	portmgr (antoine)
2014-08-03 14:15:08 +00:00

94 lines
2.5 KiB
Makefile

# Created by: Tom Judge <tj@FreeBSD.org>
# $FreeBSD$
PORTNAME= elasticsearch
PORTVERSION= 1.2.1
CATEGORIES= textproc java devel
MASTER_SITES= http://download.elasticsearch.org/${PORTNAME}/${PORTNAME}/ \
http://mirrors.rit.edu/zi/
MAINTAINER= tj@FreeBSD.org
COMMENT= Full-text search engine for Java
LICENSE= APACHE20
USE_JAVA= yes
NO_BUILD= yes
JAVA_VERSION= 1.7+
ONLY_FOR_ARCHS= i386 amd64
USE_RC_SUBR= ${PORTNAME}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
LUCENEVER= 4.8.1
CONFIG_FILES= elasticsearch.yml logging.yml
JARS= elasticsearch-${PORTVERSION}.jar \
jna-4.1.0.jar \
jts-1.13.jar \
log4j-1.2.17.jar \
lucene-analyzers-common-${LUCENEVER}.jar \
lucene-codecs-${LUCENEVER}.jar \
lucene-core-${LUCENEVER}.jar \
lucene-grouping-${LUCENEVER}.jar \
lucene-highlighter-${LUCENEVER}.jar \
lucene-join-${LUCENEVER}.jar \
lucene-memory-${LUCENEVER}.jar \
lucene-queries-${LUCENEVER}.jar \
lucene-queryparser-${LUCENEVER}.jar \
lucene-sandbox-${LUCENEVER}.jar \
lucene-spatial-${LUCENEVER}.jar \
lucene-suggest-${LUCENEVER}.jar \
spatial4j-0.4.1.jar
DOCS= LICENSE.txt \
NOTICE.txt \
README.textile
SIGAR_ARCH= ${ARCH:S|i386|x86|}
SEARCHUSER?= elasticsearch
SEARCHGROUP?= ${SEARCHUSER}
USERS= ${SEARCHUSER}
GROUPS= ${SEARCHGROUP}
ELASTIC_DBDIR= /var/db/elasticsearch
ELASTIC_LOGDIR= /var/log/elasticsearch
SUB_LIST= SEARCHUSER=${SEARCHUSER} \
SEARCHGROUP=${SEARCHGROUP} \
PORTVERSION=${PORTVERSION}
SUB_FILES= elasticsearch-plugin
PLIST_SUB= SIGAR_ARCH=${SIGAR_ARCH} \
SEARCHUSER=${SEARCHUSER} \
SEARCHGROUP=${SEARCHGROUP} \
LUCENEVER=${LUCENEVER} \
PORTVERSION=${PORTVERSION} \
ELASTIC_DBDIR=${ELASTIC_DBDIR} \
ELASTIC_LOGDIR=${ELASTIC_LOGDIR}
post-patch:
${SED} -i .bak -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/elasticsearch.yml
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
.for f in ${CONFIG_FILES}
${INSTALL} -m 440 ${WRKSRC}/config/${f} ${STAGEDIR}${PREFIX}/etc/elasticsearch/${f}.sample
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/elasticsearch-plugin ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch
.for f in ${JARS}
${INSTALL_DATA} ${WRKSRC}/lib/${f} ${STAGEDIR}${PREFIX}/lib/elasticsearch/
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/sigar
${INSTALL_DATA} ${WRKSRC}/lib/sigar/sigar-1.6.4.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/sigar/
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>