{ "name": "znc", "version": "1.9.1", "summary": "ZNC, the IRC bouncer", "category": "server", "license": "Apache-2.0", "homepage": "https://znc.in", "source": { "url": "https://znc.in/releases/archive/znc-1.9.1.tar.gz", "sha256": "e8a7cf80e19aad510b4e282eaf61b56bc30df88ea2e0f64fadcdd303c4894f3c" }, "watch": {"kind": "index", "url": "https://znc.in/releases/archive/", "regex": "znc-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.gz"}, "deps": ["openssl", "zlib"], "env_packages": [], "static": false, "nss": true, "check": "bin/znc --version | has -i znc && ls lib/znc/controlpanel.so lib/znc/webadmin.so > /dev/null && t=$(mktemp -d) && chmod 755 \"$t\" && mkdir \"$t/configs\" && p=$(free_port) && printf 'Version = 1.9.1\\n\\n\\tHost = 127.0.0.1\\n\\tPort = %s\\n\\tIPv4 = true\\n\\tIPv6 = false\\n\\tSSL = false\\n\\n\\n\\tPass = plain#bvs\\n\\tAdmin = true\\n\\tNick = bvs\\n\\tAltNick = bvs_\\n\\tIdent = bvs\\n\\tRealName = bvs\\n\\n' \"$p\" > \"$t/configs/znc.conf\" && chown -R 65534:65534 \"$t\" && { setpriv --reuid=65534 --regid=65534 --clear-groups bin/znc --foreground --datadir=\"$t\" > \"$t/out.log\" 2>&1 & pid=$!; } && wait_port \"$p\" && w=$(exec 3<> \"/dev/tcp/127.0.0.1/$p\" && printf 'PASS bvs:bvs\\r\\nNICK bvs\\r\\nUSER bvs 0 * :bvs\\r\\n' >&3 && timeout 5 grep -a -m 1 ' 001 bvs ' <&3) && kill -TERM \"$pid\" && { wait \"$pid\"; e=$?; pid=; [ $e = 0 ]; }; r=$?; [ -n \"${pid:-}\" ] && { kill -9 \"$pid\"; wait \"$pid\"; } 2> /dev/null; [ $r = 0 ] || { echo \"znc: welcome '${w:-}', exit status ${e:-} after SIGTERM\" >&2; cat \"$t/out.log\" >&2; }; rm -rf -- \"${t:?}\"; [ $r = 0 ] && echo \"ZNC 1.9.1 as uid 65534: a user signed in over IRC on 127.0.0.1 and was welcomed; SIGTERM ended it with status 0 (its signal thread cancelled)\"; exit $r" }