mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
54a069cd04
- Use Java 1.8+ - Bump PORTREVISION PR: 208531 Submitted by: Johan Ström <johan@stromnet.se> Approved by: maintainer Sponsored by: Essen Linuxhotel Hackathon 2016
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
# Created by: Johannes Meixner <xmj@chaot.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opentsdb
|
|
PORTVERSION= 2.2.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= databases java
|
|
MASTER_SITES= https://github.com/OpenTSDB/opentsdb/releases/download/v${PORTVERSION}/
|
|
|
|
MAINTAINER= xmj@chaot.net
|
|
COMMENT= OpenTSDB is the Scalable Timeseries Database
|
|
|
|
LICENSE= LGPL3
|
|
|
|
BUILD_DEPENDS= bash:shells/bash \
|
|
curl:ftp/curl \
|
|
gawk:lang/gawk
|
|
LIB_DEPENDS= libhadoop.so:devel/hadoop2
|
|
RUN_DEPENDS= hbase>0:databases/hbase
|
|
|
|
USES= gmake python shebangfix
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.8+
|
|
SHEBANG_FILES= tools/check_tsd tools/opentsdb_restart.py \
|
|
tools/tsddrain.py
|
|
|
|
OPTIONS_DEFINE= GNUPLOT
|
|
OPTIONS_DEFAULT= GNUPLOT
|
|
|
|
GNUPLOT_RUN_DEPENDS= gnuplot:math/gnuplot
|
|
|
|
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:
|
|
${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
|
|
${REINPLACE_CMD} -e "s#%%JAVA_VERSION%%#${JAVA_VERSION}#" ${WRKSRC}/tsdb.in
|
|
${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
|
|
|
|
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>
|