Subject: pkg/36897: libpurple supports sasl, pkgsrc could use an option
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Todd Kover <kovert@omniscient.com>
List: pkgsrc-bugs
Date: 09/04/2007 15:30:00
>Number:         36897
>Category:       pkg
>Synopsis:       libpurple supports sasl, pkgsrc could use an option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 04 15:30:00 +0000 2007
>Originator:     Todd Kover
>Release:        NetBSD 4.0_BETA2
>Organization:
Omniscient Technologies
>Environment:
		any
System: NetBSD saidin.omniscient.com 4.0_BETA2 NetBSD 4.0_BETA2 (SAIDIN) #42: Tue Jul 10 15:09:44 EDT 2007  kovert@saidin.omniscient.com:/usr/obj/4.0-stable/i386/omniscient/os/NetBSD-4.0-branch/src/sys/arch/i386/compile/SAIDIN i386
Architecture: i386
Machine: i386
>Description:
        libpurple can be copiled with SASL for use with gssapi (or other sasl)
	-aware versions of jabber (xmpp) servers
>How-To-Repeat:
	try to connect to a gssapi server, get an error
>Fix:
	this patch adds a 'sasl' pkg option which is consistant with other
        packages.  I tested pidgin, but I did not test build finch
        against it (I hit a bug in 2.1.0 that caused me to have to go
        back to a conflicting config before I thought to check it).


Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/chat/libpurple/options.mk,v
retrieving revision 1.4
diff -u -r1.4 options.mk
--- options.mk	13 Aug 2007 22:18:58 -0000	1.4
+++ options.mk	4 Sep 2007 14:11:53 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.4 2007/08/13 22:18:58 tnn Exp $
 
 PKG_OPTIONS_VAR=		PKG_OPTIONS.libpurple
-PKG_SUPPORTED_OPTIONS+=		gnutls perl tcl debug dbus
+PKG_SUPPORTED_OPTIONS+=		gnutls perl tcl debug dbus sasl
 PKG_SUGGESTED_OPTIONS+=		gnutls
 
 .include "../../mk/bsd.options.mk"
@@ -55,3 +55,10 @@
 .else
 CONFIGURE_ARGS+= --disable-debug
 .endif
+
+.if !empty(PKG_OPTIONS:Msasl)
+CONFIGURE_ARGS+=        --enable-cyrus-sasl
+.  include "../../security/cyrus-sasl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=        --disable-cyrus-sasl
+.endif