aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/kibana5/Makefile
blob: 7d099037d366a44abf1742ac0802b6dc8a8bb026 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Tom Judge <tj@FreeBSD.org>
# $FreeBSD$

PORTNAME=   kibana
PORTVERSION=    5.6.8
DISTVERSIONSUFFIX=  -linux-x86
PORTREVISION=   0
CATEGORIES= textproc www
MASTER_SITES=   https://artifacts.elastic.co/downloads/kibana/ \
        http://artifacts.elastic.co/downloads/kibana/
PKGNAMESUFFIX?= 5

MAINTAINER= tj@FreeBSD.org
COMMENT=    Browser based analytics and search interface to ElasticSearch

LICENSE=    APACHE20

RUN_DEPENDS=    node>=0.8.0:www/node

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} ${STAGEDIR}${WWWDIR}/optimize
    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>