45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
COMMENT-main= server to accept passive check results for Nagios/Icinga
|
|
COMMENT-client= client to send passive check results to Nagios/Icinga
|
|
|
|
V= 1.6
|
|
REVISION= 2
|
|
DISTNAME= nsca-ng-$V
|
|
PKGNAME-main= nsca-ng-$V
|
|
PKGNAME-client= nsca-ng-client-$V
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= https://www.nsca-ng.org/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c ev lib/eopenssl11/crypto lib/eopenssl11/ssl
|
|
WANTLIB-main= ${WANTLIB} confuse
|
|
|
|
MASTER_SITES= https://github.com/weiss/nsca-ng/releases/download/v$V/
|
|
|
|
# OpenSSL used for PSK (SSL_get_psk_identity)
|
|
LIB_DEPENDS= devel/libev \
|
|
security/openssl/1.1
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
|
devel/libconfuse
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --enable-server
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/eopenssl11" \
|
|
LDFLAGS="-L${LOCALBASE}/lib/eopenssl11 -Wl,-rpath,${LOCALBASE}/lib/eopenssl11"
|
|
SEPARATE_BUILD= Yes
|
|
|
|
MULTI_PACKAGES= -main -client
|
|
|
|
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>
|