Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227779 - webapp.eclass: Webapp with plugin Support
Summary: webapp.eclass: Webapp with plugin Support
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-17 09:51 UTC by Mario Fetka (geos_one)
Modified: 2015-10-26 15:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Fetka (geos_one) 2008-06-17 09:51:35 UTC
Request for extending the webapp.eclass aund webapp-config to support plugins.

for ex. www-apps/b2evolutin
b2evol has plugin support. normally you would add a USE flag for the plugin and install it on request but for b2evol are hundred's of plugins handling them via USE flags isn't a real solution.

so my idea is to extend the eclass and config to handle plugins so the main package don't need to be aware of the plugins.

for ex.
www-apps/b2evolutin-plugin-avatar-0.2.ebuild:
webapp_is_plugin_for >=www-apps/b2evolutin-1.10.3
this way the webapp.eclass installs a file into:
/usr/share/webapps/b2evolution/1.10.3/plugins/www-apps-b2evolutin-plugin-avatar

webapp-config uses this info to handle the plugin install
this way it also knows that installing only the plugin wont work.

so when b2evolution is installed webapp-config also installs the plugin into the same dir.


Reproducible: Always
Comment 1 Artem Sidorenko 2012-01-29 17:09:55 UTC
It's possible to use workaround via INSTALL_DIR:
INSTALL_DIR="/roundcube/plugins/sieverules"

But this is working clean only for -vhosts installs.

With +vhosts you will get an unclean message for the user:
"webapp-config -I -h <host> -d roundcube-sieverules roundcube-sieverules 1.16"

because of PN in the webapp.eclass:

elog "    webapp-config -I -h <host> -d ${PN} ${PN} ${PVR}"

Isn't is a possible way to apply INSTALL_DIR to such messages by default and to save it for using with webapp-config ?