Commit 89034c49 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play: added torrserver (eterbug #18509)

parent 732b9a8e
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION
mkdir -p var/lib/torrserver
mkdir -p usr/bin
mv -v $TAR usr/bin/torrserver
cat <<EOF | create_file /usr/lib/systemd/system/torrserver.service
[Unit]
Description = TorrServer
After = syslog.target network.target nss-lookup.target
[Service]
Type = simple
Environment="GODEBUG=madvdontneed=1"
ExecStart = /usr/bin/torrserver -d /var/lib/torrserver
ExecReload = /bin/kill -HUP ${MAINPID}
ExecStop = /bin/kill -INT ${MAINPID}
TimeoutSec = 30
Restart = on-failure
LimitNOFILE = 4096
[Install]
WantedBy = multi-user.target
EOF
erc pack $PKGNAME.tar usr var
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=torrserver
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="Torrent to http. Streams media torrent files as media streams without fully downloading"
URL="https://github.com/YouROK/TorrServer"
. $(dirname $0)/common.sh
arch=$(epm print info --debian-arch)
if [ "$VERSION" = "*" ] ; then
VERSION="$(get_github_tag https://github.com/YouROK/TorrServer)"
fi
PKGURL="https://github.com/YouROK/TorrServer/releases/download/MatriX.$VERSION/TorrServer-linux-$arch"
install_pack_pkgurl $VERSION
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment