openbsd-ports/www/kibana/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

48 lines
1.3 KiB
Makefile

COMMENT= browser based analytics/search interface to ElasticSearch
V = 7.10.0
PKGNAME = kibana-${V}
DISTNAME = kibana-oss-${V}-darwin-x86_64
REVISION = 1
CATEGORIES = www
HOMEPAGE = https://www.elastic.co/products/kibana
MAINTAINER = Pavel Korovin <pvk@openbsd.org>
# Apache
PERMIT_PACKAGE = Yes
MASTER_SITES = http://artifacts.elastic.co/downloads/kibana/
RUN_DEPENDS = lang/node
NO_BUILD = Yes
NO_TEST = Yes
PKG_ARCH = *
SUBST_TARGETS = ${WRKSRC}/bin/*
WRKDIST = ${WRKDIR}/kibana-${V}-darwin-x86_64
do-install:
${SUBST_CMD} ${SUBST_TARGETS}
${INSTALL_DATA_DIR} ${PREFIX}/kibana
${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/kibana/
${INSTALL_DATA} ${WRKDIST}/*.txt ${PREFIX}/share/doc/kibana/
${INSTALL_DATA} ${WRKDIST}/config/kibana.yml \
${PREFIX}/share/examples/kibana/
rm -r ${WRKDIST}/*.{orig,txt} ${WRKDIST}/{data,plugins} \
${WRKDIST}/{bin/*.{orig,beforesubst},config,node}
find ${WRKDIST} \( -name \.* -a \! -name \.cache \) -exec rm -rf {} +
find ${WRKDIST} -name \*~ -delete
cd ${WRKDIST} && cp -R * ${PREFIX}/kibana/
${INSTALL_DATA_DIR} ${PREFIX}/kibana/config
cd ${PREFIX}/kibana && \
ln -s ${LOCALSTATEDIR}/kibana/data data && \
ln -s ${LOCALSTATEDIR}/kibana/plugins plugins
cd ${PREFIX}/kibana/config && \
ln -s ${SYSCONFDIR}/kibana/kibana.yml
.include <bsd.port.mk>