Steve Shockley writes: 

> Ah, that makes sense, I'm just not extremely familiar with the sub-packages. 
> 
> The maintainer of the OpenBSD Courier-IMAP port (Anil Madhavapeddy) has
> started moving the authentication modules into "pseudo-flavor" subpackages
> so there won't be dozens of flavored versions of binary packages.  Is there
> any reason to not do this with the authentication modules for Courier-MTA?

The authentication modules are already set up to accomodate a simple level 
of compartmentalization.  The authdaemond.ldap, authdaemond.mysql, and 
authdaemond.pgsql should simply be rolled into a subpackage.  If they are 
not installed the authdaemond script falls back to running plain. 

This is, in fact, exactly how my RPM script packages it up. 

> What about other parts, such as fax?

The courierfax binary must be present, otherwise Courier won't start.  
However the courierfax webadmin config scripts, and all the scripts in the 
faxmail directory can be rolled into a subpackage.  As long as 
mgetty+sendfax, and netpbm-tools are installed in /usr/bin the configure 
script will assume that they can be found there, so mgetty+sendfax and 
netpbm-tools do not need to be present at build time, and the courier-fax 
subpackage can have a declared dependency on both mgetty+sendfax, and 
netpbm-tools. 

The imap, pop3, and the webmail server can be rolled into a subpackage that 
includes the binaries, and the rc startup/shutdown script.  Ditto for 
webadmin. 

You can also put the authstart setuid wrapper into a subpackage.  It's a 
suid wrapper used for authenticated ESMTP.  If it's not installed everything 
still works, except that ESMTP authentication is disabled. 

My RPM build script creates twelve subpackages (thirteen subpackages on Red 
Hat 7.2 and earlier). Only the base package needs to be installed, which 
gets you a bare-bones SMTP relay.  Installing various subpackages gradually 
enables more stuff.  The subpackages are mostly plain installs, with no 
postinstall configuration.  There are, though, some preuninstall scripts 
that attempt to shut down the component before it's actually uninstalled. 

-- 
Sam 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to