ports/53141: mod_php4 does not work with IMAP w/o SSL
Paulius Bulotas
paulius at kaktusas.org
Sat Jun 14 21:40:05 UTC 2003
The following reply was made to PR ports/53141; it has been noted by GNATS.
From: Paulius Bulotas <paulius at kaktusas.org>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc: sysadmin at 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)
More information about the freebsd-ports-bugs
mailing list