openbsd-ports/net/nagios/nsca/Makefile
bernd 32619d48f4 Import nsca-2.5.
The purpose of this Nagios addon is to allow you to send service check
results to a central monitoring server running Nagios in a secure manner.
2006-03-13 18:18:22 +00:00

58 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2006/03/13 18:18:22 bernd Exp $
COMMENT= "nagios service check acceptor"
COMMENT-client= "nagios service check acceptor - client"
VERSION= 2.5
DISTNAME= nsca-${VERSION}
PKGNAME-client= nsca-client-${VERSION}
CATEGORIES= net
HOMEPAGE= http://www.nagios.org/
MAINTAINER= Bernd Ahlers <bernd@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
WANTLIB= c
LIB_DEPENDS= mcrypt.8::security/libmcrypt
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-nsca-user=_nagios \
--with-nsca-grp=_nagios \
--localstatedir=/var/nagios
NO_REGRESS= Yes
MULTI_PACKAGES= -client
SUBPACKAGE?=
.if defined(PACKAGING) && ${SUBPACKAGE} != "-client"
RUN_DEPENDS+= :nagios-*:net/nagios/nagios
.endif
pre-build:
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," ${WRKSRC}/src/nsca.c \
${WRKSRC}/src/send_nsca.c
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios
${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/libexec/nagios/
${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/sbin/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nsca
${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg \
${PREFIX}/share/examples/nsca/
${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg \
${PREFIX}/share/examples/nsca/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nsca
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nsca/
${INSTALL_DATA} ${WRKSRC}/SECURITY ${PREFIX}/share/doc/nsca/
.include <bsd.port.mk>