mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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:
1
www-apps/jackett-bin/Manifest
Normal file
1
www-apps/jackett-bin/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST jackett-bin-0.17.159.tar.gz 44625042 BLAKE2B 43701f9b05a1fdb0ffffa3294b0ac3aa851dc2120271cd101c6b6a57d66df913383283bf1f83cc1d213c7e990d16c3421681f9a5e7c0545182ffcab5862ad153 SHA512 aa26e391dd033ce35f20c2ae3065240e88ee659fd0ead39392aa3da994025e7f3d4accd29423f646bd22bdf5ac5ca50c4a6d850b55585976a1f0923981696302
|
||||
1
www-apps/jackett-bin/files/99jackett
Normal file
1
www-apps/jackett-bin/files/99jackett
Normal file
@@ -0,0 +1 @@
|
||||
PATH="/opt/jackett"
|
||||
25
www-apps/jackett-bin/files/jackett.initd
Normal file
25
www-apps/jackett-bin/files/jackett.initd
Normal 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"
|
||||
}
|
||||
35
www-apps/jackett-bin/jackett-bin-0.17.159.ebuild
Normal file
35
www-apps/jackett-bin/jackett-bin-0.17.159.ebuild
Normal 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
|
||||
}
|
||||
8
www-apps/jackett-bin/metadata.xml
Normal file
8
www-apps/jackett-bin/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user