From owner-freebsd-ports Thu Nov 16 12:20: 8 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8C7A737B4C5 for ; Thu, 16 Nov 2000 12:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA43445; Thu, 16 Nov 2000 12:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id B383A37B4FE for ; Thu, 16 Nov 2000 12:12:17 -0800 (PST) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.11.1/8.11.1) with ESMTP id eAGKCHo68998 for ; Thu, 16 Nov 2000 12:12:17 -0800 (PST) (envelope-from nsayer@medusa.kfu.com) Received: (from nsayer@localhost) by medusa.kfu.com (8.11.0/8.11.0) id eAGKCG876326; Thu, 16 Nov 2000 12:12:16 -0800 (PST) (envelope-from nsayer) Message-Id: <200011162012.eAGKCG876326@medusa.kfu.com> Date: Thu, 16 Nov 2000 12:12:16 -0800 (PST) From: Nick Sayer Reply-To: nsayer@quack.kfu.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22898: cclient port should add SSL support Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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