As mentioned in Bug #324457 I ported the cacti-pluginarchitecture-patch to portage-version. I added the USE-Flag "plugins" to make activation of this patch selectable. For me it works fine ... but please when starting to use plugin-architecture, please start with some simple plugins like "tools" to check if it's working. I spent 3 days searching bugs in plugin-architecture-patch 2.9 to end up in finding that the plugin I used for testing had a stupid bug overwriting some variables ;-)
Created attachment 255393 [details] Ebuild of cacti-0.8.7g-r1 (introducing plugin-patch)
Created attachment 255395 [details, diff] Cacti-Plugins-Patch, modified to be work in Gentoo-Ebuild
Created attachment 257166 [details] Added the missing pa.sql to add neccessary tables to cacti-db in first-time install of plugin-architecture
Created attachment 257168 [details] SQL file to add tables for plugin-architecture
Created attachment 257170 [details] Added the missing pa.sql to add neccessary tables to cacti-db in first-time install of plugin-architecture
Created attachment 257172 [details] Modified postinstall-en.txt to point on need to apply pa.sql
@infra, is it possible to remove Ausgabenaufstellung.xlsx attachment completely? It contains private information that was not supposed to appear here. If needed I can forward the user's request for you.
Attachment Ausgabenaufstellung.xlsx (id=257166) removed.
Removing infra.
Thanx guys!
cacti-0.8.7h is in the tree but it looks like there is not development in plugin architecture since 2009. Am I correct? Does there exist/requreid patch for 0.8.7h? Is there any interest in having this in tree?
Created attachment 288795 [details, diff] cacti-0.8.7h.ebuild.diff Add plugin USE. This is required to properly add cacti plugins to this base package.
(In reply to comment #11) > cacti-0.8.7h is in the tree but it looks like there is not development in > plugin architecture since 2009. Am I correct? Does there exist/requreid patch > for 0.8.7h? Is there any interest in having this in tree? No, it was released with 0.8.7 and required for all other plugins. I don't understand why upstream did not merge this... it just make life more complex. But, for us to be able to add plugins the base package must be patched.
Created attachment 288803 [details] cacti-plugin-settings-0.5.ebuild
Created attachment 288805 [details] cacti-plugin-thold-0.4.3.ebuild
I attached two plugin ebuilds. There are few problems... 1. cacti specific - the downloads do not have version, so we probably need to rename and mirror at gentoo mirror. 2. webapp specific - there is no proper way and I found no example in tree for the webapp eclass to serve ebuild of a plugin to other ebuild. So I had to do this "by-hand". 3. webapp specific - there is no proper way to detect master package version, so I added the version hardcoded within the ebuild. Maybe this should be extracted from the package name and rename it to cact-plugin-0.8.7h-thold-0.4.3 - not sure it is leagal...
Created attachment 290547 [details] cacti-plugin-settings-0.5.ebuild
Created attachment 290549 [details] cacti-plugin-thold-0.4.3.ebuild
Created attachment 290551 [details] cacti-plugin-discovery-0.8.5.ebuild
Created attachment 290553 [details] cacti-plugin-monitor-0.8.2.ebuild
Created attachment 291811 [details] cacti-plugin-discovery-1.3.1.ebuild
Created attachment 291813 [details] cacti-plugin-monitor-1.3.0.1.ebuild
Created attachment 291815 [details] cacti-plugin-settings-0.71.0.1.ebuild
Created attachment 291817 [details] cacti-plugin-thold-0.4.8.4.ebuild
Cacti plugins have now versions at upstream!
And cacti-0.8.7i with plugin architecture is in tree now! Thank you guys!
(In reply to comment #26) > And cacti-0.8.7i with plugin architecture is in tree now! Thank you guys! Are you sure? I don't see the new ebuild[1] patches anything. [1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/cacti/cacti-0.8.7i.ebuild?revision=1.1&view=markup
0.8.7I is available prepatched from upstream. PA finally made it into the core ;-)
yup, Alon, just take a look and news item here: http://www.cacti.net/ sunday, december 11th, 2011 - 10:35 pm Cacti 0.8.7i released!!! Now fully patched Cacti with Plugin Architecture available as well!!!
Created attachment 295689 [details, diff] cacti-0.8.7i.ebuild.diff No. This ebuild is without plugins. Please reopen, attached is a working ebuild with plugins.
Created attachment 295715 [details] cacti-plugin-discovery-1.3.1.ebuild
Created attachment 295717 [details] cacti-plugin-monitor-1.3.0.1.ebuild
Created attachment 295719 [details] cacti-plugin-settings-0.71.0.1.ebuild
Created attachment 295721 [details] cacti-plugin-thold-0.4.9.3.ebuild
Thank you, Alon. Do you know if there are any plans to merge codebases?
(In reply to comment #35) > Thank you, Alon. Do you know if there are any plans to merge codebases? Well, I don't know. However there is a progress. Instead of upstream provide base and patch, upstream provide two bases one without plugin and one pre-patched with plugin. So it is kind of merge :)
Hmm, 0.8.6i has effectively two versions, so the USE=plugins should be easy to implement...