From 9b48ec6cc2bad8283436a5770902b799114034d3 Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Fri, 3 Nov 2017 10:49:05 +0100 Subject: [PATCH] gnu: networking: Add websockify. * gnu/packages/networking.scm (websockify): New variable. --- gnu/packages/networking.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 57b32c252..1eab245e6 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -1535,3 +1535,32 @@ at the IP layer and link layer, as well as a host of supplementary functionality. Using libnet, quick and simple packet assembly applications can be whipped up with little effort.") (license license:bsd-2))) + +(define-public websockify + (package + (name "websockify") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/novnc/websockify/archive/v" + version "/archive.tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1kjq6gibsvbb6zx5gi8hgh7110x62pbwcqkwapf3k7s27w5y907h")))) + (build-system python-build-system) + (inputs `(("python-numpy", python-numpy))) + (home-page "https://github.com/novnc/websockify") + (synopsis "WebSockets support for any application/server") + (description "Websockify translates WebSockets traffic to normal socket +traffic. Websockify accepts the WebSockets handshake, parses it, and then +begins forwarding traffic between the client and the target in both +directions.") +;; websockify is licensed under the LGPL version 3 with the following +;; exceptions: +;; include/websock.js : MPL 2.0 +;; include/base64.js : MPL 2.0 +;; include/des.js : Various BSD style licenses +;; include/web-socket-js/ : New BSD license (3-clause). +;; other/kumina.c : Simplified BSD license (2 clause). + (license license:lgpl3))) -- 2.15.0