Subject: Re: imap-uw package and SSL
To: Frederick Bruckman <fredb@immanent.net>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 08/13/2002 22:50:25
[ On Tuesday, August 13, 2002 at 20:11:35 (-0500), Frederick Bruckman wrote: ]
> Subject: Re: imap-uw package and SSL
>
> I see. Does this work for you?
>
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/mail/imap-uw/Makefile,v
> retrieving revision 1.42
> diff -u -r1.42 Makefile
> --- Makefile 2002/07/28 05:38:46 1.42
> +++ Makefile 2002/08/14 01:08:58
> @@ -61,7 +61,7 @@
> ALL_TARGET+= EXTRALDFLAGS="${LDFLAGS}"
> .if defined(IMAP_UW_NO_CLEARTEXT) && ${IMAP_UW_NO_CLEARTEXT} == "YES"
> ALL_TARGET+= SSLTYPE="nopwd"
> -.else
> +.elif !defined(IMAP_UW_NO_SSL) || ${IMAP_UW_NO_SSL} != "YES"
> ALL_TARGET+= SPECIALAUTHENTICATORS="ssl"
> ALL_TARGET+= SSLTYPE="unix"
> .endif
> @@ -116,5 +116,7 @@
> ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOC_DIR}
> ${CHMOD} -R a=rX ${DOC_DIR}
>
> +.if !defined(IMAP_UW_NO_SSL) || ${IMAP_UW_NO_SSL} != "YES"
> .include "../../security/openssl/buildlink.mk"
> +.endif
> .include "../../mk/bsd.pkg.mk"
Recently I posted on tech-pkg about having better support for enabling
and disabling SSL support in pkgsrc, primarily so that I could support
hosts with no SSL at all, and what I've implemented is indeed very
similar to what your patch does, though with somewhat the opposite
logic. At the time I posted it didn't seem anyone was interested in
such a feature for pkgsrc.....
For example for mail/imap_uw I have made these changes (this is a messy
hand-hacked patch that avoids including the confusing stuff I've been
doing to support LDSTATIC)
***************
*** ???,??? ****
--- ???,???----
ALL_TARGET= neb
.endif
+ IMAP_UW_USE_SSL?= YES
+
***************
*** ???,??? ****
ALL_TARGET+= EXTRALDFLAGS="${LDFLAGS}"
! .if defined(IMAP_UW_NO_CLEARTEXT) && ${IMAP_UW_NO_CLEARTEXT} == "YES"
ALL_TARGET+= SSLTYPE="nopwd"
! .else
ALL_TARGET+= SPECIALAUTHENTICATORS="ssl"
ALL_TARGET+= SSLTYPE="unix"
.endif
--- ???,??? ----
ALL_TARGET+= EXTRALDFLAGS="${LDFLAGS}"
! .if defined(IMAP_UW_USE_SSL) && ${IMAP_UW_USE_SSL} == "YES"
! . if defined(IMAP_UW_NO_CLEARTEXT) && ${IMAP_UW_NO_CLEARTEXT} == "YES"
ALL_TARGET+= SSLTYPE="nopwd"
! . else
ALL_TARGET+= SPECIALAUTHENTICATORS="ssl"
ALL_TARGET+= SSLTYPE="unix"
+ . endif
.endif
***************
*** 116,120 ****
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOC_DIR}
${CHMOD} -R a=rX ${DOC_DIR}
! .include "../../security/openssl/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
--- 140,146 ----
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOC_DIR}
${CHMOD} -R a=rX ${DOC_DIR}
! .if defined(IMAP_UW_USE_SSL) && ${IMAP_UW_USE_SSL} == "YES"
! . include "../../security/openssl/buildlink.mk"
! .endif
.include "../../mk/bsd.pkg.mk"
And then in mk/bsd.pkg.defaults.mk I have:
***************
*** 380,385 ****
--- 392,402 ----
# Possible: Any local directory
# Default: none
+ DEFAULT_USE_SSL?= YES
+ # Used to specify generic SSL support for a number of packages.
+ # Possible: YES, NO
+ # Default: YES
+
#
# Definitions used only in the packages collection
#
***************
*** 616,621 ****
--- 633,644 ----
# Possible: not defined, YES
# Default: not defined
+ IMAP_UW_USE_SSL?= ${DEFAULT_USE_SSL}
+ # Enable SSL in mail/imap_uw (and mail/pine) (for pop and imap connections)
+ #
+ # Possible: YES, NO
+ # Default: see DEFAULT_USE_SSL
+
IMDICTDIR?= /var/dict
# Specify the directory for input method's dictionary installation.
# Possible: any valid location
--
Greg A. Woods
+1 416 218-0098; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>