Subject: ap-php4
To: None <jdolecek@netbsd.org>
From: Ben Collver <collver@softhome.net>
List: tech-pkg
Date: 11/26/2000 20:01:59
Hi,

I am installing IMP on my system for web-based mail.  It requires PHP4 with
support for postgres, imap, and ldap.

Are there PHP4 modules for postgres, imap and ldap?  In the Makefile I see:
# Here we configure only for what NetBSD ships.  We add the rest via
modules.

I have installed imap-uw-4.7c6 from the packages collection.
To make PHP4 work, I:

*added patches/patch-aa
--- ext/imap/config.m4.orig     Sun Nov 26 19:27:22 2000
+++ ext/imap/config.m4  Sun Nov 26 19:27:36 2000
@@ -39,7 +39,7 @@
       ln -s "$IMAP_DIR/lib/c-client.a" "$IMAP_DIR/lib/libc-client.a"
>/dev/null
 2>&1
     fi

-    for lib in imap c-client4 c-client; do
+    for lib in imapuw imap c-client4 c-client; do
       IMAP_LIB=$lib
       IMAP_LIB_CHK(lib)
       IMAP_LIB_CHK(c-client)

*modified Makefile
CONFIGURE_ARGS+=--with-system-regex --without-gd \
                --with-gdbm=${PREFIX} \
                --with-yp --with-zlib --with-dbase --with-filepro \
                --with-config-file-path=${PREFIX}/etc           \
                --with-exec-dir=${PREFIX}/libexec/php4          \
                --enable-track-vars --enable-force-cgi-redirect \
                --enable-discard-path --enable-memory-limit     \
                --enable-sysvsem --enable-sysvshm               \
                --enable-wddx --without-mysql                   \
-               --with-apxs=${LOCALBASE}/sbin/apxs
+               --with-apxs=${LOCALBASE}/sbin/apxs              \
+               --with-pgsql=${LOCALBASE}                       \
+               --with-ldap=${LOCALBASE}                        \
+               --with-imap=${LOCALBASE}
+
+pre-configure:
+        (cd ${WRKSRC}; autoconf)

Ben
-- 
Quidquid latine dictum sit, altum viditur.