[37392] trunk/dports/net/nedi/Portfile
markd at macports.org
markd at macports.org
Thu Jun 5 15:30:18 PDT 2008
Revision: 37392
http://trac.macosforge.org/projects/macports/changeset/37392
Author: markd at macports.org
Date: 2008-06-05 15:30:17 -0700 (Thu, 05 Jun 2008)
Log Message:
-----------
Update to 1.0.
Modified Paths:
--------------
trunk/dports/net/nedi/Portfile
Modified: trunk/dports/net/nedi/Portfile
===================================================================
--- trunk/dports/net/nedi/Portfile 2008-06-05 22:11:54 UTC (rev 37391)
+++ trunk/dports/net/nedi/Portfile 2008-06-05 22:30:17 UTC (rev 37392)
@@ -3,7 +3,7 @@
PortSystem 1.0
name nedi
-version 1.0-rc6
+version 1.0
categories net
maintainers markd
platforms darwin
@@ -19,8 +19,7 @@
distname ${name}-${version}
extract.suffix .tgz
worksrcdir ${name}
-checksums md5 1aa34876601a57d061f041e9ab8ea9f0
-default_variants +server
+checksums md5 adae0699ea6d010d6d92f807f04ca442
depends_lib port:perl5.8 \
port:mysql5 \
@@ -41,6 +40,9 @@
depends_lib-append port:cacti
}
+variant_set server
+
+
# Set some useful variables
set nedidir ${prefix}/share
set rrdbin ${prefix}/bin/rrdtool
@@ -77,18 +79,18 @@
reinplace "s|/etc/nedi.conf|${nedidir}/nedi/nedi.conf|g" \
${destroot}${nedidir}/${name}/html/inc/libmisc.php
-# Fix RRDtool paths
- reinplace "s|\"rrdtool\"|\"${rrdbin}\"|g" \
- ${destroot}${nedidir}/${name}/inc/libmisc.pl
+
+# Fix rrdcmd and rrdpath variables in nedi.conf
+ reinplace "s|rrdtool|${rrdbin}|g" \
+ ${destroot}${nedidir}/${name}/nedi.conf
reinplace "s|/var/nedi/rrd|${rrdfiles}|g" \
- ${destroot}${nedidir}/${name}/html/inc/libgraph.php
- reinplace "s|\"rrdtool\"|\"${rrdbin}\"|g" \
- ${destroot}${nedidir}/${name}/html/inc/libgraph.php
+ ${destroot}${nedidir}/${name}/nedi.conf
-# Fix Cacti paths
- reinplace "s|/usr/local/bin/php /var/www/htdocs/cacti/cli|${prefix}/bin/php ${cacticlidir}|g" \
- ${destroot}${nedidir}/${name}/html/inc/libmisc.php
+# Fix Cacti paths in nedi.conf
+ reinplace "s|/usr/bin/php /var/www/html/cacti/cli|${prefix}/bin/php ${cacticlidir}|g" \
+ ${destroot}${nedidir}/${name}/nedi.conf
+
# Create directory for rrd files
xinstall -m 755 -d ${destroot}${rrdfiles}
@@ -203,6 +205,8 @@
comm <my-community-string>
<usr> <pass> <enablepass>
+Optionally uncomment the 'cacticli' variable to create Cacti graphs within NeDi
+
-Make any other desired changes in nedi.conf
-Start NeDi data collection:
cd ${nedidir}/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080605/a50ec231/attachment.htm
More information about the macports-changes
mailing list