aboutsummaryrefslogtreecommitdiffstats
path: root/databases/opentsdb
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2016-04-23 20:01:12 +0800
committerlme <lme@FreeBSD.org>2016-04-23 20:01:12 +0800
commit7103885b978315c13defa077628ec9c44614acd2 (patch)
tree48cd1953d8a9b79aea96600bddfc592e28e1d17c /databases/opentsdb
parent726eaa6b421207597fc07bdf3da1274e92bcef72 (diff)
downloadfreebsd-ports-graphics-7103885b978315c13defa077628ec9c44614acd2.tar.gz
freebsd-ports-graphics-7103885b978315c13defa077628ec9c44614acd2.tar.zst
freebsd-ports-graphics-7103885b978315c13defa077628ec9c44614acd2.zip
- Use shebangfix for check_tsd
- 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
Diffstat (limited to 'databases/opentsdb')
-rw-r--r--databases/opentsdb/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/databases/opentsdb/Makefile b/databases/opentsdb/Makefile
index f618d78416c..6659ad2ed9c 100644
--- a/databases/opentsdb/Makefile
+++ b/databases/opentsdb/Makefile
@@ -3,7 +3,7 @@
PORTNAME= opentsdb
PORTVERSION= 2.2.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases java
MASTER_SITES= https://github.com/OpenTSDB/opentsdb/releases/download/v${PORTVERSION}/
@@ -18,8 +18,11 @@ BUILD_DEPENDS= bash:shells/bash \
LIB_DEPENDS= libhadoop.so:devel/hadoop2
RUN_DEPENDS= hbase>0:databases/hbase
-USES= gmake python
+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
@@ -47,6 +50,7 @@ SUB_LIST= OPENTSDB_USER="${OPENTSDB_USER}" \
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: