2019-04-03 14:01:29 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2019/04/03 14:01:29 naddy Exp $
|
2006-02-04 13:16:08 +00:00
|
|
|
|
2007-09-15 22:36:51 +00:00
|
|
|
COMMENT= Nagios Remote Plugin Executor
|
2006-02-04 13:16:08 +00:00
|
|
|
|
2013-09-17 21:22:26 +00:00
|
|
|
DISTNAME= nrpe-2.15
|
2019-04-03 14:01:29 +00:00
|
|
|
REVISION= 10
|
2006-02-04 13:16:08 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.nagios.org/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2011-04-21 11:23:38 +00:00
|
|
|
|
2015-03-23 09:16:55 +00:00
|
|
|
WANTLIB= c
|
|
|
|
|
|
|
|
FLAVOR?=
|
|
|
|
FLAVORS= no_ssl
|
2006-02-04 13:16:08 +00:00
|
|
|
|
2013-04-17 15:15:16 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
|
2006-02-04 13:16:08 +00:00
|
|
|
|
2014-07-11 20:08:23 +00:00
|
|
|
RUN_DEPENDS= net/monitoring-plugins
|
2006-02-04 13:16:08 +00:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2014-04-21 10:28:31 +00:00
|
|
|
CONFIGURE_ARGS+= --libexecdir=${LOCALBASE}/libexec/nagios \
|
2011-04-21 11:23:38 +00:00
|
|
|
--with-nrpe-user=_nrpe \
|
2014-03-23 21:07:10 +00:00
|
|
|
--with-nrpe-group=_nrpe
|
2006-02-04 13:16:08 +00:00
|
|
|
|
2015-03-23 09:16:55 +00:00
|
|
|
.if ${FLAVOR:Mno_ssl}
|
|
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
|
|
.else
|
|
|
|
WANTLIB+= lib/eopenssl/crypto lib/eopenssl/ssl
|
2018-11-07 11:07:11 +00:00
|
|
|
LIB_DEPENDS= security/openssl/1.0.2
|
2015-03-23 09:16:55 +00:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -nostdinc -I${LOCALBASE}/include/eopenssl -I/usr/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib/eopenssl -Wl,-rpath,${LOCALBASE}/lib/eopenssl"
|
|
|
|
.endif
|
|
|
|
|
2006-02-04 13:16:08 +00:00
|
|
|
pre-configure:
|
2008-11-13 08:33:16 +00:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/src/nrpe.c
|
2006-02-04 13:16:08 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nrpe
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nrpe
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nrpe
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SECURITY ${PREFIX}/share/doc/nrpe
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${PREFIX}/share/examples/nrpe
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin
|
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2006-02-04 13:16:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|