diff --git a/net-mgmt/icinga2/Makefile b/net-mgmt/icinga2/Makefile index 8e7bd934b075..5515a76665c2 100644 --- a/net-mgmt/icinga2/Makefile +++ b/net-mgmt/icinga2/Makefile @@ -1,108 +1,111 @@ PORTNAME= icinga2 DISTVERSIONPREFIX= v DISTVERSION= 2.13.5 PORTREVISION= 0 CATEGORIES= net-mgmt +PATCH_SITES+= https://github.com/Icinga/icinga2/commit/ +PATCHFILES+= dd51997c73c6b4b328e3ad006eb8c86678001780.patch:-p1 + MAINTAINER= joneum@FreeBSD.org COMMENT= Monitoring and management system for hosts, services and networks WWW= https://www.icinga.org/icinga2/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_system.so:devel/boost-libs RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash USES= alias bison cmake:insource compiler:c++0x libedit ssl USE_GITHUB= yes GH_ACCOUNT= icinga USE_LDCONFIG= yes USE_RC_SUBR= ${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES LTO UNITY OPTIONS_GROUP= BACKEND OPTIONS_GROUP_BACKEND= MYSQL PGSQL OPTIONS_RADIO= PLUGINS OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS OPTIONS_DEFAULT= MONPLUGINS MYSQL PGSQL UNITY UNITY_DESC= Use icinga unity build system (faster, memory intensive) MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins MYSQL_CMAKE_ON= -DICINGA2_WITH_MYSQL:BOOL=true PGSQL_CMAKE_ON= -DICINGA2_WITH_PGSQL:BOOL=true UNITY_CMAKE_OFF= -DICINGA2_UNITY_BUILD=OFF ICINGA2USER?= icinga ICINGA2GROUP?= icinga USERS= ${ICINGA2USER} GROUPS= ${ICINGA2GROUP} LOCALSTATEDIR?= /var ICINGA2LOGDIR?= /var/log/${PORTNAME} CMAKE_ARGS+= -DCMAKE_EXE_LINKER_FLAGS=${PREFIX}/lib/icinga2 \ -DCMAKE_INSTALL_LOCALSTATEDIR=${LOCALSTATEDIR} \ -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/etc \ -DCMAKE_MODULE_LINKER_FLAGS=${PREFIX}/lib/icinga2 \ -DCMAKE_SHARED_LINKER_FLAGS=${PREFIX}/lib/icinga2 \ -DCMAKE_STATIC_LINKER_FLAGS=${PREFIX}/lib/icinga2 \ -DICINGA2_COMMAND_GROUP=${ICINGA2USER} \ -DICINGA2_COMMAND_USER=${ICINGA2USER} \ -DICINGA2_GROUP=${ICINGA2GROUP} \ -DICINGA2_PLUGINDIR=${LOCALBASE}/libexec/nagios \ -DICINGA2_RUNDIR=/var/run \ -DICINGA2_USER=${ICINGA2USER} SUB_LIST= ICINGA2GROUP=${ICINGA2GROUP} \ ICINGA2LOGDIR=${ICINGA2LOGDIR} \ ICINGA2USER=${ICINGA2USER} \ WWWGRP=${WWWGRP} PLIST_SUB= ICINGA2GROUP=${ICINGA2GROUP} \ ICINGA2USER=${ICINGA2USER} \ WWWGRP=${WWWGRP} SUB_FILES= ${PORTNAME}-newsyslog.conf pkg-message # Config files with references to "Linux" LINUX_CONFIG= groups.conf services.conf hosts.conf LTO_CMAKE_BOOL= ICINGA2_LTO_BUILD MYSQL_USES= mysql PGSQL_USES= pgsql OPTIONS_SUB= yes .include .if ! ${PORT_OPTIONS:MMYSQL} && ! ${PORT_OPTIONS:MPGSQL} PLIST_SUB+= DBBACKEND="@comment " .else PLIST_SUB+= DBBACKEND="" .endif post-patch: .for f in ${LINUX_CONFIG} ${REINPLACE_CMD} 's,[Ll]inux,FreeBSD,g' ${WRKSRC}/etc/icinga2/conf.d/${f} .endfor pre-install: ${FIND} ${WRKSRC}/etc -type f -name "*.conf" -exec ${MV} {} {}.sample \; ${FIND} ${WRKSRC}/etc/icinga2/scripts -type f -name "*.sh" \ -exec ${MV} {} {}.sample \; post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/newsyslog/ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-newsyslog.conf ${STAGEDIR}${EXAMPLESDIR}/newsyslog/${PORTNAME}.conf ${MKDIR} ${STAGEDIR}${PREFIX}/share/vim/vimfiles (cd ${WRKSRC}/tools/syntax/vim && ${COPYTREE_SHARE} . \ ${STAGEDIR}${PREFIX}/share/vim/vimfiles) .include diff --git a/net-mgmt/icinga2/distinfo b/net-mgmt/icinga2/distinfo index c89e5de6d4d2..15e8bd8249c9 100644 --- a/net-mgmt/icinga2/distinfo +++ b/net-mgmt/icinga2/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1663457861 +TIMESTAMP = 1673546305 SHA256 (icinga-icinga2-v2.13.5_GH0.tar.gz) = b28e5fad148d56a781356c2a214aa4050aa8e0f86cc0568ca0a3e7bc8c8ef57c SIZE (icinga-icinga2-v2.13.5_GH0.tar.gz) = 9663739 +SHA256 (dd51997c73c6b4b328e3ad006eb8c86678001780.patch) = 95a729bda8c368e15c89ceb98d45cfcd8048d28cb8659eeb79adc07724a4dcf5 +SIZE (dd51997c73c6b4b328e3ad006eb8c86678001780.patch) = 3876