[37016] trunk/dports/net/cacti
markd at macports.org
markd at macports.org
Thu May 22 17:36:09 PDT 2008
Revision: 37016
http://trac.macosforge.org/projects/macports/changeset/37016
Author: markd at macports.org
Date: 2008-05-22 17:36:08 -0700 (Thu, 22 May 2008)
Log Message:
-----------
ui_msg changes and remove unused patch. No version bump.
Modified Paths:
--------------
trunk/dports/net/cacti/Portfile
Removed Paths:
-------------
trunk/dports/net/cacti/files/
Modified: trunk/dports/net/cacti/Portfile
===================================================================
--- trunk/dports/net/cacti/Portfile 2008-05-22 23:05:49 UTC (rev 37015)
+++ trunk/dports/net/cacti/Portfile 2008-05-23 00:36:08 UTC (rev 37016)
@@ -4,7 +4,7 @@
name cacti
version 0.8.7b
-revision 2
+revision 3
categories net
maintainers markd
platforms darwin
@@ -21,9 +21,6 @@
distfiles ${distname}${extract.suffix}:cacti
checksums ${distname}${extract.suffix} md5 63ffca5735b60bc33c68bc880f0e8042
-# Placeholder for Cacti official patches
-#patchfiles
-
depends_lib port:mysql5 \
port:rrdtool
@@ -49,6 +46,12 @@
system "cd ${worksrcpath} && patch -p1 -N < ${workpath}/cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.1.diff"
file copy ${workpath}/cacti-plugin-arch/pa.sql \
${destroot}${cactidir}
+
+# Add the likely path for Cacti
+ system "cd ${worksrcpath} && patch -p0 < ${filespath}/patch-plugins.php.diff"
+
+ file rename ${destroot}${cactidir}/plugins/index.php \
+ ${destroot}${cactidir}/plugins/index.php.org
}
system "cp -R ${worksrcpath}/* ${destroot}${cactidir}"
@@ -143,8 +146,11 @@
For example:
${cactidir}/plugins/weathermap/
- c) Edit ${cactidir}/include/global.php and add an entry for each plugin you installed after the'plugins' statement,
- as shown in this example using the weathermap plugin:
+ c) Edit ${cactidir}/include/global.php - modify the url_path to reflect Cacti's default
+ URL and add an entry to load the weathermap plugin as shown:
+
+ \$config['url_path'] = '/cacti/';
+
\$plugins = array();
\$plugins[] = 'weathermap';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080522/b8707c50/attachment.htm
More information about the macports-changes
mailing list