{ "name": "autossh", "version": "1.4g", "summary": "autossh: starts ssh and restarts it when the connection or its tunnels stop working", "category": "network", "license": "LicenseRef-autossh", "homepage": "https://www.harding.motd.ca/autossh/", "source": { "url": "https://www.harding.motd.ca/autossh/autossh-1.4g.tgz", "sha256": "5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277" }, "watch": {"kind": "index", "url": "https://www.harding.motd.ca/autossh/", "regex": "autossh-([0-9]+\\.[0-9]+[a-z]?)\\.tgz"}, "deps": [ "openssh" ], "env_packages": [], "static": false, "nss": true, "check": "bin/autossh -V | has -x 'autossh 1.4g' && t=$(mktemp -d) && printf '#!/bin/sh\\necho \"$@\" >> \"%s/args\"\\nexit 0\\n' \"$t\" > \"$t/fakessh\" && chmod 755 \"$t/fakessh\" && AUTOSSH_PATH=$t/fakessh AUTOSSH_GATETIME=0 bin/autossh -M 0 -N bvs.example && has -x -- '-N bvs.example' < \"$t/args\" && P=$(free_port) && AUTOSSH_PATH=$t/fakessh AUTOSSH_GATETIME=0 bin/autossh -M \"$P\" -N bvs.example && has -- \"-L $P:127.0.0.1:$P -R $P:127.0.0.1:$((P + 1)) -N bvs.example\" < \"$t/args\" && echo \"autossh: ran ssh with its arguments, and with the monitoring tunnels of port $P\"" }