sthen 69226b8e47 Fix nsca-ng on 32-bit arch with 64-bit time_t. Problem researched and original
diff from florian@; I am using a slightly different diff from upstream here
(also tested by florian@).
2013-09-12 17:03:45 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2013/09/12 17:03:45 sthen Exp $
COMMENT-main= server to accept passive check results for Nagios/Icinga
COMMENT-client= client to send passive check results to Nagios/Icinga
V= 1.1
DISTNAME= nsca-ng-$V
PKGNAME-main= nsca-ng-$V
PKGNAME-client= nsca-ng-client-$V
REVISION= 0
CATEGORIES= net
HOMEPAGE= https://www.nsca-ng.org/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c crypto ev ssl
WANTLIB-main= ${WANTLIB} confuse
MASTER_SITES= https://www.nsca-ng.org/download/
LIB_DEPENDS= devel/libev
LIB_DEPENDS-main= ${LIB_DEPENDS} \
devel/libconfuse
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-server
SEPARATE_BUILD= Yes
MULTI_PACKAGES= -main -client
RUN_DEPENDS-main= icinga-*|nagios-*:net/nagios/nagios
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/nsca-ng
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios/
cd ${WRKSRC}/contrib; ${INSTALL_DATA} README acknowledge debug_server \
disable_notifications downtime enable_notifications invoke_check \
${PREFIX}/share/examples/nsca-ng/
ln -s ${TRUEPREFIX}/sbin/send_nsca ${PREFIX}/libexec/nagios/send_nsca
.include <bsd.port.mk>