Announcing the new Courier-IMAP installation script.

Packagers: you can now create a master package of Courier-IMAP, with
the base package providing basic system authentication, and additional
add-on packages that add LDAP and MySQL authentication ability.

Here's how.

A) Build Courier-IMAP on a machine that has OpenLDAP and MySQL development
   libraries.  Choose the default option to build the authdaemon module.

B) Run make install.

C) Package everything that gets installed, EXCEPT for authdaemon.ldap and
   authdaemon.mysql, into the base package.

D) Package authdaemon.ldap into the ldap subpackage. 

E) Package authdaemon.mysql into the mysql subpackage.

F) The base package is installable on ANY system, it does not need MySQL
   or OpenLDAP.  The subpackages are installable only on those system
   that have the necessary runtime OpenLDAP and MySQL libraries.

That's it.
