Hi, just a question: is there any chance to get mod_auth_imap for apache2 from http://ben.brillat.net/projects/mod_auth_imap/ into the regular portage tree? Maybe it helps when i try to bring in an adopted ebuild file (copy&paste from .../net-www/mod_auth_pgsql/mod_auth_pgsql-2.0.3-r1.ebuild)? Reproducible: Always Steps to Reproduce:
i try to write an ebuild for this package, but it make some headache to me: - the archiv file name is mod_auth_imap2-2.2.0.tar.gz - the base directory in the source archive is "mod_auth_imap2-2.2.0/" - but the name of the module source file is "mod_auth_imap.c" and not mod_auth_imap2.c" What sould i do? - sould i rename the source file after unpacking the archive? (And how can i do this in the ebuild file?) - sould i provide a different archive where the source file is already renamed? And should this ebuild be named "net-www/mod_auth_imap" or "net-www/mod_auth_imap2" (what i actually guess to be the right name) And BTW: ist it ok to ask this kind of questions here?
Heh, I am trying to write an ebuild for it too. However, I am having the same problem as you. I did try to change the name of the .c file from mod_auth_imap.c to mod_auth_imap2.c and it worked flawlessly. I will attach both my ebuild and my *modified* tarball.
Created attachment 117313 [details] Ebuild for mod_auth_imap2
Created attachment 117315 [details] Modified tarball(source file renamed) I changed the name of the source file so apache-module eclass can compile it. I also find it rather stupid that apache-module.eclass doesn't have a function where you can specify source files. This would help in the case we are having right now.
Created attachment 117316 [details] Updated ebuild In this ebuild I have changed the name of the .c file in src_unpack so that apache-module can compile the correct .c file. Much cleaner.
Created attachment 130185 [details] www-apache/mod_auth_imap2-2.2.0 Well... this is a properly working ebuild for mod_auth_imap2 without nasty copying of c files :) Have fun
Created attachment 130187 [details] www-apache/mod_auth_imap2/files/10_mod_auth_imap.conf
can you please test if this works with apache-2.2? i will put it in cvs then ..
in cvs now