2003-12-13 23:47:09 +01:00
|
|
|
# New ports collection makefile for: nsca
|
|
|
|
# Date created: 2003-11-18
|
|
|
|
# Whom: Paul Dlug <paul@nerdlabs.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nsca
|
2012-02-02 12:14:22 +01:00
|
|
|
PORTVERSION= 2.9.1
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/nagios/nsca-2.x/nsca-${PORTVERSION}
|
2003-12-13 23:47:09 +01:00
|
|
|
|
2007-04-05 15:19:09 +02:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
2003-12-13 23:47:09 +01:00
|
|
|
COMMENT= Nagios Service Check Acceptor
|
|
|
|
|
2006-09-14 14:27:47 +02:00
|
|
|
.if !defined(WITHOUT_SERVER)
|
2004-03-15 03:44:36 +01:00
|
|
|
RUN_DEPENDS= nagios:${PORTSDIR}/net-mgmt/nagios
|
2006-09-14 14:27:47 +02:00
|
|
|
.endif
|
2003-12-13 23:47:09 +01:00
|
|
|
LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt
|
|
|
|
|
2007-12-25 20:38:41 +01:00
|
|
|
.if defined(WITHOUT_SERVER) && defined(WITHOUT_CLIENT)
|
|
|
|
IGNORE= you cannot define WITHOUT_SERVER and WITHOUT_CLIENT
|
|
|
|
.endif
|
|
|
|
|
2011-03-23 16:53:22 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2003-12-13 23:47:09 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-05-30 11:19:04 +02:00
|
|
|
USE_PERL5= yes
|
2003-12-13 23:47:09 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --localstatedir=/var/spool/nagios
|
2007-12-25 20:38:41 +01:00
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
2003-12-13 23:47:09 +01:00
|
|
|
|
2006-09-14 14:27:47 +02:00
|
|
|
.if !defined(WITHOUT_SERVER)
|
2007-02-06 22:05:39 +01:00
|
|
|
USE_RC_SUBR= nsca
|
2006-09-14 14:27:47 +02:00
|
|
|
PLIST_SUB+= SERVER=""
|
2007-12-25 20:38:41 +01:00
|
|
|
WITHOUT_CLIENT= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES+= pkg-message
|
2006-09-14 14:27:47 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= SERVER="@comment "
|
2007-12-25 20:38:41 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message.client
|
|
|
|
SUB_FILES+= pkg-message.client
|
2006-09-14 14:27:47 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_CLIENT)
|
|
|
|
PLIST_SUB+= CLIENT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CLIENT="@comment "
|
|
|
|
.endif
|
2003-12-13 23:47:09 +01:00
|
|
|
|
|
|
|
DOCS= Changelog LEGAL README SECURITY
|
|
|
|
|
|
|
|
do-install:
|
2006-09-14 14:27:47 +02:00
|
|
|
.if !defined(WITHOUT_CLIENT)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/sbin/send_nsca
|
2007-12-25 20:38:41 +01:00
|
|
|
${MKDIR} ${PREFIX}/etc/nagios
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${PREFIX}/etc/nagios/send_nsca.cfg-sample
|
2006-09-14 14:27:47 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SERVER)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/sbin/nsca
|
2007-12-25 20:38:41 +01:00
|
|
|
${MKDIR} ${PREFIX}/etc/nagios
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${PREFIX}/etc/nagios/nsca.cfg-sample
|
2006-09-14 14:27:47 +02:00
|
|
|
.endif
|
2007-12-25 20:38:41 +01:00
|
|
|
|
|
|
|
post-install:
|
2003-12-13 23:47:09 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2007-12-25 20:38:41 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-12-13 23:47:09 +01:00
|
|
|
|
2007-10-04 04:24:29 +02:00
|
|
|
.include <bsd.port.mk>
|