net-p2p/torrserver-bin: Bump version

mhiretskiy
parent 18574a05db
commit 2ccbc4a000

@ -7,4 +7,4 @@ inherit acct-group
ACCT_GROUP_ID=-1
DESCRIPTION="Group for www-apps/jackett-bin"
KEYWORDS="~amd64"
KEYWORDS="amd64"

@ -0,0 +1,10 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
ACCT_GROUP_ID=-1
DESCRIPTION="Group for net-p2p/torrserver-bin"
KEYWORDS="amd64"

@ -6,7 +6,7 @@ EAPI=7
inherit acct-user
DESCRIPTION="User for www-apps/jackett-bin"
KEYWORDS="~amd64"
KEYWORDS="amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( jackett )
ACCT_USER_HOME="/var/jackett/"

@ -0,0 +1,14 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
DESCRIPTION="User for net-p2p/torrserver-bin"
KEYWORDS="amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( torrserver )
ACCT_USER_HOME="/var/calculate/torrserver/"
acct-user_add_deps

@ -0,0 +1 @@
DIST TorrServer-linux-amd64 14151680 BLAKE2B 317014787256b5322a1fdbf0651f3624fc7f1ad3121b69119d4b077555b33cfcd9486aea05eb923ebac77f1e484e8df66dfdf2eace89a21f08ec4cc70a549f4d SHA512 a4c732694cd8c022ca22b4ef22c198799d248dfdf101e06bda3ed936684b46494739119d64182f7eb4703bc630402f2f3e80f77c383d0821fbad930929a54ae0

@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="TorrServer"
description="TorrServer, stream torrent to http"
depend() {
need net
}
start() {
ebegin "Starting $name"
start-stop-daemon --start --exec /opt/torrserver/TorrServer-linux-amd64 \
--env HOME=/var/calculate/torrserver --chdir /var/calculate/torrserver \
--make-pidfile --pidfile /var/run/torrserver.pid \
--background --user torrserver:torrserver
eend $? "Failed to start $name"
}
stop() {
ebegin "Stopping $name"
start-stop-daemon --stop --pidfile /var/run/torrserver.pid
eend $? "Failed to stop $name"
}

@ -0,0 +1,35 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="TorrServer, stream torrent to http"
HOMEPAGE="https://github.com/YouROK/TorrServer"
SRC_URI="
amd64? ( https://github.com/YouROK/TorrServer/releases/download/MatriX.${PV}/TorrServer-linux-amd64 )
"
KEYWORDS="~amd64"
LICENSE="GPL-3"
SLOT="0"
RESTRICT="strip"
RDEPEND="
acct-user/torrserver
"
QA_PREBUILT="*"
S="${WORKDIR}"
src_unpack() {
cp -v ${DISTDIR}/${A} ${S}
}
src_install() {
dodir /opt/torrserver
cp "${S}"/TorrServer-linux-amd64 "${ED}"/opt/torrserver || die
fperms 0755 /opt/torrserver/TorrServer-linux-amd64
newinitd "${FILESDIR}"/torrserver.initd torrserver
doenvd "${FILESDIR}"/99torrserver
}
Loading…
Cancel
Save