[41241] trunk/dports/net/nedi/Portfile

markd at macports.org markd at macports.org
Tue Oct 28 16:40:03 PDT 2008


Revision: 41241
          http://trac.macports.org/changeset/41241
Author:   markd at macports.org
Date:     2008-10-28 16:40:02 -0700 (Tue, 28 Oct 2008)
Log Message:
-----------
Add fping as a dependency and set gui path for it.

Modified Paths:
--------------
    trunk/dports/net/nedi/Portfile

Modified: trunk/dports/net/nedi/Portfile
===================================================================
--- trunk/dports/net/nedi/Portfile	2008-10-28 23:37:30 UTC (rev 41240)
+++ trunk/dports/net/nedi/Portfile	2008-10-28 23:40:02 UTC (rev 41241)
@@ -4,7 +4,7 @@
 
 name			nedi
 version			1.0
-revision		1
+revision		2
 categories		net
 maintainers		markd
 platforms		darwin
@@ -34,7 +34,8 @@
 			port:p5-algorithm-diff \
 			port:p5-dbi \
 			port:p5-dbd-mysql \
-			port:rrdtool
+			port:rrdtool \
+			port:fping
 
 variant server description {does nothing in this port, but its presence triggers mysql5 server variant} {}
 
@@ -49,6 +50,7 @@
 set nedidir ${prefix}/share
 set rrdbin ${prefix}/bin/rrdtool
 set rrdfiles ${nedidir}/${name}/rrd
+set fpingpath ${prefix}/sbin
 set cacticlidir ${prefix}/share/cacti/cli
 
 startupitem.create	yes
@@ -87,6 +89,9 @@
 	reinplace "s|/var/nedi/rrd|${rrdfiles}|g" \
 		${destroot}${nedidir}/${name}/nedi.conf
 
+# Fix fping path
+	reinplace "s|/usr/local/sbin|${fpingpath}|g" \
+ 		${destroot}${nedidir}/${name}/html/Nodes-Toolbox.php
 
 # Fix Cacti paths in nedi.conf
 	reinplace "s|/usr/bin/php /var/www/html/cacti/cli|${prefix}/bin/php ${cacticlidir}|g" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081028/c024893a/attachment.html>


More information about the macports-changes mailing list