{ "name": "transmission-cli", "version": "4.1.3", "summary": "Transmission without a graphical client: transmission-daemon, transmission-remote, transmission-cli and the torrent tools (create, edit, show)", "category": "network", "license": "GPL-2.0-only OR GPL-3.0-only", "homepage": "https://transmissionbt.com/", "source": { "url": "https://github.com/transmission/transmission/releases/download/4.1.3/transmission-4.1.3.tar.xz", "sha256": "ce7d2d8b101f7eb54bc3cf0bc55f52f7ebd4a25fa48e00bdca9a7e0fc02617da" }, "watch": {"kind": "github-release", "repo": "transmission/transmission", "tag_regex": "^([0-9]+\\.[0-9]+\\.[0-9]+)$"}, "deps": [ "curl", "openssl", "zlib", "libevent" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && mkdir \"$t/data\" \"$t/cfg\" && for p in transmission-daemon transmission-remote transmission-cli transmission-create transmission-edit transmission-show; do bin/$p --version 2>&1 | has \"^$p 4\\.1\\.3 \" || { echo \"$p: no version 4.1.3\" >&2; exit 1; }; done && seq -f '%06g bvs transmission' 0 19999 > \"$t/data/bvs.bin\" && bin/transmission-create -o \"$t/bvs.torrent\" -t http://127.0.0.1:9/announce -s 32 \"$t/data/bvs.bin\" > /dev/null && bin/transmission-edit -a http://127.0.0.1:10/announce \"$t/bvs.torrent\" > /dev/null && bin/transmission-show \"$t/bvs.torrent\" > \"$t/show\" && has -i '97dd488224d3bc389107bd0d61306cfb7c3ff460' < \"$t/show\" && has '127.0.0.1:10/announce' < \"$t/show\" && P=$(free_port) && Q=$(free_port) && { bin/transmission-daemon -f -g \"$t/cfg\" -p \"$P\" -P \"$Q\" -w \"$t/data\" -T -a 127.0.0.1 -O -Y -M --log-level=error > \"$t/log\" 2>&1 & echo $! > \"$t/pid\"; } && wait_port \"$P\" && bin/transmission-remote \"127.0.0.1:$P\" -a \"$t/bvs.torrent\" > /dev/null && for i in $(seq 1 50); do bin/transmission-remote \"127.0.0.1:$P\" -t 1 -i > \"$t/info\" 2>&1; has 'Percent Done: 100%' < \"$t/info\" && break; sleep 0.2; done && has 'Percent Done: 100%' < \"$t/info\" && has -i 'Hash: *97dd488224d3bc389107bd0d61306cfb7c3ff460' < \"$t/info\" && echo \"transmission 4.1.3: transmission-create makes a torrent of 480000 bytes (info hash 97dd488224d3bc389107bd0d61306cfb7c3ff460, the one Python computes), transmission-edit adds a tracker, transmission-show reads it; transmission-daemon on RPC port $P takes it from transmission-remote and finds the data complete by its hash check\"; r=$?; [ $r = 0 ] || cat \"$t/info\" \"$t/log\" >&2; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; rm -rf -- \"${t:?}\"; exit $r" }