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. Reproducible: Always Steps to Reproduce: 1. 2. 3.
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 versions. 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
ok.
Has this been tested?
yes,it seems ok.
Magnet, 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. chuck
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 ... Best regards, Stu
the incoming apache eclass should fix this.
It has, closing. :)