mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
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
This commit is contained in:
parent
1f5523b051
commit
5b45e17667
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=398659
@ -76,6 +76,7 @@
|
||||
SUBDIR += icinga-classicweb
|
||||
SUBDIR += icinga-core
|
||||
SUBDIR += icinga2
|
||||
SUBDIR += icingaweb2
|
||||
SUBDIR += icli
|
||||
SUBDIR += icmpmonitor
|
||||
SUBDIR += icmpquery
|
||||
|
62
net-mgmt/icingaweb2/Makefile
Normal file
62
net-mgmt/icingaweb2/Makefile
Normal file
@ -0,0 +1,62 @@
|
||||
# $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>
|
2
net-mgmt/icingaweb2/distinfo
Normal file
2
net-mgmt/icingaweb2/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (icinga-icingaweb2-v2.0.0_GH0.tar.gz) = a6a5383049e632108ce19b4b85f16a7fdd2f5acb3a6d2af3935254e2bc7fb2e6
|
||||
SIZE (icinga-icingaweb2-v2.0.0_GH0.tar.gz) = 9854668
|
10
net-mgmt/icingaweb2/files/pkg-message.in
Normal file
10
net-mgmt/icingaweb2/files/pkg-message.in
Normal file
@ -0,0 +1,10 @@
|
||||
Sample configuration files for Apache and NGinx have been installed in:
|
||||
%%EXAMPLESDIR%%
|
||||
|
||||
Be sure to enable PHP and rewrite support in your browser.
|
||||
|
||||
Now create a configuration token:
|
||||
cd %%WWWDIR%% && ./bin/icingacli setup token create --config=%%ETCDIR%%
|
||||
|
||||
Enter this token on Icinga Web 2's setup interface at
|
||||
http://localhost/icingaweb2/setup
|
6
net-mgmt/icingaweb2/pkg-descr
Normal file
6
net-mgmt/icingaweb2/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
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
|
3289
net-mgmt/icingaweb2/pkg-plist
Normal file
3289
net-mgmt/icingaweb2/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user