{ "name": "whois", "version": "5.6.6", "summary": "whois: asks the right whois server about a domain, an IP address or an AS number; mkpasswd hashes passwords", "category": "network", "license": "GPL-2.0-or-later", "homepage": "https://github.com/rfc1036/whois", "source": { "url": "https://deb.debian.org/debian/pool/main/w/whois/whois_5.6.6.tar.xz", "sha256": "121a3b0467ad64a0e7034b44e71bd1cf28a2e4cca82886d40804ce1fac6494c0" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/w/whois/", "regex": "whois_([0-9]+(?:\\.[0-9]+)+)\\.tar\\.xz"}, "deps": [ "libxcrypt" ], "env_packages": [], "static": true, "nss": true, "check": "bin/whois --version | first && bin/mkpasswd -m sha-512 -S saltsaltsalt bvs-check | has -x '$6$saltsaltsalt$HW0QDmloUGDEafr1vXv/IRv3FHJEgIkH18F2JNt2UQiB5oy6xX5tKbWGf.FWaB5WW29MYrA.XX7MHzUaFM4nT0' && bin/mkpasswd -m help | has yescrypt && t=$(mktemp -d) && P=$(free_port) && { python3 -c 'import socket,sys; s=socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1); s.bind((\"127.0.0.1\", int(sys.argv[1]))); s.listen(1); c, _ = s.accept(); q = c.recv(512).decode().strip(); c.sendall((\"domain: \" + q + \"\\nstatus: bvs whois check\\n\").encode()); c.close()' \"$P\" & echo $! > \"$t/pid\"; } && wait_port \"$P\" && bin/whois -h 127.0.0.1 -p \"$P\" bvs-check.example > \"$t/out\" && has -x 'domain: bvs-check.example' < \"$t/out\" && has -x 'status: bvs whois check' < \"$t/out\" && echo \"whois: a query answered by a whois server on port $P; mkpasswd: a SHA-512 crypt known answer\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }