{ "name": "qbittorrent", "version": "5.2.4", "summary": "qbittorrent-nox: the qBittorrent BitTorrent client without a window, run as a server and used through its web interface", "category": "network", "license": "GPL-2.0-or-later", "homepage": "https://www.qbittorrent.org/", "source": { "url": "https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-5.2.4.tar.gz", "sha256": "226a6ad1aa7810fcbfa58b0d28b14feb8e207726cbe774d4d267ce769c19dd6c" }, "watch": {"kind": "github-release", "repo": "qbittorrent/qBittorrent", "tag_regex": "^release-([0-9]+(?:\\.[0-9]+)+)$"}, "deps": [ "qtbase", "qttools", "libtorrent-rasterbar", "boost", "openssl", "zlib" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && P=$(free_port) && mkdir -p \"$t/qBittorrent/config\" && bin/openssl req -x509 -newkey rsa:2048 -nodes -days 2 -subj /CN=127.0.0.1 -keyout \"$t/key.pem\" -out \"$t/cert.pem\" 2> /dev/null && H=$(python3 -c 'import base64, hashlib, os; s = os.urandom(16); print(base64.b64encode(s).decode() + \":\" + base64.b64encode(hashlib.pbkdf2_hmac(\"sha512\", b\"bvs-check\", s, 100000)).decode())') && printf '[LegalNotice]\\nAccepted=true\\n\\n[BitTorrent]\\nSession\\\\ResumeDataStorageType=SQLite\\n\\n[Preferences]\\nWebUI\\\\Port=%s\\nWebUI\\\\Username=admin\\nWebUI\\\\Password_PBKDF2=\"@ByteArray(%s)\"\\nWebUI\\\\HTTPS\\\\Enabled=true\\nWebUI\\\\HTTPS\\\\CertificatePath=%s\\nWebUI\\\\HTTPS\\\\KeyPath=%s\\n' \"$P\" \"$H\" \"$t/cert.pem\" \"$t/key.pem\" > \"$t/qBittorrent/config/qBittorrent.conf\" && { bin/qbittorrent-nox --profile=\"$t\" --confirm-legal-notice > \"$t/out.log\" 2>&1 & echo $! > \"$t/pid\"; } && wait_port \"$P\" && a=$(curl -sk -o /dev/null -w '%{http_code}' -c \"$t/c\" --data 'username=admin&password=bvs-check' \"https://127.0.0.1:$P/api/v2/auth/login\") && w=$(curl -sk -o /dev/null -w '%{http_code}' --data 'username=admin&password=wrong' \"https://127.0.0.1:$P/api/v2/auth/login\") && n=$(curl -sk -o /dev/null -w '%{http_code}' \"https://127.0.0.1:$P/api/v2/app/version\") && v=$(curl -sk -b \"$t/c\" \"https://127.0.0.1:$P/api/v2/app/version\") && [ \"$v\" = v5.2.4 ] && [ \"$w\" = 401 ] && [ \"$n\" = 403 ] && test -s \"$t/qBittorrent/data/torrents.db\" && ! has -i \"temporary password\" < \"$t/out.log\" && echo \"qbittorrent-nox $v: its WebUI over HTTPS (Qt's OpenSSL backend) on port $P signed in with the PBKDF2 password (HTTP $a), refused a wrong one ($w) and a call without the session ($n); resume data in SQLite\"; r=$?; [ $r = 0 ] || cat \"$t/out.log\"; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2> /dev/null; sleep 1; rm -rf -- \"${t:?}\"; exit $r" }