Subject: pkg/12093: [jdarrow] php4-ldap pkg submission - PHP4 module for LDAP access
To: None <gnats-bugs@gnats.netbsd.org>
From: None <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 01/31/2001 16:22:22
>Number:         12093
>Category:       pkg
>Synopsis:       [jdarrow] php4-ldap pkg submission - PHP4 module for LDAP access
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 31 16:25:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Darrow
>Release:        pkgsrc 2001-01-30, NetBSD 1.5
>Organization:
Computing Services, Wheaton College, Wheaton, IL
>Environment:
System: NetBSD jdarrowpiii.wheaton.edu 1.5 NetBSD 1.5 (JDARROW) #0: Mon Nov 20 12:31:08 CST 2000     jdarrow@jdarrowpiii.wheaton.edu:/var/src/sys/arch/i386/compile/JDARROW i386


>Description:
After finding that SquirrelMail could not look up addresses in our LDAP
server despite having the LDAP info configured in, I looked back and saw
that php4 had compiled without ldap support.  Not seeing a www/php4-ldap
package (like that for php3), I built one myself, basing it off of
the Makefile from www/php4-mysql and the package info from www/php3-ldap.

Tested by using the SquirrelMail address book to lookup an address from
our ldap server.

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	www/php4-ldap
#	www/php4-ldap/pkg
#	www/php4-ldap/pkg/COMMENT
#	www/php4-ldap/pkg/DESCR
#	www/php4-ldap/Makefile
#
echo c - www/php4-ldap
mkdir -p www/php4-ldap > /dev/null 2>&1
echo c - www/php4-ldap/pkg
mkdir -p www/php4-ldap/pkg > /dev/null 2>&1
echo x - www/php4-ldap/pkg/COMMENT
sed 's/^X//' >www/php4-ldap/pkg/COMMENT << 'END-of-www/php4-ldap/pkg/COMMENT'
XPHP4 extension for LDAP databases
END-of-www/php4-ldap/pkg/COMMENT
echo x - www/php4-ldap/pkg/DESCR
sed 's/^X//' >www/php4-ldap/pkg/DESCR << 'END-of-www/php4-ldap/pkg/DESCR'
XPHP is a programming language designed to be embedded into web pages.
XThis module provides access to LDAP databases.
END-of-www/php4-ldap/pkg/DESCR
echo x - www/php4-ldap/Makefile
sed 's/^X//' >www/php4-ldap/Makefile << 'END-of-www/php4-ldap/Makefile'
X# $NetBSD: Makefile,v 1.2 2000/12/30 21:30:18 hubertf Exp $
X
X.include "../../www/php4/Makefile.module"
X
XMODNAME=		ldap
XCATEGORIES+=		databases
X
XDEPENDS+=		openldap-1.2.*:../../databases/openldap
X
XCONFIGURE_ARGS+=	--with-${MODNAME}=shared,${PREFIX}
X
X.include "../../mk/bsd.pkg.mk"
END-of-www/php4-ldap/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted: