Commit graph

12 commits

Author SHA1 Message Date
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Martin Wilke
22d4fbe5a7 - Modify rc.d script to allow administrator to change PID file location
without editing rc.d script.  New knob nrpe2_pidfile is provided for
  this and it defaults to the old value of the PID file.
- Bump PORTREVISION

PR:		129386
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Approved by:	maintainer
2008-12-25 20:24:43 +00:00
Martin Wilke
1488eedce8 - Update to 2.12
Included in this PR is reload support requested by ports/126476 in addition to a
change in the location of the PID file. I have however opted to move this file to
NAGIOSDIR to reduce the number of directories created by all Nagios related ports.

PR:		128409
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2008-11-21 21:00:22 +00:00
Beech Rintoul
ee91cf83e5 - Update to NRPE 2.11.
- Finally bump the port to the current version after remaining at 2.7 for a while
  due to garbage characters being returned by nrpe2. Issue was caused by the
  reading command buffer not being \0 terminated. This has been resolved in CVS
  but has been back-ported for now.

PR:		ports/120874
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au>	(maintainer)
2008-02-20 19:18:37 +00:00
Martin Matuska
c55da37cb0 - added support for variables from net-mgmt/nagios
- updated sample configuration file
- renamed startup script from nrpe2.sh to nrpe2
- changed maintainer to Jarrod Sayers <jarrot@netleader.com.au>

PR:		ports/114035
Submitted by:	Jarrod Sayers <jarrot@netleader.com.au>
Approved by:	maintainer, garga (mentor)
2007-07-24 12:57:40 +00:00
Rong-En Fan
0a03fbf374 - Fix a small typo
Spotted by:	sat
Approved by:	maintainer (implicit)
2007-04-07 14:34:14 +00:00
Rong-En Fan
d1ae052ab0 - Correct pkg-message for rc script variables
PR:		ports/111355
Submitted by:	Dan Langille <dan@langille.org> (maintainer)
2007-04-07 14:15:53 +00:00
Alejandro Pulver
717b73bd2c - Patch the sample configuration file to use FreeBSD devices instead of Linux
ones for the HDD.

PR:		ports/108636
Submitted by:	Dan Langille <dan@langille.org> (maintainer)
2007-02-05 19:07:48 +00:00
Rong-En Fan
eea0eeac2e - Update to 2.6
- Make sure nagios user/group is created when installing from ports
- Pass maintainership to submitter

PR:		ports/107175
Submitted by:	Dan Langille <dan at langille.org>
2006-12-25 14:32:45 +00:00
Marcus Alves Grando
86a6a64828 - Update to 2.5.1
- Fix using USE_OPENSSH after bsd.port.pre.mk
- portlint(1)

PR:		95811
Submitted by:	Martin Matuska <martin___matuska.org>
Approved by:	maintainer timeout (14 days)
2006-04-29 18:28:31 +00:00
Doug Barton
c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00
Pav Lucistnik
bbe10a6dc6 - add rcng startup script
- make nrpe write pid file in /var/run
- replace pkg-plist file with PLIST_FILES in Makefile

PR:		ports/81139
Submitted by:	Meno Abels <meno.abels@adviser.com>
Approved by:	Paul Dlug <paul@nerdlabs.com> (maintainer)
2005-05-26 19:26:04 +00:00