[103273] trunk/dports/net/cacti/Portfile

markd at macports.org markd at macports.org
Tue Feb 19 14:23:40 PST 2013


Revision: 103273
          https://trac.macports.org/changeset/103273
Author:   markd at macports.org
Date:     2013-02-19 14:23:40 -0800 (Tue, 19 Feb 2013)
Log Message:
-----------
Update to 0.8.8a.  Cacti now includes plugin architecture so the plugins variant was removed.  Apologies for not doing incremental commits.

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

Modified: trunk/dports/net/cacti/Portfile
===================================================================
--- trunk/dports/net/cacti/Portfile	2013-02-19 20:42:35 UTC (rev 103272)
+++ trunk/dports/net/cacti/Portfile	2013-02-19 22:23:40 UTC (rev 103273)
@@ -3,7 +3,7 @@
 PortSystem	1.0
 
 name			cacti
-version			0.8.7i
+version			0.8.8a
 categories		net
 license			GPL-2+
 maintainers		markd openmaintainer
@@ -19,8 +19,8 @@
 homepage		http://www.cacti.net
 master_sites		http://www.cacti.net/downloads
 
-distfiles		${distname}${extract.suffix}
-checksums		${distname}${extract.suffix} md5 07fd1da6b0ac4912410df3aa4e451a4b
+checksums		md5 a4da682dab9a88a2e0edb1728bf531ae \
+			rmd160 1462a71af844810a3451c24fd733b3f2351b75df
 
 depends_lib		path:bin/mysql_config5:mysql5 \
 			port:rrdtool
@@ -28,24 +28,13 @@
 use_configure   no
 build {}
 
-set cactiversion 0.8.7i
-set pluginversion 3.1
+set cactiversion 0.8.8a
 set cactidir ${prefix}/share/cacti
 
-variant plugins description {The Plugin Architecture for Cacti} {
-	distfiles-append cacti-${cactiversion}-PIA-${pluginversion}${extract.suffix}
-	checksums-append cacti-${version}-PIA-${pluginversion}${extract.suffix} md5 669770a7837986971a279104dbb50b75
-}
-
 destroot {
 # Copy Cacti files
 	file mkdir ${destroot}${cactidir}
 	system "cp -R ${worksrcpath}/* ${destroot}${cactidir}"
-
-# Copy PA architecture files
-	if { [variant_isset plugins] } {
-	system "cp -R ${workpath}/cacti-${cactiversion}-PIA-${pluginversion}/* ${destroot}${cactidir}"
-	}
 }
 
 
@@ -84,10 +73,10 @@
 	Follow the instructions that were given after you executed 'mysql_install_db' above.
 
    Create a cacti MySQL user and cacti database.
-	mysql5 -u root -p (login with new root password when prompted)
-        mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on cacti.* to cacti at localhost;
-        mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on cacti.* to cacti;
-        mysql> SET PASSWORD FOR cacti at localhost = OLD_PASSWORD('<cactidb-pwd>');
+	mysql5 -u root -p (login with root password set above when prompted)
+        mysql> GRANT ALL ON cacti.* to cacti at localhost;
+        mysql> SET PASSWORD FOR cacti at localhost = PASSWORD('<cactidb-pwd>');
+        mysql> flush privileges;
 	mysql> create database cacti;
 	mysql> exit;
 
@@ -101,7 +90,7 @@
 	mysql> exit;
 
 
-4) Edit ${cactidir}/include/config.php to match your MySQL information.
+4) Edit ${cactidir}/include/config.php to match your MySQL information and url path.
 
 	\$database_type = \"mysql\";
 	\$database_default = \"cacti\";
@@ -122,32 +111,22 @@
 	*/5 * * * * ${prefix}/bin/php ${cactidir}/poller.php > /dev/null 2>&1
 
 
-8) If you installed Cacti with the 'plugins' variant for Cacti Plugin Architecture support,\
-   you must perform these additional steps.
+7) If you wish to use Cacti plugins, you must perform these additional steps.
 
-   a) Import the PA schema.
-	cd ${cactidir}
-	sudo cat ${cactidir}/pa.sql | mysql5 -u root -p cacti (cacti is the db name)
-
-   b) Download the particular Cacti plugin(s) you want and copy their folders to ${cactidir}/plugins/<plugin-dir>/.\
+   a) Download the Cacti plugin(s) you want to use and copy the unzipped directory to ${cactidir}/plugins/
       For example:
 	${cactidir}/plugins/weathermap/
 
-   c) Edit ${cactidir}/include/global.php - modify the url_path to reflect Cacti's default URL\
-      and add an entry to load each plugin you install; the weathermap plugin is an example:
+   b) In the Cacti web GUI, go to Configuration -> Plugin Management and you should see your plugin(s) listed.
+      Under 'Actions', click the the install button to install each plugin.
 
-	\$url_path = \"/cacti/\";
+   c) Ensure that your Cacti user has permissions to manage the plugins
+	Console -> User Management  (select a Cacti user and allow Configure/Manage or View options as desired)
 
-	\$plugins = array();
-	\$plugins[] = 'weathermap';
 
-   d) Enable the plugin in the Cacti web interface; this creates a top-level tab for the plugin in the Cacti interface\
-	Console -> User Management  (select a Cacti user and check the 'View Weathermaps' checkboxes)
-
-
-7) Go to http://localhost/cacti/install/index.php.
-	The default user/password is admin/admin.  Select 'New Install', enter\
-	the paths for SNMP / RRDtool / PHP (see below), and click 'Finish'.\
+8) Go to http://localhost/cacti/install/index.php.
+	The default user/password is admin/admin.  Select 'New Install', enter
+	the paths for SNMP / RRDtool / PHP (see below), and click 'Finish'.
 	You may now use Cacti at http://localhost/cacti/index.php.
 
 Paths:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130219/cb0e236c/attachment.html>


More information about the macports-changes mailing list