On Fri, Oct 25, 2002 at 08:11:45AM -0400, Sam Varshavchik wrote:
> > Unless couriertls is considered a more "experimental" part of Courier than
> > the rest of it, I am not sure why the path to it is put a configuration
> > variable in the first place.
> > 
> > Why not just put
> > 
> > COURIERTLS=@bindir@/couriertls
> 
> Oh, I see...
> 
> You can't use @bindir@ directly due to the simple fact that it's default 
> value is, literally,  ${exec_prefix}/bin

I see. But it does work for @bindir@/pop3d for example:

        @SETENV@ - @SHELL@ -c " set -a ; . @sysconfdir@/pop3d ; \
                                . @sysconfdir@/pop3d-ssl ; \
                TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
                export TLS_PROTOCOL ;
                @libexecdir@/couriertcpd -address=$ADDRESS \
                        -stderrlogger=@libexecdir@/courierlogger \
                        -stderrloggername=pop3d \
                        -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
                        -pid=$PIDFILE $TCPDOPTS \
                        $PORT @sbindir@/pop3login $LIBAUTHMODULES \
     here >>>>>>                @bindir@/pop3d Maildir"

which becomes ${exec_prefix}/bin/pop3d, but exec_prefix is expanded in the
quoted string before the shell is called.

My suggestion before was wrong - setting COURIERTLS at the top of the .rc
script won't work, because it still isn't inherited by the cleaned-up
environment which @SETENV@ produces.

But ISTM that the knowledge of where couriertls lives belongs in the .rc
script (just as with the other components - couriertcpd, pop3login, pop3d
etc) rather than in a config file.

As long as the definition comes _within_ the quoted shell command line I
think it should work: i.e.

[pop3d.rc]

        @SETENV@ - @SHELL@ -c " set -a ; . @sysconfdir@/pop3d ; \
                                . @sysconfdir@/pop3d-ssl ; \
                TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
                export TLS_PROTOCOL ;
    >>>         COURIERTLS=@bindir@/couriertls ; export COURIERTLS ; \

In the case of pop3d-ssl.rc and imapd-ssl.rc, I think you should just be
able to replace $COURIERTLS with @bindir@/couriertls

Cheers,

Brian.


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to