From 138e99980f1c9cf0a6839d897ad8a73d16ff50e9 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 25 Jan 2002 00:18:59 +0000 Subject: Do some editting of the output returned by OpenLDAP's ldapsearch so that it can be parsed by SqWebMail. SqWebMail expects output to be of the form class1=name1 class2=name2 ... but the output from ldapsearch seems to be class1: name1 class2: name2 We massage it into the former using sed. This makes LDAP searches against ldap.bigfoot.com work properly when using the "Global Addressbook" feature of SqWebMail. --- mail/sqwebmail/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mail/sqwebmail/Makefile') diff --git a/mail/sqwebmail/Makefile b/mail/sqwebmail/Makefile index 79d7e1d6d8d..b0f154bcc8b 100644 --- a/mail/sqwebmail/Makefile +++ b/mail/sqwebmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2002/01/24 20:51:55 jlam Exp $ +# $NetBSD: Makefile,v 1.6 2002/01/25 00:18:59 jlam Exp $ DISTNAME= sqwebmail-3.3.1 CATEGORIES= www @@ -71,6 +71,12 @@ MESSAGE_SUBST+= IMAGEDIR=${IMAGEDIR} pre-configure: configure-init +post-configure: + cd ${WRKSRC}/ldapaddressbook; for file in ldapsearch; do \ + ${SED} -e "s|@SED@|${SED}|g" $${file} > $${file}.new; \ + ${MV} -f $${file}.new $${file}; \ + done + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${SYSCONFTOOL} for file in ldapaddressbook.dist; do \ -- cgit v1.2.3