From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 14 14:40:05 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78BEF37B401 for ; Sat, 14 Jun 2003 14:40:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D4F143FA3 for ; Sat, 14 Jun 2003 14:40:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5ELe4Up075467 for ; Sat, 14 Jun 2003 14:40:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5ELe4jc075466; Sat, 14 Jun 2003 14:40:04 -0700 (PDT) Date: Sat, 14 Jun 2003 14:40:04 -0700 (PDT) Message-Id: <200306142140.h5ELe4jc075466@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Paulius Bulotas Subject: Re: ports/53141: mod_php4 does not work with IMAP w/o SSL X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paulius Bulotas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 21:40:05 -0000 The following reply was made to PR ports/53141; it has been noted by GNATS. From: Paulius Bulotas To: FreeBSD-gnats-submit@FreeBSD.org Cc: sysadmin@alexdupre.com Subject: Re: ports/53141: mod_php4 does not work with IMAP w/o SSL Date: Sun, 15 Jun 2003 00:39:05 +0300 Well, the practically correct but large ;) fix for this IMO would be below. The idea is to be prepared to build cclient non-interactively with or without SSL and with existing cclient installation. --- lang/php4/Makefile Sat Jun 7 20:45:10 2003 +++ lang/php4/Makefile Sat Jun 14 21:33:46 2003 @@ -311,7 +311,20 @@ .if defined(WITH_IMAP) LIB_DEPENDS+= c-client4.8:${PORTSDIR}/mail/cclient +.if !exists(${LOCALBASE}/lib/libc-client4.so) +.if defined(WITHOUT_SSL) +CONFIGURE_ARGS+=--with-imap=${LOCALBASE} +.else CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE} +.endif +.else +WITH_IMAP_SSL!=/usr/bin/strings ${LOCALBASE}/lib/libc-client4.so | ${GREP} ssl_onceonlyinit || ${TRUE} +.if defined(WITH_IMAP_SSL) && empty(WITH_IMAP_SSL) +CONFIGURE_ARGS+=--with-imap=${LOCALBASE} +.else +CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE} +.endif +.endif .endif .if defined(WITH_INTERBASE)