Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 12:12:16 -0800 (PST)
From:      Nick Sayer <nsayer@quack.kfu.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22898: cclient port should add SSL support
Message-ID:  <200011162012.eAGKCG876326@medusa.kfu.com>

next in thread | raw e-mail | index | archive | help

>Number:         22898
>Category:       ports
>Synopsis:       cclient port should add SSL support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 16 12:20:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Nick Sayer
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Just me
>Environment:

ports/mail/cclient

>Description:

Splitting out the c-client library broke the pine4+ssl port. That's
ok, though, since adding ssl support to the cclient port would allow
all of its users to use the ssl support.

The only interesting gotcha is that after this patch all cclient users
must be compiled with -lssl -lcrypto _unless_ ADDSSL=no was done at
the time cclient was built. I am not sure quite what to do about that.

>How-To-Repeat:

>Fix:

Apply this patch, then make makesum.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/cclient/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	2000/11/01 14:23:09	1.3
+++ Makefile	2000/11/16 20:03:00
@@ -18,6 +18,13 @@
 
 WRKSRC=		${WRKDIR}/imap-${PORTVERSION}
 
+ADDSSL?=	yes
+.if ${ADDSSL} != "no"
+PATCH_SITES=	http://www.kfu.com/~nsayer/encryption/software/
+PATCHFILES=	pine4+ssl-1.4.tar.gz
+USE_OPENSSL=	yes
+.endif
+
 INSTALLS_SHLIB=	yes
 PAMAUTH?=	yes
 .if ${PAMAUTH} != "no"
@@ -26,6 +33,10 @@
 ALL_TARGET=	bsf
 .endif
 
+.if ${ADDSSL} != "no"
+ALL_TARGET+=	EXTRAAUTHENTICATORS=ssl
+.endif
+
 SHLIBBASE=	c-client4
 SHLIBMAJ=	7
 SHLIBNAME=	lib${SHLIBBASE}.so.${SHLIBMAJ}
@@ -38,11 +49,21 @@
 SHLIBNAME=	lib${SHLIBBASE}.so.${SHLIBMAJ}.0
 .endif
 
+.if ${ADDSSL} != "no"
+post-extract:
+	( cd ${WRKSRC} ; tar xfz ${DISTDIR}/${PATCHFILES} )
+	( cd ${WRKSRC} ; mv imap/src/osdep/unix/* src/osdep/unix )
+.endif
+
 post-configure:
 	@${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}"
 .if ${PAMAUTH} != "no"
 	@${ECHO_MSG} ">> Building with PAM support"
 	@${ECHO_MSG} ">> You can disable PAM support building with \"PAMAUTH=no\""
+.endif
+.if ${ADDSSL} != "no"
+	@${ECHO_MSG} ">> Building with SSL support"
+	@${ECHO_MSG} ">> You can disable SSL support building with \"ADDSSL=no\""
 .endif
 
 HEADERS=	dummy.h env.h env_unix.h fdstring.h flstring.h fs.h ftl.h \

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011162012.eAGKCG876326>