diff options
author | jlam <jlam@pkgsrc.org> | 2002-01-25 00:18:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-01-25 00:18:59 +0000 |
commit | 138e99980f1c9cf0a6839d897ad8a73d16ff50e9 (patch) | |
tree | 27a7aa620923af60b6048f4f8d7878304da57a76 /mail/sqwebmail/Makefile | |
parent | 28d646d2f576d56cc0eaf1f14f82ee78993de880 (diff) | |
download | pkgsrc-138e99980f1c9cf0a6839d897ad8a73d16ff50e9.tar.gz |
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.
Diffstat (limited to 'mail/sqwebmail/Makefile')
-rw-r--r-- | mail/sqwebmail/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 \ |