Scott, I have been working on courier-authlib and didn't know that you already commit it to the tree already. I'll attach the ebuild and patch files that works for courier-imap-3.0.8-20041116. Please take a look at it and merge it with your ebuild so it works for both of packages. BTW, IMHO, net-libs is a better category for courier-authlib? Robin, I don't use vpopmail so I can't test courier-* with vpopmail. I'll open another bug for courier-imap. Would you please test them and comment/patch as needed? Thanks.
Created attachment 44266 [details] courier-authlib-0.50.20041116.ebuild
Created attachment 44267 [details] files/courier-authlib-0.50.20041116-authdaemond
Created attachment 44268 [details] files/courier-authlib-0.50.20041116-db4-bdbobj_configure.in.patch
Created attachment 44269 [details] files/courier-authlib-0.50.20041116-db4-configure.in.patch
when i apply the db4 patches, it looks like it makes a bunch of stuff not build right, this is the difference in the authdaemonrc it produces: -authmodulelist="authuserdb authpam authshadow authldap authmysql authcustom" +authmodulelist="authpam" courier itself has just plain had gdbm as a dependancy since before I inherited it. probably was related to this kind of issue. when neither database use flag i selected, I see no reason to not just let it try to find whatever it can, and with both selected choose gdbm and announce the situation. expect has been removed as a dependancy from courier and a message posted if expect doesn't exist stating that changing an authpam password from the webmail interface is the only thing that won't work unless it gets rebuilt after installing expect. Unless there is reason to change that, I'd prefer to keep that as it is.
the differrent in the authmodulelist is because of the USE flag, not because of the db4 patch. # emerge courier-authlib -vp These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-libs/courier-authlib-0.50.20041116 +berkdb -debug -gdbm -ldap +mysql +pam -postgres 0 kB [1] # grep authmodulelist /etc/courier-imap/authlib/authdaemonrc ##NAME: authmodulelist:2 #authmodulelist="authuserdb authpam authmysql authcustom" <--this is the original one, commented. authmodulelist="authmysql" ##NAME: authmodulelistorig:2 authmodulelistorig="authuserdb authpam authmysql authcustom" The db4 patch have nothing to do with choose between "berkdb" and "gdbm" flag. courier-authlib build will fail if you have USE="berkdb -gdbm" and have db3, db4, db4.1 db4.2 installed (and Gentoo support all of them.) WRT expect, below is the snip from INSTALL: * The "expect" command. expect is usually included with most systems. Expect can be downloaded from http://expect.nist.gov/ if it's not installed on your system. This utility is used to change system login passwords, by scripting the passwd command. If you do not have expect installed you will not be able to change system login passwords. However non-system authentication modules (LDAP, PostgreSQL, and others) will work. IMO, remove expect will affect for those have srcipt that change the system login passwords. I myself dont need it so it's up to you. Thanks.
Think I got everything that we covered in our other discussions. It does a graceful upgrade from auth settings of mail-mta/courier. I'm open to making it try to pull in configs from the other courier-* packages if its not finding them as it is now.