summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorschnoebe <schnoebe>2016-05-29 17:24:48 +0000
committerschnoebe <schnoebe>2016-05-29 17:24:48 +0000
commit3235be2df4968b8864767dacf1585b9f39c053f6 (patch)
tree6d0f433a4257fe891f2d5e0fb206ef02f9eccb25 /chat
parentad80c5e2e48ab794f9cda4bcbb1a9179818c0905 (diff)
downloadpkgsrc-3235be2df4968b8864767dacf1585b9f39c053f6.tar.gz
Update to support a websocket option.
websocket support permits easy XMPP communication with a browser based XMPP client.
Diffstat (limited to 'chat')
-rw-r--r--chat/jabberd2/Makefile3
-rw-r--r--chat/jabberd2/options.mk18
2 files changed, 12 insertions, 9 deletions
diff --git a/chat/jabberd2/Makefile b/chat/jabberd2/Makefile
index 51652e6dea2..e38f7e99934 100644
--- a/chat/jabberd2/Makefile
+++ b/chat/jabberd2/Makefile
@@ -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 --git a/chat/jabberd2/options.mk b/chat/jabberd2/options.mk
index 0458925b7e7..3f345cd7bf2 100644
--- a/chat/jabberd2/options.mk
+++ b/chat/jabberd2/options.mk
@@ -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 @@ PKG_OPTIONS_GROUP.storage+= storage-sqlite storage-db
# 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=poll
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