add www-apps/jackett-bin

mhiretskiy
Alexander Tratsevskiy 3 years ago
parent f79d5433db
commit 1f0ab74cf5

@ -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 www-apps/jackett-bin"
KEYWORDS="~amd64"

@ -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 www-apps/jackett-bin"
KEYWORDS="~amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( jackett )
ACCT_USER_HOME="/var/jackett/"
acct-user_add_deps

@ -1,3 +1,5 @@
~acct-group/jackett-0 amd64
~acct-user/jackett-0 amd64
~app-crypt/shim-signed-0.2 amd64
~dev-python/soaplib-1.0.0 amd64
~games-util/steam-launcher-1.0.0.64 amd64
@ -8,3 +10,4 @@
~net-wireless/rtl8814au-20210429 amd64
~net-wireless/rtl8821ce-20210321 amd64
~net-wireless/rtl8821cu-20210506 amd64
~www-apps/jackett-bin-0.18.15 amd64

@ -0,0 +1 @@
DIST jackett-bin-0.18.582-amd64.tar.gz 44705196 BLAKE2B 390fc08d2f4096a4e8cb010332a1488532a6dc946b6d8e81802b3609d1a49a19ca693ffed7ae32b9e3ddc5265ce571af975e23803c4b5114f29824c3b9b5e69d SHA512 0fe9c9d23c9b30bd7438f6a30e5155123f497c6c9b8c5f6c4c89e643d4a0ad8bb1e600999a9661f263db3847729e3ecdeca27e25321a8d2d8e4258c5f74837f1

@ -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"
}

@ -0,0 +1,17 @@
[Unit]
Description=Jackett Daemon
After=network.target
[Service]
SyslogIdentifier=jackett
Restart=always
RestartSec=5
Type=simple
User=jackett
Group=jackett
WorkingDirectory=/var/jackett
ExecStart=/bin/sh "/opt/jackett/jackett_launcher.sh"
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target

@ -0,0 +1,35 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION="API Support for your favorite torrent trackers"
HOMEPAGE="https://github.com/Jackett/Jackett"
SRC_URI="
amd64? ( https://github.com/Jackett/Jackett/releases/download/v${PV}/Jackett.Binaries.LinuxAMDx64.tar.gz -> ${P}-amd64.tar.gz )
"
KEYWORDS="~amd64"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="strip"
RDEPEND="
acct-user/jackett
app-crypt/mit-krb5
dev-libs/icu
dev-util/lttng-ust
"
QA_PREBUILT="*"
S="${WORKDIR}"/Jackett
src_install() {
dodir /opt/jackett
cp -a "${S}"/. "${ED}"/opt/jackett || die
newinitd "${FILESDIR}"/jackett.initd jackett
systemd_dounit "${FILESDIR}"/jackett.service
doenvd "${FILESDIR}"/99jackett
}
Loading…
Cancel
Save