Commit graph

64 commits

Author SHA1 Message Date
Palle Girgensohn
a7efdfb5dd Help nagios cope with php-7
split has been replaced with explode

PR:	224509
2018-01-23 22:54:03 +00:00
Mathieu Arnold
2981dfe17c Don't say there is a documentation installed.
PR:		207267
Sponsored by:	Absolight
2016-02-19 23:30:16 +00:00
Mathieu Arnold
84528a233d Pet check-plist.
PR:		195572
Submitted by:	ohauer
Sponsored by:	Absolight
2014-12-03 16:10:52 +00:00
Mathieu Arnold
85ebaf0245 Don't use autotools any more.
Sponsored by:	Absolight
2014-09-22 20:09:29 +00:00
Mathieu Arnold
1b6a0aa634 Fix a segfault when using livestatus, downtime and logrotate.
Issue:		http://tracker.nagios.org/view.php?id=455
Sponsored by:	Absolight
2014-04-18 08:54:01 +00:00
Mathieu Arnold
121dea5a9c * Add a patch from upstream fixing a cgi vulnerability[1]
* Cleanup COMMENT
* Rename patches to follow make makepatch naming
* Incorporate a sed into already patched files.

Poked by:	ohauer [1]
Security:	CVE-2013-7108 CVE-2013-7205
2014-01-14 14:23:36 +00:00
Mathieu Arnold
8ba3edb0ee - Actually make nagios work with staging
- Make the index.php patch respect the possible corewindow parameter
2013-12-27 14:23:06 +00:00
Dmitry Sivachenko
78873ed8a4 Fix tac.cgi location for people with redefined $cgi_base_url in config.inc.php.
Submitted by:	mat
2013-12-27 12:00:02 +00:00
Dmitry Sivachenko
b18fcf42b6 Replace meaningless startpage with tactical overview.
Submitted by:	ohauer
2013-12-27 07:57:03 +00:00
Dmitry Sivachenko
01067bb348 Update to 3.5.1. 2013-09-16 13:43:53 +00:00
Ruslan Makhmatkhanov
e5f328ef87 - update to 3.5.0
changelog:
http://www.nagios.org/projects/nagioscore/history/core-3x

PR:		177304
Submitted by:	Jarrod Sayers <jarrod@downtools.com.au> (maintainer)
2013-03-23 16:03:53 +00:00
Ruslan Makhmatkhanov
8f206379d8 - update to 3.4.4
- remove patch, applied upstream

changelog:
http://www.nagios.org/projects/nagioscore/history/core-3x

PR:		176188
Submitted by:	Jarrod Sayers <jarrod@downtools.com.au> (maintainer)
2013-02-16 15:50:01 +00:00
Alex Kozlov
05a9235c98 - Fix all cases of 'No newline at end of file' in ports tree
Approved by: portmgr (bapt)
2013-02-01 15:04:00 +00:00
Ruslan Makhmatkhanov
faa190fb03 - add upstream patch for CVE-2012-6096
PR:		175196
Submitted by:	Jarrod Sayers <jarrod@mail.downtools.com.au> (maintainer)
Security:	97c22a94-5b8b-11e2-b131-000c299b62e1
2013-01-11 07:42:34 +00:00
Ruslan Makhmatkhanov
efb5fe9366 - update to 3.4.3 [1]
- convert to optionsng [2]
- fix portlint warnings [2]

PR:		174762
Submitted by:	Jarrod Sayers <jarrod@downtools.com.au> (maintainer) [1]
Submitted by:   tota [2]
2013-01-10 19:12:02 +00:00
Michael Scheidell
a184e8c330 - Update to Nagios 3.4.1.
PR:		ports/168197
Submitted by:	Jarrod Sayers <jarrod@downtools.com.au> (maintainer)
2012-05-21 14:23:25 +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
Ryan Steinmetz
09ac64bb47 - Add configtest command to rc script
PR:		ports/161111
Submitted by:	Emil Smolenski <am@raisa.eu.org>
Approved by:	Jarrod Sayers <jarrod@downtools.com.au> (maintainer)
2011-09-30 00:06:20 +00:00
Ryan Steinmetz
b32e5ed950 - Update to 3.3.1 [1]
- Use USERS/GROUPS [1]
- Fix whitespace in Makefile [1]
- Add LICENSE [1]
- Correct rc script issues [2]

PR:		ports/159304
Submitted by:	Ryan Steinmetz (zi@) [1], Doug Barton (dougb@) [2]
Approved by: 	wxs (mentor), maintainer
2011-08-23 01:50:48 +00:00
Martin Matuska
cfb6972898 - Update to 3.2.1 [1]
- Update maintainer e-mail address [2]

