diff options
author | bouyer <bouyer@pkgsrc.org> | 2003-03-24 15:24:39 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2003-03-24 15:24:39 +0000 |
commit | 3a19738d58bae7dc6379aa88d4c0d8185ce213bd (patch) | |
tree | 8d8daa30048406d5604edb3effc620b49e641588 /net/smokeping | |
parent | d64eaae580f495772c84ae809278320f8640483e (diff) | |
download | pkgsrc-3a19738d58bae7dc6379aa88d4c0d8185ce213bd.tar.gz |
Import of smokeping 1.19:
SmokePing can measure latency, latency distribution and packet loss
in your network. SmokePing uses RRDtool to maintain a longterm datastore
and to draw pretty graphs, giving up to the minute information
on the state of each network connection. SmokePing can also raise
alarms based on latency and loss patterns.
Diffstat (limited to 'net/smokeping')
-rw-r--r-- | net/smokeping/DESCR | 5 | ||||
-rw-r--r-- | net/smokeping/MESSAGE | 16 | ||||
-rw-r--r-- | net/smokeping/Makefile | 74 | ||||
-rw-r--r-- | net/smokeping/PLIST | 58 | ||||
-rw-r--r-- | net/smokeping/distinfo | 7 | ||||
-rwxr-xr-x | net/smokeping/files/smokeping.sh | 41 | ||||
-rw-r--r-- | net/smokeping/patches/patch-aa | 20 | ||||
-rw-r--r-- | net/smokeping/patches/patch-ab | 20 | ||||
-rw-r--r-- | net/smokeping/patches/patch-ac | 53 |
9 files changed, 294 insertions, 0 deletions
diff --git a/net/smokeping/DESCR b/net/smokeping/DESCR new file mode 100644 index 00000000000..c95c19fe8e2 --- /dev/null +++ b/net/smokeping/DESCR @@ -0,0 +1,5 @@ +SmokePing can measure latency, latency distribution and packet loss +in your network. SmokePing uses RRDtool to maintain a longterm datastore +and to draw pretty graphs, giving up to the minute information +on the state of each network connection. SmokePing can also raise +alarms based on latency and loss patterns. diff --git a/net/smokeping/MESSAGE b/net/smokeping/MESSAGE new file mode 100644 index 00000000000..22d651f299c --- /dev/null +++ b/net/smokeping/MESSAGE @@ -0,0 +1,16 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ + +Smokeping is now installed. +The documentation can be found at ${PREFIX}/share/doc/smokeping/ + +A sample config file can be found in +${PREFIX}/share/examples/smokeping/config.dist +Please copy it as ${PKG_SYSCONFDIR}/config and adjust it as needed. +You may also want to have a look at basepage.html and smokemail in +this directory. +Also, make sure that your web's server /cgi-bin/smokeping.cgi refers to +${PREFIX}/libexec/cgi-bin/smokeping.cgi, or copy the smokeping in your +web server's cgi space. + +=========================================================================== diff --git a/net/smokeping/Makefile b/net/smokeping/Makefile new file mode 100644 index 00000000000..d7c8a0c295e --- /dev/null +++ b/net/smokeping/Makefile @@ -0,0 +1,74 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ + +DISTNAME= smokeping-1.19 +CATEGORIES= net +MASTER_SITES= http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/ + +MAINTAINER= bouyer@netbsd.org +HOMEPAGE= http://people.ee.ethz.ch/~oetiker/webtools/smokeping/index.en.html +COMMENT= latency/packet loss monitoring/graphing tool + +DEPENDS= rrdtool-1*:../../databases/rrdtool +DEPENDS+= fping>=2.4b2:../../net/fping +DEPENDS+= p5-Digest-MD5>=2.20:../../security/p5-Digest-MD5 +DEPENDS+= p5-libwww>=5.64:../../www/p5-libwww + +USE_PERL5= YES +PERL5_REQD= 5.6.0 +USE_PKGINSTALL= yes + +PKG_SYSCONFSUBDIR?= smokeping +MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} + +EGDIR=${PREFIX}/share/examples/smokeping +CONF_FILES= ${EGDIR}/basepage.html.dist ${PKG_SYSCONFDIR}/basepage.html +CONF_FILES+= ${EGDIR}/smokemail.dist ${PKG_SYSCONFDIR}/smokemail +RCD_SCRIPTS= smokeping + +.include "../../mk/bsd.prefs.mk" +.if defined(USE_INET6) && ${USE_INET6} == "YES" +DEPENDS+= p5-Socket6-*:../../net/p5-Socket6 +.endif + +do-build: + ${SED} -e s#@PREFIX@#${PREFIX}#g \ + -e s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g \ + <${WRKSRC}/bin/smokeping.dist >${WRKDIR}/smokeping.pl + ${SED} -e s#@PREFIX@#${PREFIX}#g \ + -e s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g \ + <${WRKSRC}/htdocs/smokeping.cgi.dist >${WRKDIR}/smokeping.cgi + ${SED} -e s#@PREFIX@#${PREFIX}#g \ + -e s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g \ + <${WRKSRC}/etc/config.dist >${WRKDIR}/config.dist + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/smokeping + ${INSTALL_DATA_DIR} ${PREFIX}/lib/smokeping/ISG + ${INSTALL_DATA_DIR} ${PREFIX}/lib/smokeping/probes + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smokeping + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smokeping + for FILE in CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO; do \ + ${INSTALL_DATA} ${WRKSRC}/$$FILE ${PREFIX}/share/doc/smokeping; \ + done + for FILE in ${WRKSRC}/doc/*.txt; do \ + ${INSTALL_DATA} $$FILE ${PREFIX}/share/doc/smokeping; \ + done + ${INSTALL_SCRIPT} ${WRKDIR}/smokeping.pl ${PREFIX}/bin/smokeping + ${INSTALL_SCRIPT} ${WRKDIR}/smokeping.cgi ${PREFIX}/libexec/cgi-bin/ + for FILE in ${WRKSRC}/lib/*.pm; do \ + ${INSTALL_DATA} $$FILE ${PREFIX}/lib/smokeping; \ + done + for FILE in ${WRKSRC}/lib/ISG/*.pm; do \ + ${INSTALL_DATA} $$FILE ${PREFIX}/lib/smokeping/ISG; \ + done + for FILE in ${WRKSRC}/lib/probes/*.pm; do \ + ${INSTALL_DATA} $$FILE ${PREFIX}/lib/smokeping/probes; \ + done + for FILE in ${WRKDIR}/config.dist \ + ${WRKSRC}/etc/basepage.html.dist \ + ${WRKSRC}/etc/config-echoping.dist \ + ${WRKSRC}/etc/smokemail.dist; do \ + ${INSTALL_DATA} $$FILE ${PREFIX}/share/examples/smokeping; \ + done + +.include "../../mk/bsd.pkg.mk" diff --git a/net/smokeping/PLIST b/net/smokeping/PLIST new file mode 100644 index 00000000000..5e671af0175 --- /dev/null +++ b/net/smokeping/PLIST @@ -0,0 +1,58 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ +etc/rc.d/smokeping +bin/smokeping +libexec/cgi-bin/smokeping.cgi +lib/smokeping/BER.pm +lib/smokeping/SNMP_Session.pm +lib/smokeping/SNMP_util.pm +lib/smokeping/Smokeping.pm +lib/smokeping/ISG/ParseConfig.pm +lib/smokeping/probes/DNS.pm +lib/smokeping/probes/EchoPing.pm +lib/smokeping/probes/EchoPingChargen.pm +lib/smokeping/probes/EchoPingDiscard.pm +lib/smokeping/probes/EchoPingHttp.pm +lib/smokeping/probes/EchoPingHttps.pm +lib/smokeping/probes/EchoPingIcp.pm +lib/smokeping/probes/EchoPingSmtp.pm +lib/smokeping/probes/FPing.pm +lib/smokeping/probes/FPing6.pm +lib/smokeping/probes/IOSPing.pm +lib/smokeping/probes/base.pm +lib/smokeping/probes/basefork.pm +lib/smokeping/probes/basevars.pm +share/doc/smokeping/CHANGES +share/doc/smokeping/CONTRIBUTORS +share/doc/smokeping/COPYING +share/doc/smokeping/COPYRIGHT +share/doc/smokeping/README +share/doc/smokeping/TODO +share/doc/smokeping/DNS.pm.txt +share/doc/smokeping/EchoPing.pm.txt +share/doc/smokeping/EchoPingChargen.pm.txt +share/doc/smokeping/EchoPingDiscard.pm.txt +share/doc/smokeping/EchoPingHttp.pm.txt +share/doc/smokeping/EchoPingHttps.pm.txt +share/doc/smokeping/EchoPingIcp.pm.txt +share/doc/smokeping/EchoPingSmtp.pm.txt +share/doc/smokeping/FPing.pm.txt +share/doc/smokeping/FPing6.pm.txt +share/doc/smokeping/IOSPing.pm.txt +share/doc/smokeping/ParseConfig.pm.txt +share/doc/smokeping/Smokeping.pm.txt +share/doc/smokeping/base.pm.txt +share/doc/smokeping/basefork.pm.txt +share/doc/smokeping/basevars.pm.txt +share/doc/smokeping/smokeping.cgi.txt +share/doc/smokeping/smokeping.txt +share/doc/smokeping/smokeping_config.txt +share/doc/smokeping/smokeping_install.txt +share/examples/smokeping/basepage.html.dist +share/examples/smokeping/config-echoping.dist +share/examples/smokeping/config.dist +share/examples/smokeping/smokemail.dist +@dirrm share/doc/smokeping +@dirrm share/examples/smokeping +@dirrm lib/smokeping/ISG +@dirrm lib/smokeping/probes +@dirrm lib/smokeping diff --git a/net/smokeping/distinfo b/net/smokeping/distinfo new file mode 100644 index 00000000000..f5736dcd286 --- /dev/null +++ b/net/smokeping/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ + +SHA1 (smokeping-1.19.tar.gz) = 6397d059313b5d72cf32b016eab7cf27c0e48e1b +Size (smokeping-1.19.tar.gz) = 137348 bytes +SHA1 (patch-aa) = 2d79e1ffde3f8d65cecfae0aea3b91ece151cb05 +SHA1 (patch-ab) = a8c3877881fa06f203be52d80aecb30609b2d27a +SHA1 (patch-ac) = b2ced83abad8ec60d3c9f7a0664caddf77dd17e8 diff --git a/net/smokeping/files/smokeping.sh b/net/smokeping/files/smokeping.sh new file mode 100755 index 00000000000..3edd0cebc80 --- /dev/null +++ b/net/smokeping/files/smokeping.sh @@ -0,0 +1,41 @@ +#! /bin/sh +# +# $NetBSD: smokeping.sh,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ +# +# PROVIDE: smokeping +# REQUIRE: DAEMON + +name="smokeping" +command="@PREFIX@/bin/smokeping" +pidfile="/var/run/${name}.pid" + +cmd=${1:-start} + +case ${cmd} in +start) + if [ -x ${command} ]; then + echo "Starting ${name}." + ${command} > /dev/null 2>&1 + fi + ;; +stop) + if [ -f ${pidfile} ]; then + pid=`head -1 ${pidfile}` + echo "Stopping ${name}." + kill ${pid} + fi + ;; +restart) + $0 stop + $0 start + ;; +status) + if [ -f ${pidfile} ]; then + pid=`head -1 ${pidfile}` + echo "${name} is running as pid ${pid}." + else + echo "${name} is not running." + fi + ;; +esac +exit 0 diff --git a/net/smokeping/patches/patch-aa b/net/smokeping/patches/patch-aa new file mode 100644 index 00000000000..ba84c2b878a --- /dev/null +++ b/net/smokeping/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ + +--- bin/smokeping.dist.orig Wed Mar 19 22:35:02 2003 ++++ bin/smokeping.dist Wed Mar 19 22:37:00 2003 +@@ -1,12 +1,11 @@ +-#!/usr/sepp/bin/perl -w ++#!@PREFIX@/bin/perl -w + # -*-perl-*- + +-use lib qw(/usr/pack/rrdtool-1.0.40-ds/lib/perl); +-use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib); ++use lib qw(@PREFIX@/lib/smokeping); + + use Smokeping 1.19; + +-Smokeping::main("/home/oetiker/.smokeping/config"); ++Smokeping::main("@PKG_SYSCONFDIR@/config"); + + =head1 NAME + diff --git a/net/smokeping/patches/patch-ab b/net/smokeping/patches/patch-ab new file mode 100644 index 00000000000..99ba75b4a80 --- /dev/null +++ b/net/smokeping/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ + +--- htdocs/smokeping.cgi.dist.orig Wed Mar 19 22:48:58 2003 ++++ htdocs/smokeping.cgi.dist Wed Mar 19 22:50:01 2003 +@@ -1,12 +1,11 @@ +-#!/usr/sepp/bin/speedy -w ++#!@PREFIX@/bin/perl -w + # -*-perl-*- + +-use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl); +-use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib); ++use lib qw(@PREFIX@/lib/smokeping); + + use Smokeping 1.19; + +-Smokeping::cgi("/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config"); ++Smokeping::cgi("@PKG_SYSCONFDIR@/config"); + + + BEGIN { diff --git a/net/smokeping/patches/patch-ac b/net/smokeping/patches/patch-ac new file mode 100644 index 00000000000..a00bacc82d7 --- /dev/null +++ b/net/smokeping/patches/patch-ac @@ -0,0 +1,53 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/03/24 15:24:39 bouyer Exp $ + +--- etc/config.dist.orig Wed Mar 19 22:52:32 2003 ++++ etc/config.dist Wed Mar 19 22:58:47 2003 +@@ -4,16 +4,16 @@ + + *** General *** + +-owner = Joe Random +-contact = joe@some.place.xyz +-mailhost = smtp.mailhost.abc +-sendmail = /usr/lib/sendmail +-imgcache = /home/oetiker/public_html/.simg ++owner = Charlie root ++contact = root@localhost ++mailhost = smtp.mynet ++sendmail = /usr/sbin/sendmail ++imgcache = @PREFIX@/share/httpd/htdocs/.simg + imgurl = ../.simg +-datadir = /home/oetiker/data/projects/AADJ-smokeping/dist/var +-piddir = /home/oetiker/data/projects/AADJ-smokeping/dist/var +-cgiurl = http://people.ee.ethz.ch/~oetiker/smokeping/smokeping.cgi +-smokemail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/smokemail ++datadir = /var/db/smokeping ++piddir = /var/run ++cgiurl = http://localhost/cgi-bin/smokeping.cgi ++smokemail = @PREFIX@/etc/smokeping/smokemail + # specify this to get syslog logging + # syslogfacility = local0 + +@@ -35,7 +35,7 @@ + + *** Presentation *** + +-template = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/basepage.html ++template = @PREFIX@/etc/smokeping/basepage.html + + + overview + +@@ -58,7 +58,7 @@ + + + FPing + +-binary = /usr/sepp/bin/fping ++binary = @PREFIX@/sbin/fping + + *** Targets *** + +@@ -142,4 +142,3 @@ + menu = Sun Microsystems + title = Sun Microsystems Webserver + host = www.sun-web.com +- |