diff options
author | adam <adam> | 2016-04-23 18:32:09 +0000 |
---|---|---|
committer | adam <adam> | 2016-04-23 18:32:09 +0000 |
commit | 51665d69fbc6761797eae952aad33e6a798672c5 (patch) | |
tree | b84d0c8f578c97e4e74222d3843d9b1694bb9ba6 /www | |
parent | 63d9d2c21f6111c685c2da4ad56f14e095ecf7af (diff) | |
download | pkgsrc-51665d69fbc6761797eae952aad33e6a798672c5.tar.gz |
Wslay is a WebSocket library written in C. It implements the protocol version
13 described in RFC 6455. This library offers 2 levels of API: event-based API
and frame-based low-level API. For event-based API, it is suitable for
non-blocking reactor pattern style. You can set callbacks in various events.
For frame-based API, you can send WebSocket frame directly. Wslay only supports
data transfer part of WebSocket protocol and does not perform opening handshake
in HTTP.
Wslay supports:
* Text/Binary messages.
* Automatic ping reply.
* Callback interface.
* External event loop.
Wslay does not perform any I/O operations for its own. Instead, it
offers callbacks for them. This makes Wslay independent on any I/O
frameworks, SSL, sockets, etc. This makes Wslay protable across
various platforms and the application authors can choose freely I/O
frameworks.
Diffstat (limited to 'www')
-rw-r--r-- | www/wslay/DESCR | 19 | ||||
-rw-r--r-- | www/wslay/Makefile | 32 | ||||
-rw-r--r-- | www/wslay/PLIST | 29 | ||||
-rw-r--r-- | www/wslay/buildlink3.mk | 13 | ||||
-rw-r--r-- | www/wslay/distinfo | 6 |
5 files changed, 99 insertions, 0 deletions
diff --git a/www/wslay/DESCR b/www/wslay/DESCR new file mode 100644 index 00000000000..be1a716dacb --- /dev/null +++ b/www/wslay/DESCR @@ -0,0 +1,19 @@ +Wslay is a WebSocket library written in C. It implements the protocol version +13 described in RFC 6455. This library offers 2 levels of API: event-based API +and frame-based low-level API. For event-based API, it is suitable for +non-blocking reactor pattern style. You can set callbacks in various events. +For frame-based API, you can send WebSocket frame directly. Wslay only supports +data transfer part of WebSocket protocol and does not perform opening handshake +in HTTP. + +Wslay supports: +* Text/Binary messages. +* Automatic ping reply. +* Callback interface. +* External event loop. + +Wslay does not perform any I/O operations for its own. Instead, it +offers callbacks for them. This makes Wslay independent on any I/O +frameworks, SSL, sockets, etc. This makes Wslay protable across +various platforms and the application authors can choose freely I/O +frameworks. diff --git a/www/wslay/Makefile b/www/wslay/Makefile new file mode 100644 index 00000000000..ad3fef14c1b --- /dev/null +++ b/www/wslay/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 2016/04/23 18:32:09 adam Exp $ + +DISTNAME= wslay-1.0.0 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_GITHUB:=tatsuhiro-t/} +GITHUB_TAG= release-${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/tatsuhiro-t/wslay/ +COMMENT= WebSocket library written in C +LICENSE= mit + +# parallel build fails when building man-pages with sphinx +MAKE_JOBS_SAFE= no + +BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.3.4:../../textproc/py-sphinx + +USE_LANGUAGES= c +USE_LIBTOOL= yes +USE_TOOLS+= autoconf automake pkg-config +GNU_CONFIGURE= yes +CONFIGURE_ENV+= SPHINX_BUILD=${PREFIX}/bin/sphinx-build${PYVERSSUFFIX} +PKGCONFIG_OVERRIDE+= lib/libwslay.pc.in + +pre-configure: + cd ${WRKSRC} && autoreconf -i && automake && autoconf + +# Only needed for examples +#.include "../../devel/cunit/buildlink3.mk" +#.include "../../security/nettle/buildlink3.mk" +.include "../../lang/python/pyversion.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/wslay/PLIST b/www/wslay/PLIST new file mode 100644 index 00000000000..78c974b0269 --- /dev/null +++ b/www/wslay/PLIST @@ -0,0 +1,29 @@ +@comment $NetBSD: PLIST,v 1.1 2016/04/23 18:32:09 adam Exp $ +include/wslay/wslay.h +include/wslay/wslayver.h +lib/libwslay.la +lib/pkgconfig/libwslay.pc +man/man3/wslay_event_config_set_callbacks.3 +man/man3/wslay_event_config_set_max_recv_msg_length.3 +man/man3/wslay_event_config_set_no_buffering.3 +man/man3/wslay_event_context_client_init.3 +man/man3/wslay_event_context_free.3 +man/man3/wslay_event_context_server_init.3 +man/man3/wslay_event_get_close_received.3 +man/man3/wslay_event_get_close_sent.3 +man/man3/wslay_event_get_queued_msg_count.3 +man/man3/wslay_event_get_queued_msg_length.3 +man/man3/wslay_event_get_read_enabled.3 +man/man3/wslay_event_get_status_code_received.3 +man/man3/wslay_event_get_status_code_sent.3 +man/man3/wslay_event_get_write_enabled.3 +man/man3/wslay_event_queue_close.3 +man/man3/wslay_event_queue_fragmented_msg.3 +man/man3/wslay_event_queue_msg.3 +man/man3/wslay_event_recv.3 +man/man3/wslay_event_send.3 +man/man3/wslay_event_set_error.3 +man/man3/wslay_event_shutdown_read.3 +man/man3/wslay_event_shutdown_write.3 +man/man3/wslay_event_want_read.3 +man/man3/wslay_event_want_write.3 diff --git a/www/wslay/buildlink3.mk b/www/wslay/buildlink3.mk new file mode 100644 index 00000000000..abf751316fa --- /dev/null +++ b/www/wslay/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/04/23 18:32:09 adam Exp $ + +BUILDLINK_TREE+= wslay + +.if !defined(WSLAY_BUILDLINK3_MK) +WSLAY_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.wslay+= wslay>=1.0.0 +BUILDLINK_PKGSRCDIR.wslay?= ../../www/wslay + +.endif # WSLAY_BUILDLINK3_MK + +BUILDLINK_TREE+= -wslay diff --git a/www/wslay/distinfo b/www/wslay/distinfo new file mode 100644 index 00000000000..bbb52656a7d --- /dev/null +++ b/www/wslay/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/04/23 18:32:09 adam Exp $ + +SHA1 (wslay-1.0.0.tar.gz) = 1c8b4a765787a96dd32512d399ba4a1df06fa0a3 +RMD160 (wslay-1.0.0.tar.gz) = cfbb20bf7520aafa24ae7d874c61e1f5fc905e35 +SHA512 (wslay-1.0.0.tar.gz) = 12aadf5a36a38efcbec68f42bc49f6fdc272be44b986e2ca26d6bf0660bf39437a400a7f33de9d8abfad0b2fde64ffef32cea5a586868aa33fa685e257e39a35 +Size (wslay-1.0.0.tar.gz) = 45846 bytes |