{ "name": "ttyd", "version": "1.7.7", "summary": "ttyd: shares a terminal program (a shell, htop, tmux) as a web page over HTTP or HTTPS, through WebSockets", "category": "network", "license": "MIT", "homepage": "https://tsl0922.github.io/ttyd/", "source": { "url": "https://deb.debian.org/debian/pool/main/t/ttyd/ttyd_1.7.7.orig.tar.xz", "sha256": "48eba3f76af237f4c09cceb5ddbe0f845832557819f7e5c60c88285f8822af88" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/t/ttyd/", "regex": "ttyd_([0-9]+(?:\\.[0-9]+)+)\\.orig\\.tar\\.xz"}, "deps": [ "libwebsockets", "libuv", "json-c", "openssl", "zlib" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && bin/ttyd --version | has 'ttyd version 1.7.7' && printf '%s\\n' 'import socket, base64, os, sys, json, struct, time' 'p = int(sys.argv[1])' 's = socket.create_connection((\"127.0.0.1\", p), timeout=10)' 's.sendall(b\"GET / HTTP/1.0\\r\\n\\r\\n\")' 'page = b\"\"' 'while True:' ' c = s.recv(65536)' ' if not c:' ' break' ' page += c' 'if b\"