Commit graph

50 commits

Author SHA1 Message Date
Rodrigo Osorio
e019951574 net-mgmt/smokeping: Fix typo in patch 2021-11-19 19:22:32 +01:00
Rodrigo Osorio
d97161a978 net-mgmt/smokeping: Fix patches filepath
PR:             259891
Reported by:    shaun <freebsd@shaunc.com>
2021-11-19 15:51:11 +01:00
Rodrigo Osorio
87b65fba18 net-mgmt/smokeping: update to 2.8.2
Major changes:
    * support for influxdb
    * AnotherDNS update
    * new matcher ConsecutiveLoss
    * lots of spelling fixes
    * update FPing commandline
    * better handling of return codes from probe binaries
    * drop SSHv1 and rsa1 from SSH.pm
    * fix config reload for slaves
    * fix edgetrigger functionality
    * fping protocol parameter optional
    * exploss matcher fixes
    * interface parameter for fping probe
    * pass 6th argument to edgetrigger external alerts
    * red background for 100% loss
    * make loss colors more distinctive
    * calculate loss buckets based on number of 'pings'

    Full changelog: calculate loss buckets based on number of 'pings'
2021-11-14 23:45:26 +01:00
Mathieu Arnold
135fdeebb9
all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Rodrigo Osorio
d747416531 net-mgmt/smokeping: fix mail loop issue
Integrate upstream patch[1] to fix mail loop issue #183[2].

This is a one-line patch without complexity who can be removed
as soon as the upstream releases a new version.

[1] e9004e8bbe
[2] https://github.com/oetiker/SmokePing/issues/183

PR:		253161
Submitted by:	OlivierW <olivierw1+bugzilla-freebsd@hotmail.com>
2021-02-02 08:14:06 +00:00
Mathieu Arnold
2614c95748 Convert to UCL & cleanup pkg-message (categories n)
(and missed 3 missed files from previous categories.)
2019-08-14 08:48:50 +00:00
Rodrigo Osorio
94a1741e72 Upgrade net-mgmt/smokeping to 2.7.3
- Use GITHUB to get distfiles
- Redo the patches
- Rework options

Changelog: https://oss.oetiker.ch/smokeping/pub/CHANGES
2019-02-13 07:29:04 +00:00
Rodrigo Osorio
be0fae785a Add a wait_for_pids at the end of the rc script stop function, waiting for the
daemon to stops. With smokeping busy pinging a few hundred hosts it often occurs
that the daemon stops after the rc call completion failing a restart.
Bump PORTREVISION.

PR:		221009
Submitted by:	vegeta@tuxpowered.net
2017-07-31 22:15:03 +00:00
Rodrigo Osorio
d875ded97f Fix previous mistake in the init script, committed with minor changes
PR:		200851
2015-07-05 08:13:10 +00:00
Rodrigo Osorio
3d058e0633 Fix init script to check pid correctly
PR:		200851
Submitted by:	Kan Sasaki <sasaki@fcc.ad.jp>
2015-06-29 19:39:24 +00:00
Rodrigo Osorio
b2449f5206 Fix smokeping rc.d script who fails to check pid correctly
PR:		198736
Submitted by:	vince@unsane.co.uk
2015-06-14 09:16:57 +00:00
Rodrigo Osorio
d2fa29f954 Upgrade smokeping to 2.6.11
PR:		197579
Submitted by:	pi
2015-02-22 19:37:33 +00:00
John Marino
bcbae34226 change command_interpreter from /usr/bin/perl to ${PREFIX}/bin/perl
Several ports had rc.d scripts with hardcoded command_interpreter string
as /usr/bin/perl.  This symlink is not guaranteed to be in place, and it
isn't even an option for perl 5.20.  For affected ports, the interpreter
was changed to localbase.

In one case, the interpreter was correct, but it wasn't surround by
quotes.  Since the rc.d script would break if a space was contained in
${PREFIX}, quotes were added in that case.
2015-01-05 13:18:58 +00:00
Antoine Brodin
757b82d342 Remove duplicate patch 2014-10-02 21:04:19 +00:00
Rodrigo Osorio
e76dd76201 fix perl5.18 build
PR:		ports/182840
Submitted by:	alexey <alexey@kouznetsov.com>
Approved by:	bapt (mentor)
2014-10-01 09:31:33 +00:00
Andrej Zverev
2e6d8e8c1a fix build with perl 5.18
PR:		193064
2014-09-20 06:40:04 +00:00
Rodrigo Osorio
251ac3c995 Fix a minima the plugin breakage introduced by Net::DNS 0.75 and above.
This bug is complex and must be fixed upstream (smokeping)[1].
[1] https://rt.cpan.org/Public/Bug/Display.html?id=96479

