icinga/core2: unbreak the pseudo-flavour setup, found by aja@

This commit is contained in:
sthen 2020-12-04 16:53:48 +00:00
parent 27726d3e61
commit 9a86762dac

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.106 2020/12/03 15:22:40 sthen Exp $
# $OpenBSD: Makefile,v 1.107 2020/12/04 16:53:48 sthen Exp $
COMMENT-main = network monitoring system
COMMENT-mysql = MySQL support for icinga2
@ -98,13 +98,17 @@ LDFLAGS += -latomic
.endif
.include <bsd.port.arch.mk>
.if !${BUILD_PACKAGES:Mmysql}
.if !${BUILD_PACKAGES:M-mysql}
CONFIGURE_ARGS += -DICINGA2_WITH_MYSQL=OFF
.endif
.if !${BUILD_PACKAGES:Mpgsql}
.if !${BUILD_PACKAGES:M-pgsql}
CONFIGURE_ARGS += -DICINGA2_WITH_PGSQL=OFF
.endif
.if !${ARCH:Mamd64} || defined(DEBUG)
CONFIGURE_ARGS += -DICINGA2_UNITY_BUILD=OFF
.endif
post-install:
mv ${WRKINST}${SYSCONFDIR}/icinga2/features-available/* \
${PREFIX}/share/examples/icinga2/features-available/
@ -120,9 +124,4 @@ post-install:
sed -i "s,/usr/share/icinga2,${TRUEPREFIX}/share/icinga2,g" \
${PREFIX}/share/doc/icinga2/markdown/*.md
.include <bsd.port.arch.mk>
.if !${ARCH:Mamd64} || defined(DEBUG)
CONFIGURE_ARGS += -DICINGA2_UNITY_BUILD=OFF
.endif
.include <bsd.port.mk>