www-apps/jackett-bin: selfhosted torrent crawler

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2020-12-28 11:14:50 -05:00
parent 5cc1ee3778
commit 0359244922
5 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST jackett-bin-0.17.159.tar.gz 44625042 BLAKE2B 43701f9b05a1fdb0ffffa3294b0ac3aa851dc2120271cd101c6b6a57d66df913383283bf1f83cc1d213c7e990d16c3421681f9a5e7c0545182ffcab5862ad153 SHA512 aa26e391dd033ce35f20c2ae3065240e88ee659fd0ead39392aa3da994025e7f3d4accd29423f646bd22bdf5ac5ca50c4a6d850b55585976a1f0923981696302

View File

@@ -0,0 +1 @@
PATH="/opt/jackett"

View File

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

View File

@@ -0,0 +1,35 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION="ultra fast, simple, secure & standards compliant web I/O"
HOMEPAGE="https://github.com/uNetworking/uWebSockets"
SRC_URI="https://github.com/Jackett/Jackett/releases/download/v${PV}/Jackett.Binaries.LinuxAMDx64.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/Jackett
KEYWORDS="~amd64"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="strip"
RDEPEND="
dev-libs/icu
dev-util/lttng-ust
"
QA_PRESTRIPPED="/opt/jackett/*"
QA_PREBUILT="/opt/jackett/*.so"
src_compile(){
return
}
src_install() {
dodir /opt/jackett
cp -a "${S}"/. "${ED}"/opt/jackett || die
newinitd "${FILESDIR}"/jackett.initd jackett
doenvd "${FILESDIR}"/99jackett
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@aisha.cc</email>
<name>Aisha Tammy</name>
</maintainer>
</pkgmetadata>