Lines 1-63
Link Here
|
1 |
# Created by: Johannes Meixner <johannes@perceivon.net> |
1 |
# Created by: Johannes Meixner <johannes@perceivon.net> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= opentsdb |
4 |
PORTNAME= opentsdb |
5 |
PORTVERSION= 2.3.0 |
5 |
PORTVERSION= 2.3.0 |
6 |
CATEGORIES= databases java |
6 |
CATEGORIES= databases java |
7 |
MASTER_SITES= https://github.com/OpenTSDB/opentsdb/releases/download/v${PORTVERSION}/ |
7 |
MASTER_SITES= https://github.com/OpenTSDB/opentsdb/releases/download/v${PORTVERSION}/ |
8 |
|
8 |
|
9 |
MAINTAINER= johannes@perceivon.net |
9 |
MAINTAINER= kbowling@freebsd.org |
10 |
COMMENT= OpenTSDB is the Scalable Timeseries Database |
10 |
COMMENT= OpenTSDB is the Scalable Timeseries Database |
11 |
|
11 |
|
12 |
LICENSE= LGPL21+ |
12 |
LICENSE= LGPL21+ |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER |
14 |
|
14 |
|
15 |
BUILD_DEPENDS= bash:shells/bash \ |
15 |
BUILD_DEPENDS= bash:shells/bash \ |
16 |
curl:ftp/curl \ |
16 |
curl:ftp/curl \ |
17 |
gawk:lang/gawk |
17 |
gawk:lang/gawk |
18 |
LIB_DEPENDS= libhadoop.so:devel/hadoop2 |
18 |
LIB_DEPENDS= libhadoop.so:devel/hadoop2 |
19 |
RUN_DEPENDS= hbase>0:databases/hbase |
19 |
RUN_DEPENDS= hbase>0:databases/hbase |
20 |
|
20 |
|
21 |
USES= gmake python shebangfix |
21 |
USES= gmake python shebangfix |
22 |
USE_JAVA= yes |
22 |
USE_JAVA= yes |
23 |
JAVA_VERSION= 1.8+ |
23 |
JAVA_VERSION= 1.8+ |
24 |
SHEBANG_FILES= tools/check_tsd tools/opentsdb_restart.py \ |
24 |
SHEBANG_FILES= tools/check_tsd tools/opentsdb_restart.py \ |
25 |
tools/tsddrain.py |
25 |
tools/tsddrain.py |
26 |
NO_ARCH= yes |
26 |
NO_ARCH= yes |
27 |
|
27 |
|
28 |
OPTIONS_DEFINE= GNUPLOT |
28 |
OPTIONS_DEFINE= GNUPLOT |
29 |
OPTIONS_DEFAULT= GNUPLOT |
29 |
OPTIONS_DEFAULT= GNUPLOT |
30 |
|
30 |
|
31 |
GNUPLOT_RUN_DEPENDS= gnuplot:math/gnuplot |
31 |
GNUPLOT_RUN_DEPENDS= gnuplot:math/gnuplot |
32 |
|
32 |
|
33 |
HAS_CONFIGURE= yes |
33 |
HAS_CONFIGURE= yes |
34 |
MAKE_JOBS_UNSAFE= yes |
34 |
MAKE_JOBS_UNSAFE= yes |
35 |
|
35 |
|
36 |
OPENTSDB_LOGDIR= /var/log/${PORTNAME} |
36 |
OPENTSDB_LOGDIR= /var/log/${PORTNAME} |
37 |
OPENTSDB_RUNDIR= /var/run/${PORTNAME} |
37 |
OPENTSDB_RUNDIR= /var/run/${PORTNAME} |
38 |
|
38 |
|
39 |
OPENTSDB_USER= opentsdb |
39 |
OPENTSDB_USER= opentsdb |
40 |
OPENTSDB_GROUP= opentsdb |
40 |
OPENTSDB_GROUP= opentsdb |
41 |
|
41 |
|
42 |
USERS= ${OPENTSDB_USER} |
42 |
USERS= ${OPENTSDB_USER} |
43 |
GROUPS= ${OPENTSDB_GROUP} |
43 |
GROUPS= ${OPENTSDB_GROUP} |
44 |
|
44 |
|
45 |
USE_RC_SUBR= opentsdb |
45 |
USE_RC_SUBR= opentsdb |
46 |
|
46 |
|
47 |
SUB_LIST= OPENTSDB_USER="${OPENTSDB_USER}" \ |
47 |
SUB_LIST= OPENTSDB_USER="${OPENTSDB_USER}" \ |
48 |
OPENTSDB_LOGDIR="${OPENTSDB_LOGDIR}" \ |
48 |
OPENTSDB_LOGDIR="${OPENTSDB_LOGDIR}" \ |
49 |
OPENTSDB_RUNDIR="${OPENTSDB_RUNDIR}" |
49 |
OPENTSDB_RUNDIR="${OPENTSDB_RUNDIR}" |
50 |
|
50 |
|
51 |
post-patch: |
51 |
post-patch: |
52 |
${REINPLACE_CMD} -i "" -e "s|python|${PYTHON_CMD}|" ${WRKSRC}/build-aux/gen_build_data.sh |
52 |
${REINPLACE_CMD} -i "" -e "s|python|${PYTHON_CMD}|" ${WRKSRC}/build-aux/gen_build_data.sh |
53 |
${REINPLACE_CMD} -i "" -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/src/utils/Config.java |
53 |
${REINPLACE_CMD} -i "" -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/src/utils/Config.java |
54 |
${REINPLACE_CMD} -e "s#%%JAVA_VERSION%%#${JAVA_VERSION}#" ${WRKSRC}/tsdb.in |
54 |
${REINPLACE_CMD} -e "s#%%JAVA_VERSION%%#${JAVA_VERSION}#" ${WRKSRC}/tsdb.in |
55 |
${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 |
55 |
${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 |
56 |
|
56 |
|
57 |
post-install: |
57 |
post-install: |
58 |
${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${OPENTSDB_LOGDIR} ${STAGEDIR}${OPENTSDB_RUNDIR} |
58 |
${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${OPENTSDB_LOGDIR} ${STAGEDIR}${OPENTSDB_RUNDIR} |
59 |
${INSTALL_DATA} ${WRKSRC}/src/logback.xml ${STAGEDIR}${ETCDIR} |
59 |
${INSTALL_DATA} ${WRKSRC}/src/logback.xml ${STAGEDIR}${ETCDIR} |
60 |
${INSTALL_DATA} ${WRKSRC}/src/opentsdb.conf ${STAGEDIR}${ETCDIR}/opentsdb.conf.sample |
60 |
${INSTALL_DATA} ${WRKSRC}/src/opentsdb.conf ${STAGEDIR}${ETCDIR}/opentsdb.conf.sample |
61 |
(cd "${STAGEDIR}${PREFIX}"; ${FIND} -s share/${PORTNAME}/static -name \*cache.html) >> ${TMPPLIST} |
61 |
(cd "${STAGEDIR}${PREFIX}"; ${FIND} -s share/${PORTNAME}/static -name \*cache.html) >> ${TMPPLIST} |
62 |
|
62 |
|
63 |
.include <bsd.port.mk> |
63 |
.include <bsd.port.mk> |