2016-06-23 11:48:53 +02:00
|
|
|
# Created by: Johannes Meixner <johannes@perceivon.net>
|
2015-11-06 15:30:04 +01:00
|
|
|
|
|
|
|
PORTNAME= opentsdb
|
2017-01-19 20:13:02 +01:00
|
|
|
PORTVERSION= 2.3.0
|
2019-04-10 08:18:31 +02:00
|
|
|
PORTREVISION= 1
|
2015-11-06 15:30:04 +01:00
|
|
|
CATEGORIES= databases java
|
2015-12-29 02:15:45 +01:00
|
|
|
MASTER_SITES= https://github.com/OpenTSDB/opentsdb/releases/download/v${PORTVERSION}/
|
2015-11-06 15:30:04 +01:00
|
|
|
|
2021-03-29 22:40:01 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2020-05-27 13:59:13 +02:00
|
|
|
COMMENT= Distributed, scalable Time Series Database
|
2015-11-06 15:30:04 +01:00
|
|
|
|
2017-01-13 10:24:39 +01:00
|
|
|
LICENSE= LGPL21+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
|
2015-11-06 15:30:04 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= bash:shells/bash \
|
|
|
|
curl:ftp/curl \
|
|
|
|
gawk:lang/gawk
|
|
|
|
LIB_DEPENDS= libhadoop.so:devel/hadoop2
|
|
|
|
RUN_DEPENDS= hbase>0:databases/hbase
|
2015-11-06 15:30:04 +01:00
|
|
|
|
2021-08-31 20:48:09 +02:00
|
|
|
USES= cpe gmake python shebangfix
|
2015-11-06 15:30:04 +01:00
|
|
|
USE_JAVA= yes
|
2016-04-23 14:01:12 +02:00
|
|
|
JAVA_VERSION= 1.8+
|
|
|
|
SHEBANG_FILES= tools/check_tsd tools/opentsdb_restart.py \
|
|
|
|
tools/tsddrain.py
|
2017-01-13 10:24:39 +01:00
|
|
|
NO_ARCH= yes
|
2015-11-06 15:30:04 +01:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= GNUPLOT
|
|
|
|
OPTIONS_DEFAULT= GNUPLOT
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
GNUPLOT_RUN_DEPENDS= gnuplot:math/gnuplot
|
2015-11-06 15:30:04 +01:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
|
|
|
OPENTSDB_LOGDIR= /var/log/${PORTNAME}
|
|
|
|
OPENTSDB_RUNDIR= /var/run/${PORTNAME}
|
|
|
|
|
|
|
|
OPENTSDB_USER= opentsdb
|
|
|
|
OPENTSDB_GROUP= opentsdb
|
|
|
|
|
|
|
|
USERS= ${OPENTSDB_USER}
|
|
|
|
GROUPS= ${OPENTSDB_GROUP}
|
|
|
|
|
|
|
|
USE_RC_SUBR= opentsdb
|
|
|
|
|
|
|
|
SUB_LIST= OPENTSDB_USER="${OPENTSDB_USER}" \
|
|
|
|
OPENTSDB_LOGDIR="${OPENTSDB_LOGDIR}" \
|
|
|
|
OPENTSDB_RUNDIR="${OPENTSDB_RUNDIR}"
|
|
|
|
|
|
|
|
post-patch:
|
2015-12-14 18:17:05 +01:00
|
|
|
${REINPLACE_CMD} -i "" -e "s|python|${PYTHON_CMD}|" ${WRKSRC}/build-aux/gen_build_data.sh
|
|
|
|
${REINPLACE_CMD} -i "" -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/src/utils/Config.java
|
2016-04-23 14:01:12 +02:00
|
|
|
${REINPLACE_CMD} -e "s#%%JAVA_VERSION%%#${JAVA_VERSION}#" ${WRKSRC}/tsdb.in
|
2015-12-14 18:17:05 +01:00
|
|
|
${REINPLACE_CMD} -i "" -e "s|tsd.http.staticroot =|tsd.http.staticroot = ${DATADIR}/static|; s|tsd.http.cachedir =|tsd.http.cachedir = /tmp/opentsdb|; s|tsd.network.port =|tsd.network.port = 4242|;" ${WRKSRC}/src/opentsdb.conf
|
2015-11-06 15:30:04 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${OPENTSDB_LOGDIR} ${STAGEDIR}${OPENTSDB_RUNDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/logback.xml ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/opentsdb.conf ${STAGEDIR}${ETCDIR}/opentsdb.conf.sample
|
|
|
|
(cd "${STAGEDIR}${PREFIX}"; ${FIND} -s share/${PORTNAME}/static -name \*cache.html) >> ${TMPPLIST}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|