freebsd-ports/net/nsca/Makefile
Sergei Kolobov fcc0151de7 Add nsca 2.4, Nagios Service Check Acceptor.
The Nagios Service Check Acceptor (NSCA) is used to send service check
results to a central Nagios server. This consists of the "nsca" daemon
which runs on the main Nagios server and accepts results and the
"check_nsca" plugin which is used to send results to the server.

Author:	Ethan Galstad
WWW:	http://www.nagios.org/

PR:		59436
Submitted by:	Paul Dlug <paul@nerdlabs.com>
2003-12-13 22:47:09 +00:00

40 lines
1.1 KiB
Makefile

# New ports collection makefile for: nsca
# Date created: 2003-11-18
# Whom: Paul Dlug <paul@nerdlabs.com>
#
# $FreeBSD$
#
PORTNAME= nsca
PORTVERSION= 2.4
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nagios
MAINTAINER= paul@nerdlabs.com
COMMENT= Nagios Service Check Acceptor
BUILD_DEPENDS= ${NAGIOS_DIR}:${PORTSDIR}/net/nagios
RUN_DEPENDS= ${NAGIOS_DIR}:${PORTSDIR}/net/nagios
LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --localstatedir=/var/spool/nagios
NAGIOS_DIR= ${LOCALBASE}/libexec/nagios
CONF_DIR= ${LOCALBASE}/etc/nagios
DOCS= Changelog LEGAL README SECURITY
# NOTE: this port installs into ${LOCALBASE} instead of ${PREFIX}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${NAGIOS_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${NAGIOS_DIR}
${INSTALL_DATA} ${WRKSRC}/nsca.cfg ${CONF_DIR}/nsca.cfg.sample
${INSTALL_DATA} ${WRKSRC}/send_nsca.cfg ${CONF_DIR}/send_nsca.cfg.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>