[21544] trunk/dports/net/smokeping/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jan 27 17:18:33 PST 2007
Revision: 21544
http://trac.macosforge.org/projects/macports/changeset/21544
Author: markd at macports.org
Date: 2007-01-27 17:18:33 -0800 (Sat, 27 Jan 2007)
Log Message:
-----------
ui_msg changes only.
Modified Paths:
--------------
trunk/dports/net/smokeping/Portfile
Modified: trunk/dports/net/smokeping/Portfile
===================================================================
--- trunk/dports/net/smokeping/Portfile 2007-01-28 01:08:50 UTC (rev 21543)
+++ trunk/dports/net/smokeping/Portfile 2007-01-28 01:18:33 UTC (rev 21544)
@@ -127,21 +127,27 @@
sudo cp ${prefix}/share/doc/speedycgi/mod_speedycgi.so /usr/libexec/httpd
sudo cp ${prefix}${smokedata}/smokeping.cgi /<apache-docroot>/cgi-bin
- ... and add the lines below to /etc/httpd/httpd.conf
+ ... and add the lines below to /etc/httpd/httpd.conf.
LoadModule speedycgi_module libexec/mod_speedycgi.so
AddModule mod_speedycgi.c
-2) Now set Apache for Smokeping by making a symlink and then adding a directive to httpd.conf.
+2) Set Apache for Smokeping by making a symlink and edit the httpd.conf to enable CGI's.
- sudo ln -s ${prefix}/var/smokeping /<apache-docroot>/smokeping
+ -Open a terminal window and run this command.
- <Directory ${prefix}/apache2/htdocs/smokeping>
- Options ExecCGI
- </Directory>
+ sudo ln -s ${prefix}/var/smokeping /<apache-docroot>/smokeping
+ -Edit httpd.conf and uncomment this line to enable execution of CGI's, then add the directive below.
+ AddHandler cgi-script .cgi
+
+ <Directory ${prefix}/apache2/htdocs/smokeping>
+ Options ExecCGI
+ </Directory>
+
+
3) Set Smokeping permissions.
sudo chown -R www:www ${prefix}/var/smokeping/
@@ -151,7 +157,7 @@
-Paths are set by MacPorts, leave them alone.
- -Customize variables
+ -Customize variables.
* General * - owner, contact, and mailhost
* Alerts * - to, from addresses
@@ -164,7 +170,7 @@
host = mywebserver.mydomain.com
alerts = bigloss,someloss,startloss
- -See sample configurations and examples in ${prefix}/share/doc/smokeping/
+ -See sample configurations and examples in ${prefix}/share/doc/smokeping/.
5) Setup Smokeping logging.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070127/11c04825/attachment.html
More information about the macports-changes
mailing list