PR:		ports/145463
Submitted by:	myself [1], maintainer [2]
Approved by:	maintainer
2010-04-18 08:16:40 +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
Philip M. Gollucci
f2207a2a22 - The nagios documentation
(http://nagios.sourceforge.net/docs/3_0/faststartup.html) recommends,
for faster startup times, pre-caching the configuration file. This patch
adds a "nagios_precache" rcvar which controls using the pre-cache
startup method.

- also fix a trailing \

PR:             ports/139848
Submitted by:   kimo <kimor79@yahoo.com>
Approved by:    maintainer (Jarrod Sayers <jarrod@netleader.com.au>)
2010-01-08 01:19:53 +00:00
Martin Wilke
073a24e5ad - Remov empty patch
Reported by:	wen
2009-12-02 08:16:24 +00:00
Wen Heping
28f8b104b7 - Minor change of pkg-message.in
PR:		ports/141003
Submitted by:	olli hauer <ohauer@gmx.de>
Approved by:	maintainer
2009-12-02 06:00:02 +00:00
Martin Wilke
af4bf391e6 - Update to 3.2.0
Changelog:
	http://www.nagios.org/development/history/core-3x

PR:		139210
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Runtime test by:Frank Steinborn
2009-11-28 13:44:45 +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
Wesley Shields
04221e0994 - Address command injection vulnerability
PR:		ports/136187
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au>
Security:	3ebd4cb5-657f-11de-883a-00e0815b8da8
2009-07-14 12:54:20 +00:00
Wesley Shields
ce03a68eef - Fix runtime problem with embedded perl.
- Mark as MAKE_JOBS_UNSAFE.
- Stop using DISTVERSION and use PORTVERSION in net-mgmt/nagios.

PR:		ports/134175
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2009-05-04 15:36:05 +00:00
Martin Wilke
169732a70b - Update to 3.0.5
PR:		128596
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2008-11-08 20:08:24 +00:00
Martin Wilke
f86079326f - Update to 3.0.4
Note:
Included are updated suggestions from ports/128226. The correction to the ping
command has been extended into the online documentation and the -U option
removed as it's not supported. Also, the default for time_change_threshold is
set to that in include/nagios.h.

PR:		128306
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2008-10-24 14:22:49 +00:00
Philip M. Gollucci
23c844c03f - repocopy net-mgmt/nagios -> net-mgmt/nagios2
and connect net-mgmt/nagios2 to the build

- Move net-mgmt/nagios-devel -> net-mgmt/nagios
  (v3.0.3)

- Add note to UPDATING

o net-mgmt/nagios [3]
   SF Macro
   USE_RC_SUBR != yes (rename files/nagios.sh.in -> files/nagios.in)
   OPTIONS+= EVENT_BROKER [1]
   use @dirrmtry in pkg-plist

o net-mgmt/nagios12 [2]
   SF Macro
   USE_RC_SUBR != yes (files/nagios.sh.tmpl -> files/nagios.in)
   Conversion to pkg-install, pkg-deinstall, pkg-message
   use @dirrmtry in pkg-plist

o net-mgmt/nagios2 [4]
   SF Macro
   USE_RC_SUBR != yes (rename files/nagios.sh.in -> files/nagios.in)

PRs:    ports/126758 [4]
    ports/126761 [3]
    ports/126754 [2]
    ports/126684 [1]

Submitted by:   Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Reworked by:    pgollucci - freebsd ports infrastructure changes
Reviewed by:    pgollucci
Approved by:    gabor (mentor)
2008-09-03 00:30:56 +00:00
Rong-En Fan
7371ee9d20 - Update to 2.11 [1]
- Fix wrong mail program path in sample config file [2]

PR:		ports/121866 [1], ports/120320 [2]
Submitted by:	Jarrod Sayers <jarrod at netleader.com.au> (maintainer) [1]
2008-03-22 12:03:26 +00:00
Wesley Shields
4273708f0d Link with libthr when available. This should fix the CPU consumption
problem.

PR:		ports/120150 ports/119766
Submitted by:	jarrod@netleader.com.au bernd.kuhlen@wetteronline.de
Approved by:	maintainer (implicit) garga (mentor)
2008-02-04 19:57:24 +00:00
Martin Wilke
0f9f2d223f - Update to 2.10
PR:		117742
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2007-12-12 13:57:53 +00:00
Rong-En Fan
4c6bb71802 - Use registered UID and GID. See UPDATING for migration.
PR:		ports/111345
Submitted by:	Jarrod Sayers <jarrod at netleader.com.au> (maintainer)
2007-04-07 14:25:48 +00:00
Pav Lucistnik
1e277ab80c - Update to 2.7
- Change examples to read freebsd-server instead of linux-server

PR:		ports/108417
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2007-01-28 00:31:19 +00:00
Martin Wilke
10e70c4c1b - Update to 2.6
PR:		ports/106502
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2006-12-09 09:12:24 +00:00
Erwin Lansing
0f74198d8c Update to 2.4
PR:		98413
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2006-06-04 16:39:50 +00:00
Sam Lawrance
100457e3fe Update to 2.3.1.
PR:		ports/97328
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2006-05-27 02:27:13 +00:00
Marcus Alves Grando
61e69a3c02 - Update to 2.3
- portlint(1)

PR:		96843
Submitted by:	maintainer
2006-05-06 23:37:02 +00:00
Pav Lucistnik
82b112b8d6 - Update to 2.2
PR:		ports/95739
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2006-04-15 16:13:47 +00:00
Tim Bishop
e9fc35504f Update to nagios-2.0.r2 includes:
- Added SHA256 checksum to distinfo
- Added reload argument to nagios.sh script
- PERL_SYS_INIT3 fix now committed to Nagios CVS, patch redundant
- Removed duplicated etc/rc.d/nagios.sh from pkg-plist

PR:		91892
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
2006-01-17 10:39:58 +00:00
Sergey Matveychuk
f0d5f8718a Recent changes to the default installation path of the net-mgmt/nagios port
may result in logos being incorrectly searched for by lingering definition
of physical_html_path in cgi.cfg.  A note about this and where to check for
correct value mentioned in pkg-message.

Kudos to Kristof Meers <kristof.meers@psy.kuleuven.be> for alerting me to the
problem.

PR:		ports/91592
Submitted by:	maintainer
2006-01-10 18:56:39 +00:00
Edwin Groothuis
fa8a699877 [maintainer-update] net-mgmt/nagios: Update to 2.0.r1
Update to 2.0.r1 also includes:
- Rewrite of port Makefile, options closer aligned in order to bsd.port.mk
- Added dependency of libiconv (library required by CGI's, currently installed
  via nagios-plugins port)
- Added support for embedded Perl interpreter (requires Perl 5.8+), caching
  automatically assumed if enabled, off by default
- Added support for use of nanosleep() in event timings, off by default
- Added ability to override default view at http://webserver/nagios/ URL,
  suggested values listed in Makefile (validity after future Nagios releases
  not guaranteed)
- Default install location for web component moved to www/nagios, overridable
  using existing NAGIOSWWWDIR tunable
- Corrected minor build issues by tweaking use of CFLAGS
- Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES
- Added configuration file tunable (nagios_configfile) for /etc/rc.conf
- Configuration tests now show error on failure instead of command to run
- Host status (status.sav) now saved across application starts and restarts
- Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch
  supplied and tested by Karl Friesen <krf@splip.com>, thanks!
- Added Apache configuration suggestion in pkg-message for new installs

Files changed:
- ports/net-mgmt/nagios/Makefile
- ports/net-mgmt/nagios/distinfo
- ports/net-mgmt/nagios/files/patch-Makefile.in
- ports/net-mgmt/nagios/pkg-plist

Files created:
- ports/net-mgmt/nagios/files/nagios.sh.in
- ports/net-mgmt/nagios/files/patch-base-utils.c
- ports/net-mgmt/nagios/files/patch-contrib-Makefile.in
- ports/net-mgmt/nagios/files/pkg-deinstall.in
- ports/net-mgmt/nagios/files/pkg-install.in
- ports/net-mgmt/nagios/files/pkg-message.in

Files to be removed:
- ports/net-mgmt/nagios/files/DEINSTALL.tmpl
- ports/net-mgmt/nagios/files/INSTALL.tmpl
- ports/net-mgmt/nagios/files/MESSAGE.tmpl
- ports/net-mgmt/nagios/files/nagios.sh.tmpl

PR:		ports/91499
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 00:54:01 +00:00
Sergey Matveychuk
8bd94a2d10 - Remove hard coded references to the www group and spool directory
- Support changes made to user, group or spool directory to be recorded in the
  packing list correctly
- Added support for overriding install path of web component with an aim to
  migrate the default from share/nagios to www/nagios
- Added temporary knob to allow users to migrate to the new default without
  actually setting the path

PR:		ports/88312
Submitted by:	Jarrod Sayers (maintainer)
2005-11-01 13:37:09 +00:00
Sergey Matveychuk
7323214244 - Update to 2.0.b4
PR:		ports/84504
Submitted by:	maintainer
2005-08-31 12:29:48 +00:00
Pav Lucistnik
1f8dc94f2e - Check validity of configurations files in the startup script.
PR:		ports/81220
Submitted by:	Artem Naluzhny <tut@nhamon.com.ua> via maintainer
2005-05-19 15:56:37 +00:00
Pav Lucistnik
d051adb622 - Update to 2.0b2
WARNING: This version removes MySQL and PostgreSQL support.

PR:		ports/77478
Submitted by:	Blaz Zupan <blaz@si.FreeBSD.org> (maintainer)
2005-02-14 21:52:42 +00:00
Mark Linimon
294bf5a13f Update to 1.2: mostly bugfixes, but also configuration for other OSes.
See Changelog for details.

Details about the changes to the port (as differntiated from the source):

- we depend on perl5 on build
- remove nagmin support as the nagmin port was never commited
- add rc.subr support
- document supported tunables
- add post-install documentation that documents the remaining
  steps the user needs to take to finish the installation
- add deinstallation script the reminds the user to remove
  the username, group and directory

PR:		ports/62537
Submitted by:	Blaz Zupan <blaz@si.FreeBSD.org> (maintainer)
2004-02-11 04:56:00 +00:00
Jun Kuriyama
f8439983e2 Grrr, patch-aj is CRLF. Convert to LF.
Pointy hat to:	kuriyama
2003-08-04 10:00:31 +00:00