1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net-mgmt/icingaweb2/Makefile
Lars Engels 5b45e17667 Add new port net-mgmt/icingaweb2
Icinga Web 2 is the next generation open source monitoring web interface,
framework and command-line interface developed by the Icinga Project,
supporting Icinga 2, Icinga Core and any other monitoring backend compatible
with the Livestatus Protocol.

WWW: https://github.com/Icinga/icingaweb2
2015-10-05 18:32:09 +00:00

63 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= icingaweb2
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.0
CATEGORIES= net-mgmt www
MAINTAINER= lme@FreeBSD.org
COMMENT= Next generation web interface for Icinga 1 and 2
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${LOCALBASE}/share/ZendFramework/bin/classmap_generator.php:${PORTSDIR}/www/zend-framework
USE_GITHUB= yes
GH_ACCOUNT= icinga
NO_BUILD= yes
USE_PHP_BUILD= yes # Needed for creation of webserver configs during installation
USE_PHP= ctype dom gd gettext hash json ldap openssl pdo_mysql \
pdo_pgsql session sockets
SUB_FILES= pkg-message
SUB_LIST= WWWDIR=${WWWDIR} \
ETCDIR=${ETCDIR} \
EXAMPLESDIR=${EXAMPLESDIR}
PLIST_SUB= WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP}
OPTIONS_DEFINE= LDAP MYSQL PGSQL
OPTIONS_DEFAULT= LDAP MYSQL PGSQL
PGSQL_USE= PHP=pdo_pgsql
MYSQL_USE= PHP=pdo_mysql
LDAP_USE= PHP=ldap
do-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/bash_completion.d/
${INSTALL_DATA} ${WRKSRC}/etc/bash_completion.d/icingacli \
${STAGEDIR}${EXAMPLESDIR}/bash_completion.d
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/etc && \
${COPYTREE_SHARE} schema ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${RM} -r .mailmap changelog.py icingaweb2.spec \
bin/license_writer.py etc packages test)
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC} && \
${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${CHMOD} 755 ${STAGEDIR}/${WWWDIR}/bin/icingacli
${MKDIR} ${STAGEDIR}${ETCDIR}
.for webserver in apache nginx
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${webserver}
(cd ${STAGEDIR}${WWWDIR} && \
./bin/icingacli setup config webserver ${webserver} --path=/icingaweb2 \
--root=${WWWDIR}/public --config=${ETCDIR} \
--file=${STAGEDIR}${EXAMPLESDIR}/${webserver}/icingaweb2.conf)
.endfor
.include <bsd.port.mk>