1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
Commit Graph

43 Commits

Author SHA1 Message Date
Chris Rees
16eb7c2ca0 Stop checking for get_pidfile_from_conf function in rc.subr.
It is present in all supported versions of FreeBSD, and has had poor takeup.
I strongly suspect the strange-looking checks are partially to blame for
scaring maintainers off.

Go forth and please use it!

PR:		ports/178269
Approved by:	maintainers of all ports involved
2013-05-31 11:54:01 +00:00
Doug Barton
5d043e0bd3 Fix the currently-broken rc.d script:
1. Tidy up the header
2. nrpe2 runs as an unpriviliged user, so REQUIRE: LOGIN is manadatory
3. Move load_rc_config up higher
4. Since _enable and _configfile are mandatory they should use :=
5. Only sets command_args once, and puts -d last as is traditional.
6. Pulls the pidfile from nrpe.cfg, which means it only has to be set once.
2012-10-08 08:15:28 +00:00
Chris Rees
62abc9a9fc Improve rc script handling of pidfile, and do a few optimisations
PR:		ports/168225
Submitted by:	yar (based on)

While here, copy over default config file on install
2012-09-12 20:57:27 +00:00
Bryan Drewery
3f671742f4 - Switch to using USERS/GROUPS [1]
- Convert to new options framework

PR:		ports/169918 [1]
Submitted by:	bdrewery
Approved by:	Jarrod Sayers <jarrod@downtools.com.au> (maintainer) [1]
Approved by:	eadler, bapt (mentors, implicit)
2012-09-10 15:14:14 +00:00
Michael Scheidell
045f2b1b51 - Update to 2.13 [1]
- add check for empty dir in pkg-plist

PR:		ports/164908 [1]
Submitted by:	Marc Peters <marc.peters@trivago.com> [1]
Approved by:	jarrod@downtools.com.au (maintainer), gabor (mentor, implicit)
Feature safe:	yes
2012-02-18 17:21:41 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Olli Hauer
ab8cef386e - update mainer email address (old domain no longer reachable)
- remove MD5
2010-12-30 17:46:30 +00:00
Josh Paetzel
f089a91003 Revert commit 1.8 to pkg-plist.
Approved by:	Oliver Fromme <olli@lurza.secnetix.de>
2010-10-29 16:34:40 +00:00
Josh Paetzel
4bc7c8d124 Create proper default directory for pidfile
PR:	ports/151230
Submitted by:	Eric F Crist <ecrist@secure-computing.net>
Approved by:	Maintainer timeout
2010-10-28 03:27:42 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Dmitry Marakasov
7914161a41 - Switch SourceForge ports to the new File Release System: categories starting with N 2009-08-22 00:32:25 +00:00
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
Edwin Groothuis
090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +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
b15971d3c9 - remove PREFIX from CONFIGURE_ARGS
Reported by:	sat
Approved by:	garga (mentor, implicit)
2007-07-26 13:03:44 +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
Cheng-Lung Sung
e6be3cc59c - Update to 2.7
PR:		ports/109783
Submitted by:	edwin
Approved by:	maintainer (Dan Langille)
2007-03-03 17:31: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
Mark Linimon
f5fa4d6050 Reset inactive maintainer who has not responded to email.
Hat:		portmgr
2006-09-05 08:08:44 +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
Edwin Groothuis
c8276f2dd3 SHA256ify
Approved by: krion@
2006-01-23 23:49:42 +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
Michael Haro
aa4b8e5b06 unbreak: port depends on perl while being built 2004-12-14 17:12:02 +00:00
Michael Haro
dcadc895ec add options
unbreak

Approved by:	maintainer timeout
2004-12-13 19:58:55 +00:00
Kris Kennaway
40e159bd90 BROKEN on 5.x: Does not install
Approved by:    portmgr (self)
2004-09-19 01:32:46 +00:00
Michael Haro
b9786cccae add nrpe2 (after repocopy from net-mgmt/nrpe)
nrpe is Nagios Remote Plugin Executor

PR:		59485
2004-08-28 17:56:17 +00:00
Pav Lucistnik
24ab216560 - Unbreak on 5.x: perl is needed to build 2004-05-30 09:11:35 +00:00
Kris Kennaway
e235dc325c BROKEN: Install fails 2004-05-30 07:14:52 +00:00
Trevor Johnson
8232e82f85 SIZEify (maintainer timeout) 2004-03-31 03:12:58 +00:00
Garrett Wollman
60aab66567 Say hello to the new "net-mgmt" category. There are probably more
ports that belong here than the ones I have identified and moved in
this, first, pass.

Approved in principle by: marcus
2004-02-23 04:42:13 +00:00
Clement Laforet
749f2cafe0 - Fixed incorrect path in nrpe.sh init script.
(Reported by: Angel Eduardo Porras Meza <aporrasmeza@hotmail.com>)

PR:                 61335
Submitted by:       Paul Dlug <paul@nerdlabs.com>
Approved by:        erwin (mentor) (implicitly)
2004-01-14 02:05:37 +00:00
Sergei Kolobov
c1938ef37e - Remove USE_REINPLACE in favor of passing argument to configure script
PR:		59431
Submitted by:	maintainer
2003-11-20 21:58:52 +00:00
Yen-Ming Lee
eec81b8491 Update of net/nrpe from version 1.8 to 1.9 which contains minor bug fixes
PR:		55292
Submitted by:	Paul Dlug <paul@nerdlabs.com>
2003-08-06 14:31:28 +00:00
Yen-Ming Lee
4f930e01f4 - Updated the net/nrpe port to version 1.8 which contains minor bug fixes.
- 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>
2003-03-05 01:32:37 +00:00
Akinori MUSHA
4c2e4f1862 De-pkg-comment. 2003-02-21 13:28:59 +00:00
Edwin Groothuis
92fdd64a1d Maintainer update to version 1.7
PR:		ports/46903
Submitted by:	Paul Dlug <paul@nerdlabs.com>
2003-01-09 22:13:58 +00:00
Edwin Groothuis
764ae5c3a5 New port: net/nrpe
Daemon to allow Nagios plugins to be executed remotely.

PR:		ports/41247
Submitted by:	Paul Dlug <paul@nerdlabs.com>
2003-01-03 02:49:08 +00:00