mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
7d0950bcc8
As elasticsearch components of versions prior to 7.3.x are not maintained any longer, schedule EOL'd elastic ports for removal at 31st of March 2021. Life cycle explained: https://www.elastic.co/support/eol Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27811
73 lines
2.4 KiB
Makefile
73 lines
2.4 KiB
Makefile
# Created by: Daniel Solsona <daniel@ish.com.au>, Guido Falsi <madpilot@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= logstash
|
|
PORTVERSION= 5.6.8
|
|
CATEGORIES= sysutils java
|
|
MASTER_SITES= http://artifacts.elastic.co/downloads/logstash/
|
|
PKGNAMESUFFIX= 5
|
|
|
|
MAINTAINER= elastic@FreeBSD.org
|
|
COMMENT= Server-side data ingest and transfomation tool
|
|
|
|
LICENSE= APACHE20
|
|
|
|
DEPRECATED= End of life since release of 7.3.0
|
|
EXPIRATION_DATE= 2021-03-31
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash
|
|
|
|
CONFLICTS= logstash-[0-9]*
|
|
|
|
USES= cpe
|
|
CPE_VENDOR= elasticsearch
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.8+
|
|
JAVA_EXTRACT= yes
|
|
JAVA_RUN= yes
|
|
NO_BUILD= yes
|
|
|
|
LOGSTASH_DIR= ${PREFIX}/${PORTNAME}
|
|
|
|
USE_RC_SUBR= logstash
|
|
|
|
LOGSTASH_HOME?= ${PREFIX}/${PORTNAME}
|
|
|
|
SUB_LIST= JAVA_HOME=${JAVA_HOME} \
|
|
LOGSTASH_HOME=${LOGSTASH_HOME}
|
|
|
|
LOGSTASH_BIN_FILES= logstash
|
|
LOGSTASH_JRUBY_SUBDIR= vendor/jruby/bin
|
|
LOGSTASH_JRUBY_BIN_FILES= ast irb jirb jruby jruby.sh rdoc testrb gem \
|
|
jgem jirb_swing jruby.bash jrubyc rake ri
|
|
|
|
do-install:
|
|
@${FIND} ${WRKSRC} -name '*.bat' -delete
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${LOGSTASH_DIR})
|
|
${INSTALL_DATA} ${FILESDIR}/logstash.conf.sample ${STAGEDIR}${ETCDIR}
|
|
.for x in ${LOGSTASH_BIN_FILES}
|
|
@${CHMOD} ${BINMODE} ${STAGEDIR}${LOGSTASH_DIR}/bin/${x}
|
|
.endfor
|
|
.for x in ${LOGSTASH_JRUBY_BIN_FILES}
|
|
@${CHMOD} ${BINMODE} ${STAGEDIR}${LOGSTASH_DIR}/${LOGSTASH_JRUBY_SUBDIR}/${x}
|
|
.endfor
|
|
|
|
post-install:
|
|
${ECHO} "@sample ${ETCDIR}/logstash.conf.sample" >> ${TMPPLIST}
|
|
${FIND} -s ${STAGEDIR}${PREFIX}/logstash -not -type d | ${SORT} | \
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/data" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/1.9/build_info" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/1.9/cache" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/1.9/doc" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/1.9/extensions" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/1.9/gems/manticore-0.6.1-java/spec/ssl" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/1.9/gems/redis-3.3.5/test/db" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/2.3.0/build_info" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/2.3.0/cache" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/2.3.0/doc" >> ${TMPPLIST}
|
|
${ECHO} "@dir logstash/vendor/bundle/jruby/2.3.0/extensions" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|