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

markd at macports.org markd at macports.org
Fri Feb 22 10:45:34 PST 2008


Revision: 34373
          http://trac.macosforge.org/projects/macports/changeset/34373
Author:   markd at macports.org
Date:     2008-02-22 10:45:32 -0800 (Fri, 22 Feb 2008)

Log Message:
-----------
Corrections for Cacti Plugin Architecture variant.

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

Modified: trunk/dports/net/cacti/Portfile
===================================================================
--- trunk/dports/net/cacti/Portfile	2008-02-22 18:29:54 UTC (rev 34372)
+++ trunk/dports/net/cacti/Portfile	2008-02-22 18:45:32 UTC (rev 34373)
@@ -44,8 +44,12 @@
 		reinplace "s|+++ 0.8.7|+++ cacti-${version}|g" \
 			${workpath}/cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.0.diff
 
-	system "cd ${worksrcpath} && patch -p1 < ${workpath}/cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.0.diff"
+	system "cd ${worksrcpath} && patch -p1 -N < ${workpath}/cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.0.diff"
+
+	file copy ${workpath}/cacti-plugin-arch/pa.sql \
+		${destroot}${cactidir}
 	}
+
 	xinstall -m 755 -d ${destroot}${cactidir}
 	system "cp -R ${worksrcpath}/* ${destroot}${cactidir}"
 }
@@ -98,6 +102,9 @@
    Import the cacti database.
 	sudo cat ${cactidir}/cacti.sql | mysql5 -u root -p cacti (cacti is the db name)
 
+   If you used the 'plugins' variant for Cacti Plugin Architecture support, add the PA schema:
+	sudo cat ${cactidir}/pa.sql | mysql5 -u root -p cacti
+
    Verify the Cacti Database.
 	mysql5 -u root -p
 	mysql> use cacti;

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


More information about the macports-changes mailing list