FreeBSD Bugzilla – Attachment 20394 Details for
Bug 36006
New port: net/smokeping - Latency logging and graphing system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 10.18 KB, created by
Lars Thegler
on 2002-03-17 13:50:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Lars Thegler
Created:
2002-03-17 13:50:01 UTC
Size:
10.18 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># smokeping ># smokeping/distinfo ># smokeping/Makefile ># smokeping/pkg-deinstall ># smokeping/pkg-comment ># smokeping/files ># smokeping/files/smokeping.sh ># smokeping/pkg-descr ># smokeping/pkg-plist ># smokeping/pkg-message ># >echo c - smokeping >mkdir -p smokeping > /dev/null 2>&1 >echo x - smokeping/distinfo >sed 's/^X//' >smokeping/distinfo << 'END-of-smokeping/distinfo' >XMD5 (smokeping-1.5.tar.gz) = 06313500d18199d36a5e2d3fa61d40b0 >END-of-smokeping/distinfo >echo x - smokeping/Makefile >sed 's/^X//' >smokeping/Makefile << 'END-of-smokeping/Makefile' >X# New ports collection makefile for: SmokePing >X# Date created: Tue Feb 12 22:17:40 CET 2002 >X# Whom: Lars Thegler <lars@thegler.dk> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= smokeping >XPORTVERSION= 1.5 >XCATEGORIES= net www >XMASTER_SITES= http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/ >X >XMAINTAINER= lars@thegler.dk >X >XUSE_PERL5= yes >X >XBUILD_DEPENDS= rrdtool:${PORTSDIR}/net/rrdtool \ >X ${SITE_PERL}/CGI/SpeedyCGI.pm:${PORTSDIR}/www/p5-CGI-SpeedyCGI \ >X ${PREFIX}/sbin/fping:${PORTSDIR}/net/fping >X >XNO_BUILD= yes >X >XPKGMESSAGE= ${WRKDIR}/pkg-message >X >Xpre-patch: >X @${MV} ${WRKSRC}/bin/smokeping.dist ${WRKSRC}/bin/smokeping >X @${MV} ${WRKSRC}/htdocs/smokeping.cgi.dist ${WRKSRC}/htdocs/smokeping.cgi >X @${PERL} -pi -e ' \ >X s|/usr/sepp/bin/perl|${PERL}|; \ >X s|/usr/sepp/bin/speedy|${PREFIX}/bin/speedy|; \ >X s|use lib qw\(/usr/pack/rrdtool-1.0.33-to/lib/perl\);\n||; \ >X s|/home/oetiker/data/projects/AADJ-smokeping/dist|${PREFIX}/smokeping|; \ >X s|/home/oetiker/.smokeping/config|${PREFIX}/smokeping/etc/config|; \ >X s|/usr/lib/sendmail|/usr/sbin/sendmail|; \ >X s|/usr/sepp/bin/fping|${PREFIX}/sbin/fping|; \ >X s|piddir = /usr/local/smokeping/var|piddir = /var/run|; \ >X s|imgcache = /home/oetiker/public_html/.simg|imgcache = ${PREFIX}/smokeping/htdocs/img|; \ >X s|imgurl = ../.simg|imgurl = /smokeimg|; \ >X ' \ >X ${WRKSRC}/bin/smokeping ${WRKSRC}/htdocs/smokeping.cgi ${WRKSRC}/etc/config.dist >X @${PERL} -p -e ' \ >X s|%%PREFIX%%|${PREFIX}|g; \ >X ' \ >X ${PKGDIR}/pkg-message > ${PKGMESSAGE} >X >Xdo-install: >X @${CP} -Rp ${WRKSRC}/ ${PREFIX}/smokeping/ >X.for file in config smokemail basepage.html config-echoping >X @if [ ! -f ${PREFIX}/smokeping/etc/${file} ]; then \ >X ${CP} ${PREFIX}/smokeping/etc/${file}.dist ${PREFIX}/smokeping/etc/${file} ; \ >X fi >X.endfor >X @${MKDIR} ${PREFIX}/smokeping/var >X @${MKDIR} ${PREFIX}/smokeping/htdocs/img >X @${CHOWN} www:www ${PREFIX}/smokeping/htdocs/img >X @if [ ! -f ${PREFIX}/etc/rc.d/smokeping.sh ]; then \ >X ${ECHO} "Installing ${PREFIX}/etc/rc.d/smokeping.sh startup file."; \ >X ${INSTALL_SCRIPT} ${FILESDIR}/smokeping.sh ${PREFIX}/etc/rc.d/smokeping.sh; \ >X fi >X >Xpost-install: >X @${CAT} ${PKGMESSAGE} >X >X.include <bsd.port.mk> >END-of-smokeping/Makefile >echo x - smokeping/pkg-deinstall >sed 's/^X//' >smokeping/pkg-deinstall << 'END-of-smokeping/pkg-deinstall' >X#!/bin/sh >X# $FreeBSD$ >X# >X >Xif [ -f /var/run/smokeping.pid ]; then >X if [ -x ${PKG_PREFIX}/etc/rc.d/smokeping.sh ]; then >X ${PKG_PREFIX}/etc/rc.d/smokeping.sh stop > /dev/null >X fi >X rm /var/run/smokeping.pid >Xfi >X >Xif [ "$2" != "POST-DEINSTALL" ]; then >X exit 0 >Xfi >X >Xif [ -d ${PKG_PREFIX}/smokeping ]; then >X echo "----------------------------------------------------------------" >X echo "To delete your custom SmokePing configuration and all collected" >X echo "data permanently, use 'rm -R ${PKG_PREFIX}/smokeping'" >X echo "----------------------------------------------------------------" >Xfi >X >Xexit 0 >END-of-smokeping/pkg-deinstall >echo x - smokeping/pkg-comment >sed 's/^X//' >smokeping/pkg-comment << 'END-of-smokeping/pkg-comment' >XLatency logging and graphing system >END-of-smokeping/pkg-comment >echo c - smokeping/files >mkdir -p smokeping/files > /dev/null 2>&1 >echo x - smokeping/files/smokeping.sh >sed 's/^X//' >smokeping/files/smokeping.sh << 'END-of-smokeping/files/smokeping.sh' >X#!/bin/sh >X >Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >X echo "$0: Cannot determine the PREFIX" >&2 >X exit 1 >Xfi >X >Xcase "$1" in >Xstart) >X [ -r ${PREFIX}/smokeping/etc/config ] && ${PREFIX}/smokeping/bin/smokeping > /dev/null && echo -n ' smokeping' >X ;; >Xrestart) >X [ -r ${PREFIX}/smokeping/etc/config ] && ${PREFIX}/smokeping/bin/smokeping --restart > /dev/null && echo -n ' smokeping' >X ;; >Xstop) >X [ -r /var/run/smokeping.pid ] && kill `cat /var/run/smokeping.pid` > /dev/null && echo -n ' smokeping' >X ;; >X*) >X echo "Usage: `basename $0` {start|restart|stop}" >&2 >X ;; >Xesac >X >Xexit 0 >END-of-smokeping/files/smokeping.sh >echo x - smokeping/pkg-descr >sed 's/^X//' >smokeping/pkg-descr << 'END-of-smokeping/pkg-descr' >XSmokePing is a latency logging and graphing system. It consists of a >Xdaemon process which organizes the latency measurements and a CGI >Xwhich presents the graphs. >X >XWWW: http://ee-staff.ethz.ch/~oetiker/webtools/smokeping >X >X--lars >Xlars@thegler.dk >END-of-smokeping/pkg-descr >echo x - smokeping/pkg-plist >sed 's/^X//' >smokeping/pkg-plist << 'END-of-smokeping/pkg-plist' >Xsmokeping/CHANGES >Xsmokeping/CONTRIBUTORS >Xsmokeping/COPYING >Xsmokeping/COPYRIGHT >Xsmokeping/Makefile >Xsmokeping/README >Xsmokeping/TODO >Xsmokeping/bin/smokeping >Xsmokeping/doc/smokeping.cgi.1 >Xsmokeping/doc/smokeping.1 >Xsmokeping/doc/smokeping_config.1 >Xsmokeping/doc/smokeping_install.1 >Xsmokeping/doc/ParseConfig.pm.1 >Xsmokeping/doc/Smokeping.pm.1 >Xsmokeping/doc/EchoPing.pm.1 >Xsmokeping/doc/EchoPingChargen.pm.1 >Xsmokeping/doc/smokeping.cgi.pod >Xsmokeping/doc/EchoPingDiscard.pm.1 >Xsmokeping/doc/FPing.pm.1 >Xsmokeping/doc/smokeping.pod >Xsmokeping/doc/EchoPingHttp.pm.1 >Xsmokeping/doc/smokeping_config.pod >Xsmokeping/doc/EchoPingHttps.pm.1 >Xsmokeping/doc/EchoPingIcp.pm.1 >Xsmokeping/doc/EchoPingSmtp.pm.1 >Xsmokeping/doc/smokeping_install.pod >Xsmokeping/doc/base.pm.1 >Xsmokeping/doc/basefork.pm.1 >Xsmokeping/doc/basevars.pm.1 >Xsmokeping/doc/smokeping.cgi.html >Xsmokeping/doc/smokeping.html >Xsmokeping/doc/smokeping_config.html >Xsmokeping/doc/smokeping_install.html >Xsmokeping/doc/ParseConfig.pm.html >Xsmokeping/doc/Smokeping.pm.html >Xsmokeping/doc/EchoPing.pm.html >Xsmokeping/doc/EchoPingChargen.pm.html >Xsmokeping/doc/EchoPingDiscard.pm.html >Xsmokeping/doc/EchoPingHttp.pm.html >Xsmokeping/doc/.cvsignore >Xsmokeping/doc/EchoPingHttps.pm.html >Xsmokeping/doc/EchoPingIcp.pm.html >Xsmokeping/doc/EchoPingSmtp.pm.html >Xsmokeping/doc/FPing.pm.html >Xsmokeping/doc/base.pm.html >Xsmokeping/doc/basefork.pm.html >Xsmokeping/doc/basevars.pm.html >Xsmokeping/doc/smokeping.cgi.txt >Xsmokeping/doc/smokeping.txt >Xsmokeping/doc/smokeping_config.txt >Xsmokeping/doc/smokeping_install.txt >Xsmokeping/doc/ParseConfig.pm.txt >Xsmokeping/doc/Smokeping.pm.txt >Xsmokeping/doc/EchoPing.pm.txt >Xsmokeping/doc/EchoPingChargen.pm.txt >Xsmokeping/doc/EchoPingDiscard.pm.txt >Xsmokeping/doc/EchoPingHttp.pm.txt >Xsmokeping/doc/EchoPingHttps.pm.txt >Xsmokeping/doc/EchoPingIcp.pm.txt >Xsmokeping/doc/EchoPingSmtp.pm.txt >Xsmokeping/doc/FPing.pm.txt >Xsmokeping/doc/base.pm.txt >Xsmokeping/doc/basefork.pm.txt >Xsmokeping/doc/basevars.pm.txt >X@unexec if cmp -s %D/smokeping/etc/basepage.html %D/smokeping/etc/basepage.html.dist; then rm -f %D/smokeping/etc/basepage.html; fi >Xsmokeping/etc/basepage.html.dist >X@exec [ -f %B/basepage.html ] || cp %B/%f %B/basepage.html >X@unexec if cmp -s %D/smokeping/etc/config %D/smokeping/etc/config.dist; then rm -f %D/smokeping/etc/config; fi >Xsmokeping/etc/config.dist >X@exec [ -f %B/config ] || cp %B/%f %B/config >X@unexec if cmp -s %D/smokeping/etc/smokemail %D/smokeping/etc/smokemail.dist; then rm -f %D/smokeping/etc/smokemail; fi >Xsmokeping/etc/smokemail.dist >X@exec [ -f %B/smokemail ] || cp %B/%f %B/smokemail >X@unexec if cmp -s %D/smokeping/etc/config-echoping %D/smokeping/etc/config-echoping.dist; then rm -f %D/smokeping/etc/config-echoping; fi >Xsmokeping/etc/config-echoping.dist >X@exec [ -f %B/config-echoping ] || cp %B/%f %B/config-echoping >Xsmokeping/htdocs/smokeping.cgi >Xsmokeping/lib/BER.pm >Xsmokeping/lib/SNMP_Session.pm >Xsmokeping/lib/SNMP_util.pm >Xsmokeping/lib/Smokeping.pm >Xsmokeping/lib/probes/FPing.pm >Xsmokeping/lib/probes/base.pm >Xsmokeping/lib/probes/EchoPing.pm >Xsmokeping/lib/probes/EchoPingChargen.pm >Xsmokeping/lib/probes/EchoPingDiscard.pm >Xsmokeping/lib/probes/EchoPingHttp.pm >Xsmokeping/lib/probes/EchoPingHttps.pm >Xsmokeping/lib/probes/EchoPingIcp.pm >Xsmokeping/lib/probes/EchoPingSmtp.pm >Xsmokeping/lib/probes/basefork.pm >Xsmokeping/lib/probes/basevars.pm >Xsmokeping/lib/ISG/ParseConfig.pm >Xetc/rc.d/smokeping.sh >X@exec mkdir -p %D/smokeping/htdocs/img; chown www:www %D/smokeping/htdocs/img >X@unexec rm -rf %D/smokeping/htdocs/img >X@exec mkdir -p %D/smokeping/var >X@unexec rmdir %D/smokeping/var || true >X@unexec rmdir %D/smokeping/etc || true >X@dirrm smokeping/bin >X@dirrm smokeping/doc >X@dirrm smokeping/htdocs >X@dirrm smokeping/lib/probes >X@dirrm smokeping/lib/ISG >X@dirrm smokeping/lib >X@unexec rmdir %D/smokeping || true >END-of-smokeping/pkg-plist >echo x - smokeping/pkg-message >sed 's/^X//' >smokeping/pkg-message << 'END-of-smokeping/pkg-message' >X================================================================= >X >XSmokePing has now been installed in %%PREFIX%%/smokeping/. >X >XNOTE: A set of sample configuration files have been installed: >X >X %%PREFIX%%/smokeping/etc/config >X %%PREFIX%%/smokeping/etc/smokemail >X %%PREFIX%%/smokeping/etc/basepage.html >X %%PREFIX%%/smokeping/etc/config-echoping >X >XYou need edit these to suit your requirements. Please refer to >X%%PREFIX%%/smokeping/doc/smokeping_install.txt and >X%%PREFIX%%/smokeping/doc/smokeping_config.txt for further >Xdetails on installation and configuration. >X >X >XOnce configured, you can start SmokePing data collection by running: >X >X %%PREFIX%%/etc/rc.d/smokeping.sh start >X >X >XTo enable Apache web access, add the following to your >X%%PREFIX%%/etc/apache/httpd.conf: >X >X ScriptAlias /smokeping.cgi %%PREFIX%%/smokeping/htdocs/smokeping.cgi >X Alias /smokeimg/ %%PREFIX%%/smokeping/htdocs/img/ >X >XEnjoy! >X >X================================================================= >END-of-smokeping/pkg-message >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 36006
: 20394