Lines 1-74
Link Here
|
1 |
# Created by: Daniel Solsona <daniel@ish.com.au>, Guido Falsi <madpilot@FreeBSD.org> |
1 |
# Created by: Daniel Solsona <daniel@ish.com.au>, Guido Falsi <madpilot@FreeBSD.org> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= logstash |
4 |
PORTNAME= logstash |
5 |
PORTVERSION= 6.8.11 |
5 |
PORTVERSION= 6.8.12 |
6 |
CATEGORIES= sysutils java |
6 |
CATEGORIES= sysutils java |
7 |
MASTER_SITES= http://artifacts.elastic.co/downloads/logstash/ |
7 |
MASTER_SITES= http://artifacts.elastic.co/downloads/logstash/ |
8 |
PKGNAMESUFFIX= 6 |
8 |
PKGNAMESUFFIX= 6 |
9 |
|
9 |
|
10 |
MAINTAINER= elastic@FreeBSD.org |
10 |
MAINTAINER= elastic@FreeBSD.org |
11 |
COMMENT= Server-side data ingest and transfomation tool |
11 |
COMMENT= Server-side data ingest and transfomation tool |
12 |
|
12 |
|
13 |
LICENSE= APACHE20 |
13 |
LICENSE= APACHE20 |
14 |
|
14 |
|
15 |
RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash |
15 |
RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash |
16 |
|
16 |
|
17 |
USES= cpe shebangfix |
17 |
USES= cpe shebangfix |
18 |
|
18 |
|
19 |
CONFLICTS= logstash-[0-9]* logstash5* logstash7* |
19 |
CONFLICTS= logstash-[0-9]* logstash5* logstash7* |
20 |
|
20 |
|
21 |
SHEBANG_FILES= bin/* |
21 |
SHEBANG_FILES= bin/* |
22 |
CPE_VENDOR= elasticsearch |
22 |
CPE_VENDOR= elasticsearch |
23 |
USE_JAVA= yes |
23 |
USE_JAVA= yes |
24 |
JAVA_VERSION= 1.8+ |
24 |
JAVA_VERSION= 1.8+ |
25 |
JAVA_RUN= yes |
25 |
JAVA_RUN= yes |
26 |
NO_BUILD= yes |
26 |
NO_BUILD= yes |
27 |
|
27 |
|
28 |
USERS= logstash |
28 |
USERS= logstash |
29 |
GROUPS= logstash |
29 |
GROUPS= logstash |
30 |
|
30 |
|
31 |
LOGSTASH_DIR= ${PREFIX}/${PORTNAME} |
31 |
LOGSTASH_DIR= ${PREFIX}/${PORTNAME} |
32 |
|
32 |
|
33 |
USE_RC_SUBR= logstash |
33 |
USE_RC_SUBR= logstash |
34 |
|
34 |
|
35 |
LOGSTASH_HOME?= ${PREFIX}/${PORTNAME} |
35 |
LOGSTASH_HOME?= ${PREFIX}/${PORTNAME} |
36 |
|
36 |
|
37 |
SUB_LIST= JAVA_HOME=${JAVA_HOME} \ |
37 |
SUB_LIST= JAVA_HOME=${JAVA_HOME} \ |
38 |
LOGSTASH_HOME=${LOGSTASH_HOME} |
38 |
LOGSTASH_HOME=${LOGSTASH_HOME} |
39 |
|
39 |
|
40 |
LOGSTASH_CONF_FILES= jvm.options log4j2.properties logstash.yml \ |
40 |
LOGSTASH_CONF_FILES= jvm.options log4j2.properties logstash.yml \ |
41 |
pipelines.yml startup.options |
41 |
pipelines.yml startup.options |
42 |
LOGSTASH_JRUBY_SUBDIR= vendor/jruby/bin |
42 |
LOGSTASH_JRUBY_SUBDIR= vendor/jruby/bin |
43 |
LOGSTASH_JRUBY_BIN_FILES= ast gem irb jgem jirb jirb_swing jruby \ |
43 |
LOGSTASH_JRUBY_BIN_FILES= ast gem irb jgem jirb jirb_swing jruby \ |
44 |
jruby.bash jruby.sh jrubyc rake rdoc ri testrb |
44 |
jruby.bash jruby.sh jrubyc rake rdoc ri testrb |
45 |
|
45 |
|
46 |
post-patch: |
46 |
post-patch: |
47 |
${REINPLACE_CMD} 's|%%ETCDIR%%|${ETCDIR}|g' ${WRKSRC}/config/logstash.yml |
47 |
${REINPLACE_CMD} 's|%%ETCDIR%%|${ETCDIR}|g' ${WRKSRC}/config/logstash.yml |
48 |
${FIND} ${WRKSRC} -name '*.orig' -delete |
48 |
${FIND} ${WRKSRC} -name '*.orig' -delete |
49 |
|
49 |
|
50 |
do-install: |
50 |
do-install: |
51 |
${FIND} ${WRKSRC} -name '*.bat' -delete |
51 |
${FIND} ${WRKSRC} -name '*.bat' -delete |
52 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
52 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
53 |
${INSTALL_DATA} ${FILESDIR}/logstash.conf.sample ${STAGEDIR}${ETCDIR} |
53 |
${INSTALL_DATA} ${FILESDIR}/logstash.conf.sample ${STAGEDIR}${ETCDIR} |
54 |
.for x in ${LOGSTASH_CONF_FILES} |
54 |
.for x in ${LOGSTASH_CONF_FILES} |
55 |
${INSTALL_DATA} ${WRKSRC}/config/${x} ${STAGEDIR}${ETCDIR}/${x}.sample |
55 |
${INSTALL_DATA} ${WRKSRC}/config/${x} ${STAGEDIR}${ETCDIR}/${x}.sample |
56 |
.endfor |
56 |
.endfor |
57 |
${RM} -rf ${WRKSRC}/config |
57 |
${RM} -rf ${WRKSRC}/config |
58 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${LOGSTASH_DIR}) |
58 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${LOGSTASH_DIR}) |
59 |
${CHMOD} ${BINMODE} ${STAGEDIR}${LOGSTASH_DIR}/bin/* |
59 |
${CHMOD} ${BINMODE} ${STAGEDIR}${LOGSTASH_DIR}/bin/* |
60 |
.for x in ${LOGSTASH_JRUBY_BIN_FILES} |
60 |
.for x in ${LOGSTASH_JRUBY_BIN_FILES} |
61 |
${CHMOD} ${BINMODE} ${STAGEDIR}${LOGSTASH_DIR}/${LOGSTASH_JRUBY_SUBDIR}/${x} |
61 |
${CHMOD} ${BINMODE} ${STAGEDIR}${LOGSTASH_DIR}/${LOGSTASH_JRUBY_SUBDIR}/${x} |
62 |
.endfor |
62 |
.endfor |
63 |
${INSTALL} -lrs ${STAGEDIR}${ETCDIR} ${STAGEDIR}${LOGSTASH_DIR}/config |
63 |
${INSTALL} -lrs ${STAGEDIR}${ETCDIR} ${STAGEDIR}${LOGSTASH_DIR}/config |
64 |
|
64 |
|
65 |
post-install: |
65 |
post-install: |
66 |
${ECHO} "@sample ${ETCDIR}/logstash.conf.sample" >> ${TMPPLIST} |
66 |
${ECHO} "@sample ${ETCDIR}/logstash.conf.sample" >> ${TMPPLIST} |
67 |
.for x in ${LOGSTASH_CONF_FILES} |
67 |
.for x in ${LOGSTASH_CONF_FILES} |
68 |
${ECHO} "@sample ${ETCDIR}/${x}.sample" >> ${TMPPLIST} |
68 |
${ECHO} "@sample ${ETCDIR}/${x}.sample" >> ${TMPPLIST} |
69 |
.endfor |
69 |
.endfor |
|
|
70 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/bundle/jruby/2.5.0/build_info |
71 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/bundle/jruby/2.5.0/cache |
72 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/bundle/jruby/2.5.0/doc |
73 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/bundle/jruby/2.5.0/extensions |
74 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/spec/ssl |
75 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/bundle/jruby/2.5.0/gems/redis-3.3.5/test/db |
76 |
${RM} -rf ${STAGEDIR}${PREFIX}/logstash/vendor/jruby/lib/ruby/gems/shared/cache |
70 |
${FIND} -s ${STAGEDIR}${PREFIX}/logstash -not -type d | ${SORT} | \ |
77 |
${FIND} -s ${STAGEDIR}${PREFIX}/logstash -not -type d | ${SORT} | \ |
71 |
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} |
78 |
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} |
72 |
${ECHO} "@dir(logstash,logstash,) logstash/data" >> ${TMPPLIST} |
79 |
${ECHO} "@dir(logstash,logstash,) logstash/data" >> ${TMPPLIST} |
73 |
|
80 |
|
74 |
.include <bsd.port.mk> |
81 |
.include <bsd.port.mk> |