PR:		ports/192037
Submitted by:	feld
Reviewed by:	rodrigo (maintainer)
Approved by:	kwm (mentor)
MFH:		2014Q3
2014-07-23 13:41:07 +00:00
Rodrigo Osorio
37cc8339fb don't move files in stage dir anymore
Submitted by:	rodrigo (maintainer)
Approved by:	bapt (mentor)
2014-07-19 15:40:49 +00:00
Mark Felder
03f44da6f4 - Update to new LIB_DEPENDS format
- Support STAGE
- Clean up rc script
- Move example configs to new .sample naming convention

Sponsored by:	SupraNet Communications, Inc
2014-07-14 14:17:01 +00:00
Guido Falsi
384eac357a - Update to 2.6.9
- Remove version numbers from LIB_DEPENDS

PR:		ports/178569
Submitted by:	Rodrigo OSORIO <rodrigo@bebik.net> (maintainer)
Approved by:	maintainer via private email
2013-05-24 21:19:44 +00:00
Steve Wills
f71c51f66e - Fix rc script
- Remove @stopdaemon
- Bump PORTREVISION

PR:		ports/169251
Submitted by:	Mark Felder <feld@feld.me>
Approved by:	Rodrigo OSORIO <rodrigo@bebik.net> (maintainer)
2012-06-29 16:22:41 +00:00
Guido Falsi
d2ef11eee6 - Fix build and install
- Assign maintainership to submitter

Also merged fixes by dikshie <dikshie@sfc.wide.ad.jp> (ports/162460).

PR:		ports/167868
Submitted by:	Rodrigo OSORIO <rodrigo@bebik.net>
Approved by:	crees (mentor)
2012-05-14 15:03:12 +00:00
Lars Thegler
11b7517876 - update to 2.6.7
- pass maintainership
2012-05-13 12:54:52 +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
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
Lars Thegler
8c7fd1caf5 Fixed substitution in init script
Submitted by:	Martin Nielsen <charliewutwut@gmail.com>
Feature safe:	yes
2010-02-16 14:33:17 +00:00
Lars Thegler
58af4c38fb by switching to using $USERS & $GROUPS pkg-install is no longer required
pkg-deinstall only needs to handle the removal of the .pid file
use @stopdaemon to stop smoking instead of invoking smokeping stop manually by pkg-deinstall
use bsd.port.options.mk
use SUB_FILES to update pkg-message

PR:		ports/143182
Submitted by:	Sevan Janiyan <venture37@geeklan.co.uk>
2010-02-15 12:53:24 +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
Lars Thegler
081a1fbfb6 Update to 2.4.2
From CHANGES:

* added strict to both wrappers and fixed some followup errors -- tobi

* kill taint error in Smokeping.pm -- tobi

* better master/slave secrets documentation -- tobi

* do not load :sys_wait_h from POSIX perl module since this seems to
  be missing in some linux distros and we can do alright without.
2008-10-29 14:31:32 +00:00
Lars Thegler
27caa13672 - Update to 2.4.1 [1]
- Use proper PORTEXAMPLES
- Start script updated to avoid deadlock with sshd

PR:		ports/126966 [mostly 1]
Submitted by:	chinsan
2008-08-31 19:58:39 +00:00
Lars Thegler
32e10ca3f4 Update to 2.3.6 2008-05-01 13:39:29 +00:00
Lars Thegler
8f0981f3c5 - Update to 2.2.7
- Fix detection of running process, fixes [1]

PR:		ports/114593 [1]
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org> [1]
2007-12-21 13:55:08 +00:00
Lars Thegler
6399a7e461 Update to 2.1.0 2007-05-26 16:39:40 +00:00
Lars Thegler
6a1d83201b - Update to rcNG [1]
- Include reload command [2]
- Update MASTER_SITES

