David Terrell <[EMAIL PROTECTED]> writes:
> On Sun, Apr 09, 2006 at 12:03:24PM +0000, Deanna Phillips wrote:
>> 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
>
> If the rest of the compile is the same, perhaps a subpackage would
> be more appropriate?
Yes, the nice handholders on freenode explained to me why this
is a better way to do it. :)
How's this?
--
deanna at sdf
? gnupg-ldap.diff
? pkg/DESCR-ldap
? pkg/PLIST-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 9 Apr 2006 18:05:17 -0000
@@ -1,6 +1,7 @@
# $OpenBSD: Makefile,v 1.56 2006/03/10 20:57:50 steven Exp $
COMMENT= "GNU privacy guard - a free PGP replacement"
+COMMENT-ldap= "GNU privacy guard - a free PGP replacement with LDAP keyserver support"
DISTNAME= gnupg-1.4.2.2
CATEGORIES= security
@@ -46,6 +47,9 @@
FLAVORS= idea card
FLAVOR?=
+MULTI_PACKAGES=-ldap
+SUBPACKAGE?=
+
.if ${FLAVOR:L:Midea}
PERMIT_PACKAGE_CDROM= "a patented algorithm"
PERMIT_DISTFILES_CDROM= "a patented algorithm"
@@ -63,6 +67,10 @@
CONFIGURE_ARGS+= --disable-card-support --without-libusb
.endif
+.if ${SUBPACKAGE} == "-ldap"
+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
GnuPG is a complete and free replacement for PGP. Because it does
not use IDEA or RSA it can be used without any restrictions. GnuPG
is nearly in compliance with RFC2440 (OpenPGP).
This package includes LDAP keyserver support.
@comment $OpenBSD$
bin/gpg
bin/gpgsplit
bin/gpgv
@info info/gpg.info
@info info/gpgv.info
libexec/gnupg/
libexec/gnupg/gpgkeys_finger
libexec/gnupg/gpgkeys_hkp
libexec/gnupg/gpgkeys_http
libexec/gnupg/gpgkeys_ldap
@man man/man1/gpg.1
@man man/man1/gpg.ru.1
@man man/man1/gpgv.1
@man man/man7/gnupg.7
share/doc/gnupg/
share/doc/gnupg/AUTHORS
share/doc/gnupg/BUGS
share/doc/gnupg/COPYING
share/doc/gnupg/DETAILS
share/doc/gnupg/FAQ
share/doc/gnupg/HACKING
share/doc/gnupg/OpenPGP
share/doc/gnupg/README
share/doc/gnupg/THANKS
share/doc/gnupg/TODO
share/doc/gnupg/faq.html
share/gnupg/
share/gnupg/options.skel
share/locale/
share/locale/be/
share/locale/be/LC_MESSAGES/
share/locale/be/LC_MESSAGES/gnupg.mo
share/locale/ca/
share/locale/ca/LC_MESSAGES/
share/locale/ca/LC_MESSAGES/gnupg.mo
share/locale/cs/
share/locale/cs/LC_MESSAGES/
share/locale/cs/LC_MESSAGES/gnupg.mo
share/locale/da/
share/locale/da/LC_MESSAGES/
share/locale/da/LC_MESSAGES/gnupg.mo
share/locale/de/
share/locale/de/LC_MESSAGES/
share/locale/de/LC_MESSAGES/gnupg.mo
share/locale/el/
share/locale/el/LC_MESSAGES/
share/locale/el/LC_MESSAGES/gnupg.mo
share/locale/[EMAIL PROTECTED]/
share/locale/[EMAIL PROTECTED]/LC_MESSAGES/
share/locale/[EMAIL PROTECTED]/LC_MESSAGES/gnupg.mo
share/locale/[EMAIL PROTECTED]/
share/locale/[EMAIL PROTECTED]/LC_MESSAGES/
share/locale/[EMAIL PROTECTED]/LC_MESSAGES/gnupg.mo
share/locale/eo/
share/locale/eo/LC_MESSAGES/
share/locale/eo/LC_MESSAGES/gnupg.mo
share/locale/es/
share/locale/es/LC_MESSAGES/
share/locale/es/LC_MESSAGES/gnupg.mo
share/locale/et/
share/locale/et/LC_MESSAGES/
share/locale/et/LC_MESSAGES/gnupg.mo
share/locale/fi/
share/locale/fi/LC_MESSAGES/
share/locale/fi/LC_MESSAGES/gnupg.mo
share/locale/fr/
share/locale/fr/LC_MESSAGES/
share/locale/fr/LC_MESSAGES/gnupg.mo
share/locale/gl/
share/locale/gl/LC_MESSAGES/
share/locale/gl/LC_MESSAGES/gnupg.mo
share/locale/hu/
share/locale/hu/LC_MESSAGES/
share/locale/hu/LC_MESSAGES/gnupg.mo
share/locale/id/
share/locale/id/LC_MESSAGES/
share/locale/id/LC_MESSAGES/gnupg.mo
share/locale/it/
share/locale/it/LC_MESSAGES/
share/locale/it/LC_MESSAGES/gnupg.mo
share/locale/ja/
share/locale/ja/LC_MESSAGES/
share/locale/ja/LC_MESSAGES/gnupg.mo
share/locale/pl/
share/locale/pl/LC_MESSAGES/
share/locale/pl/LC_MESSAGES/gnupg.mo
share/locale/pt/
share/locale/pt/LC_MESSAGES/
share/locale/pt/LC_MESSAGES/gnupg.mo
share/locale/pt_BR/
share/locale/pt_BR/LC_MESSAGES/
share/locale/pt_BR/LC_MESSAGES/gnupg.mo
share/locale/ro/
share/locale/ro/LC_MESSAGES/
share/locale/ro/LC_MESSAGES/gnupg.mo
share/locale/ru/
share/locale/ru/LC_MESSAGES/
share/locale/ru/LC_MESSAGES/gnupg.mo
share/locale/sk/
share/locale/sk/LC_MESSAGES/
share/locale/sk/LC_MESSAGES/gnupg.mo
share/locale/sv/
share/locale/sv/LC_MESSAGES/
share/locale/sv/LC_MESSAGES/gnupg.mo
share/locale/tr/
share/locale/tr/LC_MESSAGES/
share/locale/tr/LC_MESSAGES/gnupg.mo
share/locale/zh_CN/
share/locale/zh_CN/LC_MESSAGES/
share/locale/zh_CN/LC_MESSAGES/gnupg.mo
share/locale/zh_TW/
share/locale/zh_TW/LC_MESSAGES/
share/locale/zh_TW/LC_MESSAGES/gnupg.mo