Jimmy Olgeni d25cbb31f3 Copy textproc/elasticsearch-plugin-sql to elasticsearch2-plugin-sql
and upgrade to version 2.1.0.1.

Version 2.1.0.1 is tightly coupled with ElasticSearch 2.1.0.

This port should always be upgraded together with ElasticSearch.
2016-01-10 21:51:11 +00:00

35 lines
1006 B
Makefile

# $FreeBSD$
PORTNAME= sql
PORTVERSION= 2.1.0.1
CATEGORIES= textproc
MASTER_SITES= http://github.com/NLPchina/elasticsearch-sql/releases/download/${PORTVERSION}/
PKGNAMEPREFIX= elasticsearch2-plugin-
DISTNAME= elasticsearch-${PORTNAME}-${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= ElasticSearch SQL plugin
LICENSE= APACHE20
RUN_DEPENDS= elasticsearch2>=2.1.0:${PORTSDIR}/textproc/elasticsearch2
CONFLICTS= elasticsearch-plugin-sql-1.*
USES= zip
NO_BUILD= yes
NO_ARCH= yes
PLIST_SUB+= VERSION="${PORTVERSION}"
post-patch:
@${FIND} ${WRKSRC} -type d -empty -delete
@${RM} ${WRKSRC}/_site/vendor/codemirror/.travis.yml
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
cd ${WRKSRC} && ${COPYTREE_SHARE} _site ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
${INSTALL_DATA} ${WRKSRC}/*.properties ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
.include <bsd.port.mk>