<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[128940] trunk/dports/net/argus-monitor/Portfile</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/128940">128940</a></dd>
<dt>Author</dt> <dd>devans@macports.org</dd>
<dt>Date</dt> <dd>2014-11-30 10:08:20 -0800 (Sun, 30 Nov 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>argus-monitor: add mode line and reformat, white space only.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsnetargusmonitorPortfile">trunk/dports/net/argus-monitor/Portfile</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsnetargusmonitorPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/net/argus-monitor/Portfile (128939 => 128940)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/net/argus-monitor/Portfile        2014-11-30 17:36:02 UTC (rev 128939)
+++ trunk/dports/net/argus-monitor/Portfile        2014-11-30 18:08:20 UTC (rev 128940)
</span><span class="lines">@@ -1,90 +1,93 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</ins><span class="cx"> # $Id$
</span><del>-PortSystem        1.0
</del><span class="cx">
</span><del>-name                        argus-monitor
-version                        3.5
-revision                3
-categories                net
-maintainers                nomaintainer
-description                The All Seeing System and Network Monitoring Software
-long_description        ${description}
-homepage                http://argus.tcp4me.com/
-platforms                darwin
-master_sites                http://www.tcp4me.com/code/argus-archive/
-checksums                md5 7a946b17a61edeb1b455f2ab45acf77d
-distfiles                argus-${version}.tgz
-worksrcdir                argus-${version}
</del><ins>+PortSystem 1.0
</ins><span class="cx">
</span><del>-depends_lib                port:perl5.12 \
-                        port:postfix \
-                        port:openssl \
-                        port:freetype \
-                        port:gd2 \
-                        port:fping \
-                        port:db44 \
-                        port:p5.12-dbi \
-                        port:p5.12-berkeleydb \
-                        port:p5.12-socket6 \
-                        port:p5.12-gd \
-                        port:p5.12-time-hires \
-                        port:p5.12-net-ssleay \
-                        port:p5.12-digest-hmac \
-                        port:p5.12-digest-md5 \
-                        port:p5.12-digest-sha1 \
-                        port:p5.12-crypt-des
</del><ins>+name argus-monitor
+version 3.5
+revision 3
+categories net
+maintainers nomaintainer
+description The All Seeing System and Network Monitoring Software
+long_description ${description}
+homepage http://argus.tcp4me.com/
+platforms darwin
+master_sites http://www.tcp4me.com/code/argus-archive/
+checksums md5 7a946b17a61edeb1b455f2ab45acf77d
+distfiles argus-${version}.tgz
+worksrcdir argus-${version}
</ins><span class="cx">
</span><del>-patchfiles                patch-Makefile.tplt
</del><ins>+depends_lib port:perl5.12 \
+ port:postfix \
+ port:openssl \
+ port:freetype \
+ port:gd2 \
+ port:fping \
+ port:db44 \
+ port:p5.12-dbi \
+ port:p5.12-berkeleydb \
+ port:p5.12-socket6 \
+ port:p5.12-gd \
+ port:p5.12-time-hires \
+ port:p5.12-net-ssleay \
+ port:p5.12-digest-hmac \
+ port:p5.12-digest-md5 \
+ port:p5.12-digest-sha1 \
+ port:p5.12-crypt-des
</ins><span class="cx">
</span><ins>+patchfiles patch-Makefile.tplt
+
</ins><span class="cx"> variant apple_postfix {
</span><del>-        depends_lib-delete        port:postfix
</del><ins>+ depends_lib-delete port:postfix
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-startupitem.create        yes
-startupitem.name        argusd
-startupitem.executable        "${prefix}/sbin/argusd"
</del><ins>+startupitem.create yes
+startupitem.name argusd
+startupitem.executable \
+ "${prefix}/sbin/argusd"
</ins><span class="cx">
</span><span class="cx"> # Set the --data_dir configure argument and give me a pointer to it for later reference.
</span><del>-set argus_data_dir ${prefix}/var/argus-monitor
</del><ins>+set argus_data_dir ${prefix}/var/argus-monitor
</ins><span class="cx">
</span><span class="cx"> # Set the Argus htdocs directory.
</span><del>-set argus_htdocs ${prefix}/share/${name}/htdocs
</del><ins>+set argus_htdocs ${prefix}/share/${name}/htdocs
</ins><span class="cx">
</span><del>-configure.cmd                ./Configure
-configure.args                --bin_dir=${prefix}/bin \
-                        --sbin_dir=${prefix}/sbin \
-                        --lib_dir=${prefix}/lib/argus-monitor \
-                        --data_dir=${argus_data_dir} \
-                        --cgi_dir=${argus_htdocs}/cgi-bin
</del><ins>+configure.cmd ./Configure
+configure.args --bin_dir=${prefix}/bin \
+ --sbin_dir=${prefix}/sbin \
+ --lib_dir=${prefix}/lib/argus-monitor \
+ --data_dir=${argus_data_dir} \
+ --cgi_dir=${argus_htdocs}/cgi-bin
</ins><span class="cx">
</span><span class="cx"> post-patch {
</span><span class="cx"> if { [variant_isset apple_postfix] } {
</span><del>-        reinplace "s|/lib/sendmail|/usr/sbin/sendmail|g" \
-                ${worksrcpath}/examples/config
</del><ins>+ reinplace "s|/lib/sendmail|/usr/sbin/sendmail|g" \
+ ${worksrcpath}/examples/config
</ins><span class="cx"> } else {
</span><del>-        reinplace "s|/lib/sendmail|${prefix}/sbin/sendmail|g" \
-                ${worksrcpath}/examples/config
</del><ins>+ reinplace "s|/lib/sendmail|${prefix}/sbin/sendmail|g" \
+ ${worksrcpath}/examples/config
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> post-destroot {
</span><del>-        xinstall -m 755 -d ${destroot}${argus_htdocs}/sound
-        xinstall -m 755 -d ${destroot}${argus_htdocs}/img
-        xinstall -m 755 ${worksrcpath}/misc/whoopwhoop.wav ${destroot}${argus_htdocs}/sound        
-        eval xinstall -m 640 [glob ${worksrcpath}/misc/*.gif] ${destroot}${argus_htdocs}/img
-        xinstall -m 644 -W ${worksrcpath}/misc argus.css argus.js \
-                ${destroot}${argus_htdocs}
</del><ins>+ xinstall -m 755 -d ${destroot}${argus_htdocs}/sound
+ xinstall -m 755 -d ${destroot}${argus_htdocs}/img
+ xinstall -m 755 ${worksrcpath}/misc/whoopwhoop.wav ${destroot}${argus_htdocs}/sound
+ eval xinstall -m 640 [glob ${worksrcpath}/misc/*.gif] ${destroot}${argus_htdocs}/img
+ xinstall -m 644 -W ${worksrcpath}/misc argus.css argus.js \
+ ${destroot}${argus_htdocs}
</ins><span class="cx">
</span><del>-        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
</del><ins>+ file copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
</ins><span class="cx">
</span><del>-        system "chown -R www:www ${destroot}${argus_data_dir}"
-        system "chown -R www:www ${destroot}${argus_htdocs}"
</del><ins>+ system "chown -R www:www ${destroot}${argus_data_dir}"
+ system "chown -R www:www ${destroot}${argus_htdocs}"
</ins><span class="cx">
</span><del>-        destroot.keepdirs \
-                ${destroot}${argus_data_dir}/gdata \
-                ${destroot}${argus_data_dir}/perl \
-                ${destroot}${argus_data_dir}/stats \
-                ${destroot}${argus_data_dir}/html \
-                ${destroot}${argus_data_dir}/notify
</del><ins>+ destroot.keepdirs \
+ ${destroot}${argus_data_dir}/gdata \
+ ${destroot}${argus_data_dir}/perl \
+ ${destroot}${argus_data_dir}/stats \
+ ${destroot}${argus_data_dir}/html \
+ ${destroot}${argus_data_dir}/notify
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> post-install {
</span><span class="lines">@@ -95,7 +98,7 @@
</span><span class="cx"> -Uncomment the line:
</span><span class="cx"> AddHandler cgi-script .cgi
</span><span class="cx">
</span><del>--Add a directive for the Argus data directory
</del><ins>+-Add a directive for the Argus data directory
</ins><span class="cx">
</span><span class="cx"> ScriptAlias /argus \"${argus_htdocs}/cgi-bin/arguscgi\"
</span><span class="cx"> <Directory \"${argus_htdocs}/cgi-bin\">
</span><span class="lines">@@ -106,20 +109,20 @@
</span><span class="cx">
</span><span class="cx"> 2) Setup postfix so Argus can send mail via the command-line
</span><span class="cx"> ----------------------------------------------
</span><del>-        cd ${prefix}/etc/postfix
-        sudo cp master.cf.sample master.cf
-        sudo cp main.cf.sample main.cf
-        sudo cp aliases.sample aliases
</del><ins>+ cd ${prefix}/etc/postfix
+ sudo cp master.cf.sample master.cf
+ sudo cp main.cf.sample main.cf
+ sudo cp aliases.sample aliases
</ins><span class="cx">
</span><span class="cx"> Redirect OS X's sendmail executable to the one from MacPorts.
</span><del>-        sudo mv /usr/sbin/sendmail /usr/sbin/sendmail.old
-        sudo ln -s ${prefix}/sbin/sendmail /usr/sbin/sendmail
</del><ins>+ sudo mv /usr/sbin/sendmail /usr/sbin/sendmail.old
+ sudo ln -s ${prefix}/sbin/sendmail /usr/sbin/sendmail
</ins><span class="cx">
</span><span class="cx"> Startup postfix and set it to run at sytem boot.
</span><del>-        sudo launchctl load -w /Library/LaunchDaemons/org.macports.postfix.plist
</del><ins>+ sudo launchctl load -w /Library/LaunchDaemons/org.macports.postfix.plist
</ins><span class="cx">
</span><span class="cx"> Test postfix by sending a test email from a terminal window.
</span><del>-        mail joe@mycompany.com
</del><ins>+ mail joe@mycompany.com
</ins><span class="cx">
</span><span class="cx"> NOTE: Make sure the SMTP server of the receiving domain will relay
</span><span class="cx"> mail from your Argus workstation.
</span><span class="lines">@@ -134,8 +137,8 @@
</span><span class="cx"> 3) Make the Argus files owned by the Apache user/group (default is \"www\")
</span><span class="cx"> ----------------------------------------------
</span><span class="cx"> -Execute this terminal command:
</span><del>-        sudo chown -R <apache-user>:<apache-group> ${prefix}/share/${name}/
-        sudo chown -R <apache-user>:<apache-group> ${argus_data_dir}/
</del><ins>+ sudo chown -R <apache-user>:<apache-group> ${prefix}/share/${name}/
+ sudo chown -R <apache-user>:<apache-group> ${argus_data_dir}/
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> 4) Rename config.example and user.example to config and user and customize them.
</span><span class="lines">@@ -148,52 +151,52 @@
</span><span class="cx">
</span><span class="cx"> So you may use service groups:
</span><span class="cx">
</span><del>-        Group \"WebServers\" {
-                frequency:        5min
-                retries:        5
-                retrydelay:        10min
-                notify: mail:netadmins@mycompany.com
</del><ins>+ Group \"WebServers\" {
+ frequency: 5min
+ retries: 5
+ retrydelay: 10min
+ notify: mail:netadmins@mycompany.com
</ins><span class="cx">
</span><del>-                Host \"webserver.mycompany.com\" {
-                        Service TCP/HTTP
-                        Service TCP/HTTPS
-                        Service Ping
-                }
</del><ins>+ Host \"webserver.mycompany.com\" {
+ Service TCP/HTTP
+ Service TCP/HTTPS
+ Service Ping
+ }
</ins><span class="cx">
</span><del>-                Host \"webmail.mycompany.com\" {
-                        Service TCP/HTTP
-                        Service TCP/HTTPS
-                        Service TCP/POP
-                        Service TCP/POPS
-                        Service TCP/IMAP
-                        Service TCP/IMAPS
-                        Service TCP/SMTP
-                        Service TCP/SMTPS
-                        Service Ping
-                        Service UDP {
-                                port: 501
-                        }
</del><ins>+ Host \"webmail.mycompany.com\" {
+ Service TCP/HTTP
+ Service TCP/HTTPS
+ Service TCP/POP
+ Service TCP/POPS
+ Service TCP/IMAP
+ Service TCP/IMAPS
+ Service TCP/SMTP
+ Service TCP/SMTPS
+ Service Ping
+ Service UDP {
+ port: 501
+ }
</ins><span class="cx">
</span><del>-                }
</del><ins>+ }
</ins><span class="cx">
</span><del>-                Host \"dns1.mycompany.com\" {
-                        Service UDP/DNS
</del><ins>+ Host \"dns1.mycompany.com\" {
+ Service UDP/DNS
</ins><span class="cx">
</span><del>-                }
-        }
</del><ins>+ }
+ }
</ins><span class="cx">
</span><span class="cx"> -Or you may use the \"shorthand\" notation and fully specify the characteristics
</span><span class="cx"> of individual hosts completely.
</span><span class="cx">
</span><del>-        Host \"www.example.com\" {
-                Service TCP/HTTP
-                Service TCP/HTTPS
-                Service Ping
-                Service TCP {
-                        port: 12345
-                        info: YoyoDyne Application Server
-                }
-        }
</del><ins>+ Host \"www.example.com\" {
+ Service TCP/HTTP
+ Service TCP/HTTPS
+ Service Ping
+ Service TCP {
+ port: 12345
+ info: YoyoDyne Application Server
+ }
+ }
</ins><span class="cx">
</span><span class="cx"> NOTE: Unlike C or Perl, you cannot place the opening \{ on a different line,
</span><span class="cx"> and the closing \} must be on a line by itself (with optional whitespace).
</span><span class="lines">@@ -205,19 +208,19 @@
</span><span class="cx"> ----------------------------------------------
</span><span class="cx">
</span><span class="cx"> -Start argusd in the foreground to test it:
</span><del>-        sudo argusd -fd (foreground & debug)
</del><ins>+ sudo argusd -fd (foreground & debug)
</ins><span class="cx">
</span><span class="cx"> -When you have argusd starting without errors, shutdown the foreground
</span><span class="cx"> processs using argusctl (or Control-C) and use launchctl to start argusd
</span><span class="cx"> in the background and set it to run at boot:
</span><span class="cx">
</span><del>-        argusctl shutdown
-        sudo launchctl load -w /Library/LaunchDaemons/org.macports.argusd.plist
</del><ins>+ argusctl shutdown
+ sudo launchctl load -w /Library/LaunchDaemons/org.macports.argusd.plist
</ins><span class="cx">
</span><span class="cx"> -NOTE: Config file changes are detected automatically by Argus within a few minutes,
</span><span class="cx"> but the impatient may use argusctl:
</span><span class="cx">
</span><del>-        argusctl hup
</del><ins>+ argusctl hup
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> 5) Login to the Argus web interface to monitor your services.
</span></span></pre>
</div>
</div>
</body>
</html>