mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
- Update to 1.7.1
- Change to new OPTIONS framework - Don't depend on specific lib versions
This commit is contained in:
parent
782ba72d6e
commit
5ac9e00c4b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=301659
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= icinga
|
||||
PORTVERSION= 1.7.0
|
||||
PORTREVISION= 3
|
||||
PORTVERSION= 1.7.1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF
|
||||
|
||||
@ -16,7 +15,7 @@ COMMENT= Enterprise grade open source monitoring system based on nagios
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
||||
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd
|
||||
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
|
||||
|
||||
USE_ICONV= yes
|
||||
@ -24,14 +23,6 @@ USE_PERL5_BUILD= yes
|
||||
USE_AUTOTOOLS= autoconf libltdl
|
||||
USE_RC_SUBR= icinga
|
||||
|
||||
OPTIONS= EMBEDDED_PERL "Enable embedded Perl" on \
|
||||
NANOSLEEP "Use nanosleep in event timing" off \
|
||||
UNHANDLED_HACK "Display passive checks in unhandled queries" off \
|
||||
IDOUTILS "Enable IDOUtils" on \
|
||||
PGSQL "Enable support for PostgreSQL" off \
|
||||
MYSQL "Depend on MySQL" off \
|
||||
APACHE "Depend on Apache and install webconfig" off
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
ICINGAUSER?= icinga
|
||||
@ -46,8 +37,6 @@ ICINGAWWWDIR?= www/icinga
|
||||
ICINGAHTMURL?= /icinga
|
||||
ICINGACGIURL?= ${ICINGAHTMURL}/cgi-bin
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include -fPIC
|
||||
CFLAGS+= ${CPPFLAGS}
|
||||
|
||||
@ -94,7 +83,17 @@ SUB_FILES= pkg-install \
|
||||
SUB_LIST= PREFIX=${PREFIX} \
|
||||
${PLIST_SUB}
|
||||
|
||||
.if defined(WITH_EMBEDDED_PERL)
|
||||
OPTIONS_DEFINE= EMBEDDED_PERL NANOSLEEP UNHANDLED_HACK IDOUTILS PGSQL MYSQL APACHE
|
||||
OPTIONS_DEFAULT= EMBEDDED_PERL IDOUTILS
|
||||
|
||||
EMBEDDED_PERL_DESC= Enable embedded Perl
|
||||
NANOSLEEP_DESC= Use nanosleep in event timing
|
||||
UNHANDLED_HACK_DESC= Display passive checks in unhandled queries
|
||||
APACHE_DESC= Depend on Apache and install webconfig
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MEMBEDDED_PERL}
|
||||
USE_PERL5= 5.8.0+
|
||||
CONFIGURE_ARGS+= --enable-embedded-perl \
|
||||
--with-perlcache
|
||||
@ -103,12 +102,12 @@ PLIST_SUB+= EMBEDDED_PERL=""
|
||||
PLIST_SUB+= EMBEDDED_PERL="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NANOSLEEP)
|
||||
.if ${PORT_OPTIONS:MNANOSLEEP}
|
||||
CONFIGURE_ARGS+= --enable-nanosleep
|
||||
.endif
|
||||
|
||||
.if defined(WITH_IDOUTILS)
|
||||
LIB_DEPENDS+= dbi.1:${PORTSDIR}/databases/libdbi-drivers
|
||||
.if ${PORT_OPTIONS:MIDOUTILS}
|
||||
LIB_DEPENDS+= dbi:${PORTSDIR}/databases/libdbi-drivers
|
||||
CONFIGURE_ARGS+= --enable-idoutils \
|
||||
--enable-ssl \
|
||||
--with-dbi-lib=${LOCALBASE}/lib \
|
||||
@ -120,16 +119,16 @@ PLIST_SUB+= IDOUTILS=""
|
||||
PLIST_SUB+= IDOUTILS="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
.if ${PORT_OPTIONS:MMYSQL}
|
||||
USE_MYSQL= yes
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
.if ${PORT_OPTIONS:MPGSQL}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --enable-pgsql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_APACHE)
|
||||
.if ${PORT_OPTIONS:MAPACHE}
|
||||
USE_APACHE= 22+
|
||||
CONFIGURE_ARGS+= --with-httpd-conf=${LOCALBASE}/${APACHEETCDIR}/extra
|
||||
INSTALL_TARGET+= install-webconf
|
||||
@ -142,7 +141,7 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's#/bin/ping#/sbin/ping#' ${WRKSRC}/sample-config/cgi.cfg.in
|
||||
@${REINPLACE_CMD} -e 's#Linux#FreeBSD#' ${WRKSRC}/sample-config/icinga.cfg.in
|
||||
@${REINPLACE_CMD} -e 's#775#755#g; s#664#644#g' ${WRKSRC}/html/Makefile.in
|
||||
.if defined(WITH_UNHANDLED_HACK)
|
||||
.if ${PORT_OPTIONS:MUNHANDLED_HACK}
|
||||
@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
|
||||
-e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/menu.html.in
|
||||
.endif
|
||||
@ -165,4 +164,4 @@ post-install:
|
||||
@${CHOWN} ${ICINGAUSER}:${WWWGRP} ${ICINGADIR}/rw
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (icinga-1.7.0.tar.gz) = e0d033e37bd3c4fb6a35151cc94aae4ca8e730510d9156ea755245728f8acb8b
|
||||
SIZE (icinga-1.7.0.tar.gz) = 12939198
|
||||
SHA256 (icinga-1.7.1.tar.gz) = 86662178fae6a3618340b2d0b0fad5033439556649f79214a9a2331c10c2cab6
|
||||
SIZE (icinga-1.7.1.tar.gz) = 12938365
|
||||
|
Loading…
Reference in New Issue
Block a user