[27255] trunk/dports/net/argus-monitor/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 25 22:21:29 PDT 2007


Revision: 27255
          http://trac.macosforge.org/projects/macports/changeset/27255
Author:   markd at macports.org
Date:     2007-07-25 22:21:28 -0700 (Wed, 25 Jul 2007)

Log Message:
-----------
Use MP postfix by default.

Modified Paths:
--------------
    trunk/dports/net/argus-monitor/Portfile

Modified: trunk/dports/net/argus-monitor/Portfile
===================================================================
--- trunk/dports/net/argus-monitor/Portfile	2007-07-26 04:58:13 UTC (rev 27254)
+++ trunk/dports/net/argus-monitor/Portfile	2007-07-26 05:21:28 UTC (rev 27255)
@@ -16,6 +16,7 @@
 
 
 depends_lib		port:perl5.8 \
+			port:postfix \
 			port:openssl \
 			port:freetype \
 			port:gd2 \
@@ -34,6 +35,10 @@
 
 patchfiles		patch-Makefile.tplt
 
+variant apple_postfix {
+	depends_lib-delete	port:postfix
+}
+
 startupitem.create	yes
 startupitem.name	argusd  
 startupitem.executable	"${prefix}/sbin/argusd"
@@ -51,9 +56,14 @@
 			--cgi_dir=${argus_htdocs}/cgi-bin
 
 post-patch {
+if { [variant_isset apple_postfix] } {
 	reinplace "s|/lib/sendmail|/usr/sbin/sendmail|g" \
-		${worksrcpath}/examples/config	
+		${worksrcpath}/examples/config
+} else {
+	reinplace "s|/lib/sendmail|/opt/local/sbin/sendmail|g" \
+		${worksrcpath}/examples/config
 }
+}
 
 post-destroot {
 	xinstall -m 755 -d ${destroot}${argus_htdocs}/sound
@@ -94,6 +104,27 @@
         </Directory>
 
 
+2) Setup postfix so Argus can send mail via the command-line
+----------------------------------------------
+	cd ${prefix}/etc/postfix
+	sudo cp master.cf.sample master.cf
+	sudo cp main.cf.sample main.cf
+	sudo cp aliases.sample aliases
+
+Redirect OS X's sendmail executable to the one from MacPorts.
+	sudo mv /usr/sbin/sendmail /usr/sbin/sendmail.old
+	sudo ln -s /opt/local/sbin/sendmail /usr/sbin/sendmail
+
+Startup postfix and set it to run at sytem boot.
+	sudo launchctl load -w /Library/LaunchDaemons/org.macports.postfix.plist
+
+Test postfix by sending a test email from a terminal window.
+	mail joe at mycompany.com
+
+NOTE: Make sure the SMTP server of the receiving domain will relay
+      mail from your Argus workstation.
+
+
 2) Setup the Argus config files
 ----------------------------------------------
 -Remove the suffix \".example\" from the files config and user in
@@ -189,10 +220,9 @@
 	argusctl hup 
 
 
-5) Login to the Argus web interface
+5) Login to the Argus web interface to monitor your services.
 ----------------------------------------------
 Login at http://localhost/argus
 
-
 \n"
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070725/aafa4a18/attachment.html


More information about the macports-changes mailing list