diff options
author | jlam <jlam> | 2002-01-25 00:18:59 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-01-25 00:18:59 +0000 |
commit | bf2975575b92c93ea1023dcc8824929271c22b48 (patch) | |
tree | 27a7aa620923af60b6048f4f8d7878304da57a76 /mail | |
parent | 49be6eaca3d9488033d0316688a411e1290aa1ef (diff) | |
download | pkgsrc-bf2975575b92c93ea1023dcc8824929271c22b48.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')
-rw-r--r-- | mail/sqwebmail/Makefile | 8 | ||||
-rw-r--r-- | mail/sqwebmail/distinfo | 3 | ||||
-rw-r--r-- | mail/sqwebmail/patches/patch-ae | 10 |
3 files changed, 19 insertions, 2 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 \ diff --git a/mail/sqwebmail/distinfo b/mail/sqwebmail/distinfo index 8090185f550..caf69539592 100644 --- a/mail/sqwebmail/distinfo +++ b/mail/sqwebmail/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $ +$NetBSD: distinfo,v 1.2 2002/01/25 00:18:59 jlam Exp $ SHA1 (sqwebmail-3.3.1.tar.gz) = ce1650cc37d8f7abbb056d6340f495598ebf3885 Size (sqwebmail-3.3.1.tar.gz) = 1482655 bytes @@ -6,3 +6,4 @@ SHA1 (patch-aa) = 8c679457a3fa835f4300b78214fd799357cfa6d5 SHA1 (patch-ab) = 7c91a1a6f138512c66a2820ad30fb8744198125f SHA1 (patch-ac) = f85ae9f2f56c1885180ae86b156ff508aa2491c4 SHA1 (patch-ad) = 7fd765a8ed9c178de5f1d0a90bc8abec3e469a57 +SHA1 (patch-ae) = 24028984cdb9879aa3ba9228a9e1ee71612cf589 diff --git a/mail/sqwebmail/patches/patch-ae b/mail/sqwebmail/patches/patch-ae new file mode 100644 index 00000000000..ed43ad94307 --- /dev/null +++ b/mail/sqwebmail/patches/patch-ae @@ -0,0 +1,10 @@ +$NetBSD: patch-ae,v 1.1 2002/01/25 00:19:00 jlam Exp $ + +--- ldapaddressbook/ldapsearch.in.orig Sat Jun 3 01:40:27 2000 ++++ ldapaddressbook/ldapsearch.in +@@ -15,4 +15,4 @@ + # This example sets the search timeout to 60 seconds, and a maximum of 20 + # hits returned. + +-exec @ldapsearch@ -l 60 -z 20 "$@" ++exec @ldapsearch@ -l 60 -z 20 "$@" | @SED@ -e "s,^\([^ ]*\): ,\1=," |