FreeBSD Bugzilla – Attachment 48102 Details for
Bug 73632
[patch] support of rc_subr for net-mgmt/nrpe
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.67 KB, created by
edwin
on 2004-11-07 01:10:26 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
edwin
Created:
2004-11-07 01:10:26 UTC
Size:
2.67 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/pcvs/ports/net-mgmt/nrpe/Makefile,v >retrieving revision 1.10 >diff -u -r1.10 Makefile >--- Makefile 30 May 2004 09:11:35 -0000 1.10 >+++ Makefile 7 Nov 2004 00:55:58 -0000 >@@ -7,7 +7,7 @@ > > PORTNAME= nrpe > PORTVERSION= 1.9 >-PORTREVISION= 0 >+PORTREVISION= 1 > CATEGORIES= net-mgmt > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= nagios >@@ -19,14 +19,28 @@ > > GNU_CONFIGURE= yes > USE_PERL5= yes >+USE_REINPLACE= yes >+USE_RC_SUBR= yes >+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} > > CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/nagios --sysconfdir=${PREFIX}/etc \ > --sbindir=${PREFIX}/sbin --bindir=${PREFIX}/sbin > >+post-patch: >+ ${CP} ${FILESDIR}/nrpe.sh ${WRKDIR}/nrpe.sh >+ ${REINPLACE_CMD} \ >+ -e 's,%%PREFIX%%,${PREFIX},g' \ >+ -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ >+ ${WRKDIR}/nrpe.sh >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe >- ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios/check_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 >+ ${INSTALL_SCRIPT} ${WRKDIR}/nrpe.sh ${PREFIX}/etc/rc.d/nrpe.sh >+ >+post-install: >+ ${CAT} ${PKGMESSAGE} > > .include <bsd.port.mk> >Index: pkg-message >=================================================================== >RCS file: pkg-message >diff -N pkg-message >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ pkg-message 7 Nov 2004 00:55:58 -0000 >@@ -0,0 +1,5 @@ >+************************************************************************* >+Available variables you add/set to /etc/rc.conf: >+- nrpe_enable (bool): Set to "NO" by default >+- nrpe_config (string): Set to ${PREFIX}/etc/nrpe.cfg by default >+************************************************************************* >Index: files/nrpe.sh >=================================================================== >RCS file: files/nrpe.sh >diff -N files/nrpe.sh >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/nrpe.sh 7 Nov 2004 00:55:58 -0000 >@@ -0,0 +1,27 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+# >+# Add the following lines to /etc/rc.conf to enable apache2: >+# nrpe_enable (bool): Set to "NO" by default. >+# Set it to "YES" to enable nrpe >+# nrpe_config (string): Set to "/usr/local/etc/nrpe.cfg" by default. >+# >+ >+. %%RC_SUBR%% >+ >+name="nrpe" >+rcvar=`set_rcvar` >+ >+command="%%PREFIX%%/bin/nrpe" >+ >+[ -z "$nrpe_enable" ] && nrpe_enable="NO" >+[ -z "$nrpe_config" ] && nrpe_config="%%PREFIX%%/etc/nrpe.cfg" >+ >+nrpe_flags="-d ${nrpe_config}" >+ >+load_rc_config $name >+ >+run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73632
: 48102