pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/jabberd2 Update to support a websocket option.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4bb2b10657f9
branches:  trunk
changeset: 347760:4bb2b10657f9
user:      schnoebe <schnoebe%pkgsrc.org@localhost>
date:      Sun May 29 17:24:48 2016 +0000

description:
Update to support a websocket option.

websocket support permits easy XMPP communication with a browser based
XMPP client.

diffstat:

 chat/jabberd2/Makefile   |   3 ++-
 chat/jabberd2/options.mk |  18 ++++++++++--------
 2 files changed, 12 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r 64840b532755 -r 4bb2b10657f9 chat/jabberd2/Makefile
--- a/chat/jabberd2/Makefile    Sun May 29 15:47:38 2016 +0000
+++ b/chat/jabberd2/Makefile    Sun May 29 17:24:48 2016 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.108 2016/05/25 16:24:54 schnoebe Exp $
+# $NetBSD: Makefile,v 1.109 2016/05/29 17:24:48 schnoebe Exp $
 
 DISTNAME=      jabberd-2.4.0
+PKGREVISION=   1
 CATEGORIES=    chat
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jabberd2/jabberd2/releases/download/${DISTNAME}/}
 EXTRACT_SUFX=  .tar.xz
diff -r 64840b532755 -r 4bb2b10657f9 chat/jabberd2/options.mk
--- a/chat/jabberd2/options.mk  Sun May 29 15:47:38 2016 +0000
+++ b/chat/jabberd2/options.mk  Sun May 29 17:24:48 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.28 2016/02/09 00:21:59 schnoebe Exp $
+# $NetBSD: options.mk,v 1.29 2016/05/29 17:24:48 schnoebe Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.jabberd2
 PKG_OPTIONS_REQUIRED_GROUPS=   auth storage mio
@@ -11,11 +11,12 @@
 # mio implementations
 PKG_OPTIONS_GROUP.mio=         mio-kqueue mio-select mio-poll mio-epoll
 # debugging
+PKG_SUPPORTED_OPTIONS+=                websocket
 PKG_SUPPORTED_OPTIONS+=                debug
-# PKG_SUPPORTED_OPTIONS+=              websocket
 
 PKG_SUGGESTED_OPTIONS=         auth-sqlite storage-sqlite
 PKG_SUGGESTED_OPTIONS+=                mio-select mio-poll
+PKG_SUGGESTED_OPTIONS+=                websocket
 
 .include "../../mk/bsd.options.mk"
 
@@ -98,9 +99,10 @@
 CONFIGURE_ARGS+=       --enable-mio=select
 .endif
 
-# .if !empty(PKG_OPTIONS:Mwebsocket)
-# PLIST.ws=            yes
-# CONFIGURE_ARGS+=     --enable-websocket
-# .else
-# CONFIGURE_ARGS+=     --disable-websocket
-# .endif
+.if !empty(PKG_OPTIONS:Mwebsocket)
+PLIST.ws=              yes
+CONFIGURE_ARGS+=       --enable-websocket
+.include  "../../www/http-parser/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-websocket
+.endif



Home | Main Index | Thread Index | Old Index