apacheaddmod is used in ebuilds to add apache modules to the configuration.
infortunatly,apacheaddmod seems to support apache 1.x only.
we should add support for apache 2.
Steps to Reproduce:
Created attachment 31324 [details, diff]
Patch to add support for apache2.
This little patch add support for apache2.
I just added an option apache_version= , that allow to choose between apache's
this option is not mandatory,to keep up old behavior,by default the script
works for apache 1.x
Dont add me to the cc since I already get the bug report from apache-bugs
Has this been tested?
yes,it seems ok.
This patch does not quite work the way I would expect it to. You are stil going to being adding modules to /etc/apache/conf which is not correct for apache2 modules.
the config file to edit is a command line argument.
for exemple :
# apacheaddmod /etc/apache2/conf/apache2.conf test/mod_test.so mod_test.c test_module define=TEST apache_version=2
will edit /etc/apache2/conf/apache2.conf.
I didn t played with this option at all.it has been made by apacheaddmod's author.
I think we should keep this beahvior,since I'll send the patch upstream as soon as it's in gentoo cvs.
chuck ? did you tested it ?
I'll be glad to have some news , so I could start using it in ebuilds.
First off, if both Apache 1 and Apache 2 are going to install apacheaddmod, it needs to be moved out into a separate package.
Secondly, does apachedelmod also need patching?
Third, support for apachedelmod needs adding to all the mod_* ebuilds in Portage.
I suggest we add 'apache2addmod' and 'apache2delmod' scripts (as links back to the original scripts), instead of passing the apache version as an option. You can be sure that someone will forget to supply the option in an ebuild ...
the incoming apache eclass should fix this.
It has, closing. :)