{ "name": "socat", "version": "1.8.1.3", "summary": "socat: relays bytes between two of files, pipes, devices, TCP/UDP/UNIX sockets and TLS", "category": "network", "license": "GPL-2.0-only", "homepage": "http://www.dest-unreach.org/socat/", "source": { "url": "https://snapshot.debian.org/archive/debian/20260626T203506Z/pool/main/s/socat/socat_1.8.1.3.orig.tar.bz2", "sha256": "25bc6476292b2e614220989c77b0b6fca87bb2525d9747b31a6639b1fb602418" }, "watch": {"kind": "index", "url": "https://snapshot.debian.org/archive/debian/20260626T203506Z/pool/main/s/socat/", "regex": "socat_([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.orig\\.tar\\.bz2"}, "deps": [ "openssl", "readline" ], "env_packages": [], "static": true, "nss": true, "check": "bin/socat -V | has 'socat version 1.8.1.3' && bin/socat -V | has 'WITH_OPENSSL 1' && t=$(mktemp -d) && P=$(free_port) && { bin/socat \"TCP-LISTEN:$P,bind=127.0.0.1,reuseaddr\" EXEC:cat & echo $! > \"$t/pid\"; } && wait_port \"$P\" && echo bvs-tcp | bin/socat -t 2 - \"TCP:127.0.0.1:$P\" | has -x bvs-tcp && bin/openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes -keyout \"$t/k\" -out \"$t/c\" -subj /CN=localhost -days 1 2>/dev/null && Q=$(free_port) && { bin/socat \"OPENSSL-LISTEN:$Q,bind=127.0.0.1,reuseaddr,cert=$t/c,key=$t/k,verify=0\" EXEC:cat & echo $! > \"$t/pid2\"; } && wait_port \"$Q\" && echo bvs-tls | bin/socat -t 2 - \"OPENSSL:127.0.0.1:$Q,verify=0,snihost=localhost\" | has -x bvs-tls && echo \"socat: an echo over TCP ($P) and over TLS ($Q)\"; r=$?; for p in pid pid2; do [ -f \"$t/$p\" ] && kill \"$(cat \"$t/$p\")\" 2>/dev/null; done; exit $r" }