PR:		ports/103626
Submitted by:	brd [1], Sean McAfee <smcafee@collaborativefusion.com> [2]
2006-12-12 12:47:43 +00:00
Lars Thegler
c96404e983 - Update to 2.0.9
- Permanent uid/gid [1]
- Better handling of www uid [1]
- Update WWW: URL in pkg-descr [1]

PR:		ports/96310 [1]
Submitted by:	Gea-Suan Lin <gslin@gslin.org>
2006-07-26 12:55:58 +00:00
Lars Thegler
458368c5ee Update to 2.0.8
PR:		ports/95156 [1], ports/95731 [2]
Submitted by:	Konstantin Saurbier <saurbier@math.uni-bielefeld.de> [1], Babak Farrokhi <babak@farrokhi.net> [2]
2006-04-14 16:30:57 +00:00
Lars Thegler
eb45e6e3f4 - Update to 2.0.5
- Add SHA256 checksum
2005-12-10 17:01:03 +00:00
Lars Thegler
b917e9798d - Update to 2.0.3
- Added OPTIONS for more probes
2005-10-06 12:44:03 +00:00
Lars Thegler
a9353288a1 Update to 1.42, and unIGNORE
PR:		ports/81937
Submitted by:	Krzysztof Stryjek <wtp+smokeping142@bsdguru.org>
2005-06-14 21:13:25 +00:00
Lars Thegler
dd4b346b37 Update to 1.40
PR:		ports/80289
Submitted by:	Daniel Johansson <donnex@donnex.net>
2005-05-02 19:32:47 +00:00
Lars Thegler
4c4ce880cc - Update to 1.38
- Rearranged man pages and port docs accordingly

Noticed by:	Daniel Johansson <donnex@gmail.com>
2005-02-09 21:00:17 +00:00
Lars Thegler
31f504e321 Update to 1.31 2004-08-15 16:19:59 +00:00
Erwin Lansing
e536ec6661 Update to 1.30
PR:		66803
Submitted by:	maintainer
2004-05-18 13:23:20 +00:00
Pav Lucistnik
0b6ae0f059 - Update to 1.28
PR:		ports/64890
Submitted by:	Lars Thegler <lars@thegler.dk> (maintainer)
2004-03-29 13:31:11 +00:00
Pav Lucistnik
e85e181482 - Update to 1.27
PR:		ports/64071
Submitted by:	Lars Thegler <lars@thegler.dk> (maintainer)
2004-03-15 03:12:36 +00:00
Oliver Eikemeier
affeba3053 - Update to 1.26
- Use OPTIONS for optional dependencies
- Change pkg-{,de}install to avoid risk of data loss when upgrading
- Patch files instead of regexps in Makefile

added a work around for PR 63293

PR:		63230
Submitted by:	Lars Thegler <lars@thegler.dk> (maintainer)
Reviewed by:	clement
2004-02-24 12:41:38 +00:00
Edwin Groothuis
2d657fa420 The 'restart' option of 'smokeping.sh' doesn't work properly,
as reported by Kent Kuriyama <kuriyakk@cpf.navy.mil>.

PR:		ports/45996
Submitted by:	Lars Thegler <lars@thegler.dk>
2002-12-12 09:14:15 +00:00
Jun Kuriyama
847d4919e0 o Upgrade to 1.6.
o Fix a bug of "stop" feature in smokeping.sh.

Submitted by:	Lars Thegler <lars@thegler.dk> (maintainer)
PR:		ports/36006
2002-04-02 01:10:04 +00:00
Jun Kuriyama
e20d94225a Add smokeping UID and GID if not exist and use them to be invoked as.
Move configuration file to $PREFIX/etc/smokeping.
Use $PREFIX/var/smokeping for PID file and generated data.
2002-04-01 13:47:18 +00:00
Jun Kuriyama
e28e7b07f3 Add smokeping 1.5, latency logging and graphing system.
This port is heavily modified by kuriyama:
  o Use BSD'ish directory hierarchy (imcomplete)

TODO for this port (will be done by kuriyama)
  o Upgrade to 1.6 (see follow-up of this PR)
  o Use non-privileged UID for smokeping
  o Move *.pm to $PREFIX/lib/perl5/site_perl

PR:		ports/36006
Submitted by:	Lars Thegler <lars@thegler.dk>
2002-04-01 10:46:58 +00:00