Bernd Ahlers <[EMAIL PROTECTED]> writes:

> Attached is an update to gnupg-1.4.3. Please test and comment.

Any reason to not add an ldap flavor?

I know that the configure args disable ldap by default but it
seems to only takes a --enable-ldap tacked onto the end to
counter that.

I did something like this diff in my current local ports
collection, adding PFRAG.ldap with one line:

libexec/gnupg/gpgkeys_ldap

-- 
deanna at sdf

? pkg/PFRAG.ldap
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/gnupg/Makefile,v
retrieving revision 1.56
diff -u -r1.56 Makefile
--- Makefile	10 Mar 2006 20:57:50 -0000	1.56
+++ Makefile	4 Apr 2006 03:11:16 -0000
@@ -43,7 +43,7 @@
 MAKE_FLAGS=	LIBINTL="-L${LOCALBASE}/lib -lintl -liconv" \
 		LIBICONV="-L${LOCALBASE}/lib -liconv"
 
-FLAVORS=	idea card
+FLAVORS=	idea card ldap
 FLAVOR?=
 
 .if ${FLAVOR:L:Midea}
@@ -63,6 +63,10 @@
 CONFIGURE_ARGS+=	--disable-card-support --without-libusb
 .endif
 
+.if ${FLAVOR:L:Mldap}
+LIB_DEPENDS+=		ldap.2,lber:openldap-client-2.*:databases/openldap
+CONFIGURE_ARGS+=  --with-ldap=/usr/local --enable-ldap
+.endif
 
 GNUPGDOCFILES=	README AUTHORS COPYING THANKS TODO BUGS \
 		doc/DETAILS doc/FAQ doc/OpenPGP doc/HACKING doc/faq.html
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/gnupg/pkg/PLIST,v
retrieving revision 1.18
diff -u -r1.18 PLIST
--- pkg/PLIST	22 Feb 2006 12:30:52 -0000	1.18
+++ pkg/PLIST	4 Apr 2006 03:11:16 -0000
@@ -54,3 +54,4 @@
 share/locale/tr/LC_MESSAGES/gnupg.mo
 share/locale/zh_CN/LC_MESSAGES/gnupg.mo
 share/locale/zh_TW/LC_MESSAGES/gnupg.mo
+%%ldap%%

Reply via email to