summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPF4Public <PF4Public@users.noreply.github.com>2023-07-16 18:46:33 +0300
committerCraig Andrews <candrews@gentoo.org>2023-07-17 16:12:47 -0400
commit2a9d8f88c404c3df6c92386bd282db6b7a3f5560 (patch)
treeeae3154f076f528378528cadf094357f8e01ebcc /www-apps
parentacct-user/jackett: API Support for your favorite torrent trackers (diff)
downloadgentoo-2a9d8f88c404c3df6c92386bd282db6b7a3f5560.tar.gz
gentoo-2a9d8f88c404c3df6c92386bd282db6b7a3f5560.tar.bz2
gentoo-2a9d8f88c404c3df6c92386bd282db6b7a3f5560.zip
www-apps/jackett: API Support for your favorite torrent trackers
Signed-off-by: PF4Public <PF4Public@users.noreply.github.com> Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/jackett/Manifest3
-rw-r--r--www-apps/jackett/files/jackett.init6
-rw-r--r--www-apps/jackett/files/jackett.logrotate4
-rw-r--r--www-apps/jackett/files/jackett.service30
-rw-r--r--www-apps/jackett/jackett-0.21.481.ebuild58
-rw-r--r--www-apps/jackett/metadata.xml16
6 files changed, 117 insertions, 0 deletions
diff --git a/www-apps/jackett/Manifest b/www-apps/jackett/Manifest
new file mode 100644
index 000000000000..93889d7e1d92
--- /dev/null
+++ b/www-apps/jackett/Manifest
@@ -0,0 +1,3 @@
+DIST Jackett.Binaries.LinuxAMDx64.tar.gz 46081771 BLAKE2B a39e3bd65576ef6e5efbfe817eaff3a448c2ecb9c1f046a941ee51e1824091c6a6c4f4a499204675f1e3f7969ce409e229ce4f1e4ca413334c41b4bc66b12d9b SHA512 ea0d409736581dee77f5910d5aec5832df234481f24a1e33d2691402f1c61c82b3133bd913a41c1b5ee8c557a626309b459a4ecc04cd39640e21f8518e5963db
+DIST Jackett.Binaries.LinuxARM32.tar.gz 43901662 BLAKE2B 97dd6cb3928257817ef5b1c037e60d077c8207b1deb817ce85858fe935fa89dc110ee6093b6804687e45ca82777a72e0adc0d8e8d358cd29c053bffc0cde6336 SHA512 266a451653119eac847ec17692d35fceb7f17b99c0280b555aeb7b49a9710e63cc235485a8b773e5b958beb749f2088715abae52893910357b85f3e7f91c8e71
+DIST Jackett.Binaries.LinuxARM64.tar.gz 43405796 BLAKE2B c705ab0b82cbedbaee9667c3b36bf7b2cd3eae92985a4b54bba39710b5c3603373db6389f2d2b5fdb4832e8769f035d24138835965d3b5ad17b7328f103e05a1 SHA512 5b8313d512f0f91da07af8e7c957325f802d5909ce61b91dd58cdcf36db8f67c98527117c2b67cd6d027571544232988437666eca50b98c4a43dcc55f6cc755b
diff --git a/www-apps/jackett/files/jackett.init b/www-apps/jackett/files/jackett.init
new file mode 100644
index 000000000000..ffd6abfa31dd
--- /dev/null
+++ b/www-apps/jackett/files/jackett.init
@@ -0,0 +1,6 @@
+#!/sbin/openrc-run
+
+pidfile="/run/jackett.pid"
+command="/opt/jackett/jackett"
+command_user="jackett:jackett"
+command_background=true
diff --git a/www-apps/jackett/files/jackett.logrotate b/www-apps/jackett/files/jackett.logrotate
new file mode 100644
index 000000000000..859203f00b2c
--- /dev/null
+++ b/www-apps/jackett/files/jackett.logrotate
@@ -0,0 +1,4 @@
+/var/lib/jackett/.config/Jackett/log.txt{
+ missingok
+ su jackett jackett
+}
diff --git a/www-apps/jackett/files/jackett.service b/www-apps/jackett/files/jackett.service
new file mode 100644
index 000000000000..8a2d7775fed5
--- /dev/null
+++ b/www-apps/jackett/files/jackett.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=API Support for your favorite torrent trackers
+After=syslog.target network.target
+
+[Service]
+User=jackett
+Group=jackett
+
+Type=simple
+ExecStart=/opt/jackett/jackett
+TimeoutStopSec=20
+KillMode=process
+Restart=always
+
+PrivateTmp=yes
+PrivateDevices=yes
+PrivateMounts=yes
+ProtectHome=yes
+ProtectSystem=full
+NoNewPrivileges=yes
+ProtectHostname=yes
+ProtectClock=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+ProtectKernelLogs=yes
+ProtectControlGroups=yes
+RestrictRealtime=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-apps/jackett/jackett-0.21.481.ebuild b/www-apps/jackett/jackett-0.21.481.ebuild
new file mode 100644
index 000000000000..58fc8e479d2e
--- /dev/null
+++ b/www-apps/jackett/jackett-0.21.481.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+SRC_URI="
+ amd64? ( https://github.com/Jackett/Jackett/releases/download/v${PV}/Jackett.Binaries.LinuxAMDx64.tar.gz )
+ arm? ( https://github.com/Jackett/Jackett/releases/download/v${PV}/Jackett.Binaries.LinuxARM32.tar.gz )
+ arm64? ( https://github.com/Jackett/Jackett/releases/download/v${PV}/Jackett.Binaries.LinuxARM64.tar.gz )
+"
+
+DESCRIPTION="API Support for your favorite torrent trackers"
+HOMEPAGE="https://github.com/Jackett/Jackett"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="bindist strip test"
+
+RDEPEND="
+ acct-group/jackett
+ acct-user/jackett
+ media-video/mediainfo
+ dev-libs/icu
+ dev-util/lttng-ust:0
+ dev-db/sqlite
+ sys-libs/glibc
+"
+
+QA_PREBUILT="*"
+
+S="${WORKDIR}/Jackett"
+
+src_prepare() {
+ default
+
+ # https://github.com/dotnet/runtime/issues/57784
+ rm libcoreclrtraceptprovider.so || die
+}
+
+src_install() {
+ newinitd "${FILESDIR}/${PN}.init" ${PN}
+
+ keepdir /var/lib/${PN}
+ fowners -R ${PN}:${PN} /var/lib/${PN}
+
+ insinto /etc/logrotate.d
+ insopts -m0644 -o root -g root
+ newins "${FILESDIR}/${PN}.logrotate" ${PN}
+
+ dodir "/opt/${PN}"
+ cp -R "${S}/." "${D}/opt/jackett" || die "Install failed!"
+
+ systemd_dounit "${FILESDIR}/jackett.service"
+ systemd_newunit "${FILESDIR}/jackett.service" "${PN}@.service"
+}
diff --git a/www-apps/jackett/metadata.xml b/www-apps/jackett/metadata.xml
new file mode 100644
index 000000000000..fc823d3f2b9a
--- /dev/null
+++ b/www-apps/jackett/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Jackett/Jackett</remote-id>
+ <bugs-to>https://github.com/Jackett/Jackett/issues</bugs-to>
+ </upstream>
+</pkgmetadata>