[22184] trunk/dports/net/smokeping
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 20 20:58:10 PST 2007
Revision: 22184
http://trac.macosforge.org/projects/macports/changeset/22184
Author: markd at macports.org
Date: 2007-02-20 20:58:09 -0800 (Tue, 20 Feb 2007)
Log Message:
-----------
Default config file changes and ui_msg changes.
Modified Paths:
--------------
trunk/dports/net/smokeping/Portfile
trunk/dports/net/smokeping/files/patch-etc-config.dist
Modified: trunk/dports/net/smokeping/Portfile
===================================================================
--- trunk/dports/net/smokeping/Portfile 2007-02-21 03:11:25 UTC (rev 22183)
+++ trunk/dports/net/smokeping/Portfile 2007-02-21 04:58:09 UTC (rev 22184)
@@ -4,7 +4,7 @@
PortGroup perl5 1.0
name smokeping
version 2.0.9
-revision 4
+revision 5
categories net perl
maintainers markd at macports.org
description A deluxe latency logging and graphing system.
@@ -157,7 +157,7 @@
... and add the lines below to /etc/httpd/httpd.conf.
LoadModule speedycgi_module libexec/mod_speedycgi.so
- AddModule mod_speedycgi.c
+ AddModule mod_speedycgi.c
2) Changes to httpd.conf for Smokeping.
@@ -166,19 +166,21 @@
AddHandler cgi-script .cgi
- -Add directives to simplify the Smokeping url and allow access to Smokeping's data directory.
+ -Add directives to allow access to Smokeping's data directory and a /smokefast
+ alias for a simple url to the smokeping.cgi.
- Alias /smokeping \"${prefix}/var/smokeping/smokeping.cgi\"
- <Directory \"${prefix}/var/smokeping\">
- Allow from all
- Options ExecCGI
- </Directory>
+ Alias /smokeping \"${prefix}/var/smokeping\"
+ <Directory \"${prefix}/var/smokeping\">
+ Allow from all
+ Options ExecCGI
+ </Directory>
+ Alias /smokefast \"${prefix}/var/smokeping/smokeping.cgi\"
3) Set Smokeping data directory permissions to the Apache user and group set
in httpd.conf. The default Apache user and group for OS X is www.
- sudo chown -R www:www ${smokedata}/
+ sudo chown -R <smokeping-user>:<smokeping-group> ${smokedata}/
4) Setup Smokeping logging.
@@ -206,9 +208,14 @@
cd ${smokeetc}
sudo mv config.dist config
- -Paths are set by MacPorts, leave them alone.
-
+ -Set the DNS names for the Smokeping config file url's \"imageurl\" and \"cgiurl\".
+ But you should leave all file paths alone -they are set by MacPorts.
+
+ imgurl = http://myhost.mycompany.edu/smokeping/img
+ cgiurl = http://myhost.mycompany.com/smokeping/smokeping.cgi
+
-Customize variables.
+
* General * - owner, contact, and mailhost
* Alerts * - to, from addresses
@@ -241,7 +248,8 @@
7) Check the Smokeping graphs with a web browser.
- Go to http://localhost/smokeping
+ Go to http://localhost/smokeping/smokeping.cgi, or http://localhost/smokefast if
+ you set that alias to smokeping.cgi in your httpd.conf.
8) Add or remove targets from Smokeping.
Modified: trunk/dports/net/smokeping/files/patch-etc-config.dist
===================================================================
--- trunk/dports/net/smokeping/files/patch-etc-config.dist 2007-02-21 03:11:25 UTC (rev 22183)
+++ trunk/dports/net/smokeping/files/patch-etc-config.dist 2007-02-21 04:58:09 UTC (rev 22184)
@@ -14,10 +14,10 @@
-tmail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/tmail.dist
+sendmail = /usr/sbin/sendmail
+imgcache = __PREFIX__/var/smokeping/img
-+imgurl = http://localhost/smokeping/img
++imgurl = http://myhost.mycompany.com/smokeping/img
+datadir = __PREFIX__/var/smokeping
+piddir = /var/run
-+cgiurl = http://localhost/smokeping/smokeping.cgi
++cgiurl = http://myhost.mycompany.com/smokeping/smokeping.cgi
+smokemail = __PREFIX__/etc/smokeping/smokemail
+tmail = __PREFIX__/etc/smokeping/tmail
# specify this to get syslog logging
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070220/1e9514d4/attachment.html
More information about the macports-changes
mailing list