Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176083 - ebuild request: mod_auth_imap
Summary: ebuild request: mod_auth_imap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 08:28 UTC by Thomas Beutin
Modified: 2007-12-30 17:14 UTC (History)
1 user (show)

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


Attachments
Ebuild for mod_auth_imap2 (mod_auth_imap2-2.2.0.ebuild,443 bytes, text/plain)
2007-04-26 16:59 UTC, Thomas Anderson (tanderson) (RETIRED)
Details
Modified tarball(source file renamed) (mod_auth_imap2-current.tar.gz,12.34 KB, text/plain)
2007-04-26 17:02 UTC, Thomas Anderson (tanderson) (RETIRED)
Details
Updated ebuild (mod_auth_imap2-2.2.0.ebuild,520 bytes, text/plain)
2007-04-26 17:07 UTC, Thomas Anderson (tanderson) (RETIRED)
Details
www-apache/mod_auth_imap2-2.2.0 (mod_auth_imap2-2.2.0.ebuild,639 bytes, text/plain)
2007-09-06 17:21 UTC, steveb
Details
www-apache/mod_auth_imap2/files/10_mod_auth_imap.conf (10_mod_auth_imap.conf,1.10 KB, text/plain)
2007-09-06 17:22 UTC, steveb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beutin 2007-04-26 08:28:15 UTC
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:
Comment 1 Thomas Beutin 2007-04-26 16:29:36 UTC
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?
Comment 2 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-04-26 16:58:27 UTC
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.
Comment 3 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-04-26 16:59:41 UTC
Created attachment 117313 [details]
Ebuild for mod_auth_imap2
Comment 4 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-04-26 17:02:45 UTC
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.
Comment 5 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-04-26 17:07:05 UTC
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.
Comment 6 steveb 2007-09-06 17:21:39 UTC
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
Comment 7 steveb 2007-09-06 17:22:19 UTC
Created attachment 130187 [details]
www-apache/mod_auth_imap2/files/10_mod_auth_imap.conf
Comment 8 Benedikt Böhm (RETIRED) gentoo-dev 2007-09-08 20:13:04 UTC
can you please test if this works with apache-2.2? i will put it in cvs then ..
Comment 9 Benedikt Böhm (RETIRED) gentoo-dev 2007-12-30 17:14:20 UTC
in cvs now