pkgsrc/net/nsca-ng/Makefile
maya 646c4ee218 Add nsca-ng version 1.4
The NSCA-ng package provides a client-server pair that makes the Nagios
command file accessible to remote systems. This allows for submitting
passive check results, downtimes, and many other commands to Nagios or
compatible monitoring solutions.
It can also be used for implementing distributed setups. The submitted
data is queued by the NSCA-ng server if Nagios goes down. Multiple check
results or commands can be submitted in one go, and multiline plugin
output is fully supported.

From Timo Buhrmester in PR pkg/51407
PR pkg/51406

My changes: fixed pkglint warnings (didn't run 'make distinfo'),
unified the server and client packages because they installed extra man
pages for me, and patched for building with OpenSSL 1.1.1.

I had to get the distfile from another place because the website hosting
this package is currently down.
2019-09-07 16:25:53 +00:00

36 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2019/09/07 16:25:53 maya Exp $
VER= 1.4
DISTNAME= nsca-ng-${VER}
CATEGORIES= net
MASTER_SITES= http://www.nsca-ng.org/download/
MAINTAINER= timo@math.uni-bonn.de
HOMEPAGE= https://www.nsca-ng.org/download/
COMMENT= Send/accept passive check results to/from nagios
LICENSE= 2-clause-bsd
SUBST_CLASSES+= config
SUBST_MESSAGE.config= Adjust variables: VARBASE (in nsca-ng.cfg)
SUBST_FILES.config+= etc/nsca-ng.cfg
SUBST_STAGE.config= pre-configure
SUBST_VARS.config= VARBASE
RCD_SCRIPTS= nsca_ng_server
RCD_SCRIPT_SRC.nsca_ng_server= files/nsca-ng-server.sh
EGDIR= ${PREFIX}/share/examples/nsca-ng
CONF_FILES= ${EGDIR}/nsca-ng.cfg ${PKG_SYSCONFDIR}/nsca-ng.cfg
INSTALLATION_DIRS+= ${EGDIR}
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} --enable-server=yes --enable-client=yes --localstatedir=/var/spool
# Not available in OpenSSL 1.1.x
CONFIGURE_ENV+= ac_cv_lib_ssl_SSL_library_init=yes
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/confuse/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"