mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
4f930e01f4
- Corrected incorrect paths to plugins in the sample configuration file. - Installed the check_nrpe plugin (in case the installer wants to use this host as a client). PR: 48690 Submitted by: Paul Dlug <paul@nerdlabs.com>
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
# New ports collection makefile for: nrpe
|
|
# Date created: 1 Aug 2002
|
|
# Whom: Paul Dlug<paul@nerdlabs.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nrpe
|
|
PORTVERSION= 1.8
|
|
PORTREVISION= 0
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= nagios
|
|
|
|
MAINTAINER= paul@nerdlabs.com
|
|
COMMENT= Nagios Remote Plugin Executor
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net/nagios-plugins
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_REINPLACE= yes
|
|
|
|
pre-install:
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
${REINPLACE_CMD} -e "s=/usr/local/bin/nrpe=${PREFIX}/sbin/nrpe=" ${WRKSRC}/init-script.freebsd
|
|
${REINPLACE_CMD} -e "s=/usr/local/libexec=${PREFIX}/libexec/nagios=" ${WRKSRC}/nrpe.cfg
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios/check_nrpe
|
|
${INSTALL_DATA} ${WRKSRC}/nrpe.cfg ${PREFIX}/etc/nrpe.cfg-sample
|
|
${INSTALL_SCRIPT} ${WRKSRC}/init-script.freebsd ${PREFIX}/etc/rc.d/nrpe.sh
|
|
|
|
.include <bsd.port.mk>
|