1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/sysutils/logstash/Makefile
Mathieu Arnold 9c3b4af37e Remove ${PORTSDIR}/ from depends. Again.
Sponsored by:	Absolight
2016-04-28 22:07:59 +00:00

55 lines
1.5 KiB
Makefile

# Created by: Daniel Solsona <daniel@ish.com.au>, Guido Falsi <madpilot@FreeBSD.org>
# $FreeBSD$
PORTNAME= logstash
PORTVERSION= 2.3.2
CATEGORIES= sysutils java
MASTER_SITES= http://download.elastic.co/logstash/logstash/
MAINTAINER= enrico.m.crisostomo@gmail.com
COMMENT= Tool for managing events and logs
LICENSE= APACHE20
RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash
USES= cpe
CPE_VENDOR= elasticsearch
USE_JAVA= yes
JAVA_VERSION= 1.7+
JAVA_EXTRACT= yes
JAVA_RUN= yes
NO_BUILD= yes
LOGSTASH_DIR= ${PREFIX}/${PORTNAME}
USE_RC_SUBR= logstash
LOGSTASH_HOME?= ${PREFIX}/${PORTNAME}
LOGSTASH_RUN?= /var/run/${PORTNAME}
LOGSTASH_DATA_DIR?= /var/db/${PORTNAME}
SUB_LIST= LOGSTASH_DATA_DIR=${LOGSTASH_DATA_DIR} 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}
${MKDIR} ${STAGEDIR}${LOGSTASH_RUN}
${MKDIR} ${STAGEDIR}${LOGSTASH_DATA_DIR}
@(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
.include <bsd.port.mk>