af9a92197a
Kibana 5 and 6 currently requires the Node.js 6.x LTS branch for maximum compatibility.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Tom Judge <tj@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kibana
|
|
PORTVERSION= 5.6.8
|
|
DISTVERSIONSUFFIX= -linux-x86
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc www
|
|
MASTER_SITES= https://artifacts.elastic.co/downloads/kibana/ \
|
|
http://artifacts.elastic.co/downloads/kibana/
|
|
PKGNAMESUFFIX?= 5
|
|
|
|
MAINTAINER= elastic@FreeBSD.org
|
|
COMMENT= Browser based analytics and search interface to ElasticSearch
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= node6>=6.12.2:www/node6
|
|
|
|
CONFLICTS= kibana[3-4]*
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
SUB_FILES= pkg-deinstall
|
|
|
|
do-install:
|
|
${CP} ${WRKSRC}/config/kibana.yml ${STAGEDIR}${PREFIX}/etc/kibana.yml.sample
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
cd ${WRKSRC} && \
|
|
${RM} -r bin config node && \
|
|
${RM} -r optimize && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
post-install:
|
|
${ECHO} "@sample etc/kibana.yml.sample" >> ${TMPPLIST}
|
|
${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
|
|
${ECHO} "@dir(www,www) ${WWWDIR}/data" >> ${TMPPLIST}
|
|
${ECHO} "@dir ${WWWDIR}/plugins" >> ${TMPPLIST}
|
|
${ECHO} "@dir ${WWWDIR}/src/ui/public/factories" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|