Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 11:45:16 +0200 (CEST)
From:      Mathieu Arnold <m@absolight.fr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dirk@FreeBSD.org
Subject:   ports/38238: Adding cyrus imap support to php4/mod_php4
Message-ID:  <20020518094516.5D13324735@yop.absolight.net>

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

>Number:         38238
>Category:       ports
>Synopsis:       Adding cyrus imap support to php4/mod_php4
>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:   Sat May 18 02:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mathieu Arnold
>Release:        FreeBSD 4.5-RELEASE-p4 i386
>Organization:
Absolight 
>Environment:
System: FreeBSD yop.absolight.net 4.5-RELEASE-p4 FreeBSD 4.5-RELEASE-p4 #1: Mon May 6 17:15:01 CEST 2002 root@yop.absolight.net:/usr/obj/usr/src/sys/YOP i386


>Description:
Adding cyrus imap support to php4/mod_php4

>How-To-Repeat:
>Fix:

diff -ruN mod_php4.vanilla/files/patch-ext_cyrus_config.m4 mod_php4/files/patch-ext_cyrus_config.m4
--- mod_php4.vanilla/files/patch-ext_cyrus_config.m4	Thu Jan  1 01:00:00 1970
+++ mod_php4/files/patch-ext_cyrus_config.m4	Sat May 18 11:30:22 2002
@@ -0,0 +1,11 @@
+--- ext/cyrus/config.m4	Sat May 18 11:28:42 2002
++++ ext/cyrus/config.m4~	Sat May 18 11:28:32 2002
+@@ -16,7 +16,7 @@
+ 			PHP_ADD_LIBRARY_WITH_PATH(cyrus, $i/lib, CYRUS_SHARED_LIBADD)
+ 			found_cyrus=yes
+ 		fi
+-		if test -r $i/include/sasl.h && test "$found_sasl" = "no"; then
++		if test -r $i/include/sasl/sasl.h && test "$found_sasl" = "no"; then
+ 			PHP_ADD_INCLUDE($i/include)
+ 			PHP_SUBST(SASL_SHARED_LIBADD)
+ 			PHP_ADD_LIBRARY_WITH_PATH(sasl, $i/lib, SASL_SHARED_LIBADD)
diff -ruN mod_php4.vanilla/scripts/configure.php mod_php4/scripts/configure.php
--- mod_php4.vanilla/scripts/configure.php	Sat May 18 09:57:21 2002
+++ mod_php4/scripts/configure.php	Sat May 18 11:41:35 2002
@@ -43,6 +43,7 @@
 DOMXML		"DOM support" OFF \
 FTP		"File Transfer Protocol support" OFF \
 CURL		"CURL support" OFF \
+cyrus		"Cyrus IMAP support" OFF \
 gettext		"gettext library support" OFF \
 iconv		"iconv support" OFF \
 pspell		"pspell support" OFF \
@@ -292,6 +293,11 @@
 			echo "CONFIGURE_ARGS+=--with-curl=\${LOCALBASE}"
 			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libcurl.a:\${PORTSDIR}/ftp/curl"
                         ;;
+		\"cyrus\")
+			echo "CONFIGURE_ARGS+=--with-cyrus"
+			echo "BUILD_DEPENDS+=	\${LOCALBASE}/lib/libcyrus.a:\${PORTSDIR}/mail/cyrus-imapd"
+			echo "CFLAGS+=-I\${LOCALBASE}/include/sasl"
+			;;
 		\"gettext\")
 			echo "LIB_DEPENDS+=	intl.2:\${PORTSDIR}/devel/gettext"
 			echo "CONFIGURE_ARGS+=--with-gettext=\${LOCALBASE}"


>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?20020518094516.5D13324735>