public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: www-apps/jackett-bin/, www-apps/jackett-bin/files/
@ 2020-12-28 16:15 Aisha Tammy
  0 siblings, 0 replies; 2+ messages in thread
From: Aisha Tammy @ 2020-12-28 16:15 UTC (permalink / raw
  To: gentoo-commits

commit:     0359244922c763a9e9484801404dff5783198be2
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Mon Dec 28 16:14:50 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Mon Dec 28 16:14:50 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=03592449

www-apps/jackett-bin: selfhosted torrent crawler

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 www-apps/jackett-bin/Manifest                    |  1 +
 www-apps/jackett-bin/files/99jackett             |  1 +
 www-apps/jackett-bin/files/jackett.initd         | 25 +++++++++++++++++
 www-apps/jackett-bin/jackett-bin-0.17.159.ebuild | 35 ++++++++++++++++++++++++
 www-apps/jackett-bin/metadata.xml                |  8 ++++++
 5 files changed, 70 insertions(+)

diff --git a/www-apps/jackett-bin/Manifest b/www-apps/jackett-bin/Manifest
new file mode 100644
index 00000000..a55a9730
--- /dev/null
+++ b/www-apps/jackett-bin/Manifest
@@ -0,0 +1 @@
+DIST jackett-bin-0.17.159.tar.gz 44625042 BLAKE2B 43701f9b05a1fdb0ffffa3294b0ac3aa851dc2120271cd101c6b6a57d66df913383283bf1f83cc1d213c7e990d16c3421681f9a5e7c0545182ffcab5862ad153 SHA512 aa26e391dd033ce35f20c2ae3065240e88ee659fd0ead39392aa3da994025e7f3d4accd29423f646bd22bdf5ac5ca50c4a6d850b55585976a1f0923981696302

diff --git a/www-apps/jackett-bin/files/99jackett b/www-apps/jackett-bin/files/99jackett
new file mode 100644
index 00000000..16a66736
--- /dev/null
+++ b/www-apps/jackett-bin/files/99jackett
@@ -0,0 +1 @@
+PATH="/opt/jackett"

diff --git a/www-apps/jackett-bin/files/jackett.initd b/www-apps/jackett-bin/files/jackett.initd
new file mode 100644
index 00000000..2241cdd1
--- /dev/null
+++ b/www-apps/jackett-bin/files/jackett.initd
@@ -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"
+}

diff --git a/www-apps/jackett-bin/jackett-bin-0.17.159.ebuild b/www-apps/jackett-bin/jackett-bin-0.17.159.ebuild
new file mode 100644
index 00000000..53480c04
--- /dev/null
+++ b/www-apps/jackett-bin/jackett-bin-0.17.159.ebuild
@@ -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
+}

diff --git a/www-apps/jackett-bin/metadata.xml b/www-apps/jackett-bin/metadata.xml
new file mode 100644
index 00000000..a3865a3c
--- /dev/null
+++ b/www-apps/jackett-bin/metadata.xml
@@ -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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: www-apps/jackett-bin/, www-apps/jackett-bin/files/
@ 2021-01-05 22:15 Aisha Tammy
  0 siblings, 0 replies; 2+ messages in thread
From: Aisha Tammy @ 2021-01-05 22:15 UTC (permalink / raw
  To: gentoo-commits

commit:     d8b89a668b1eb96f30b427e3d83a968d6630a3f9
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Tue Jan  5 22:15:14 2021 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Tue Jan  5 22:15:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d8b89a66

www-apps/jackett-bin: add systemd service

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 www-apps/jackett-bin/files/jackett.service              | 17 +++++++++++++++++
 ...n-0.17.197.ebuild => jackett-bin-0.17.197-r1.ebuild} |  3 +++
 2 files changed, 20 insertions(+)

diff --git a/www-apps/jackett-bin/files/jackett.service b/www-apps/jackett-bin/files/jackett.service
new file mode 100644
index 00000000..b2f2ee87
--- /dev/null
+++ b/www-apps/jackett-bin/files/jackett.service
@@ -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

diff --git a/www-apps/jackett-bin/jackett-bin-0.17.197.ebuild b/www-apps/jackett-bin/jackett-bin-0.17.197-r1.ebuild
similarity index 93%
rename from www-apps/jackett-bin/jackett-bin-0.17.197.ebuild
rename to www-apps/jackett-bin/jackett-bin-0.17.197-r1.ebuild
index 3e915d39..b2966ed1 100644
--- a/www-apps/jackett-bin/jackett-bin-0.17.197.ebuild
+++ b/www-apps/jackett-bin/jackett-bin-0.17.197-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit systemd
+
 DESCRIPTION="API Support for your favorite torrent trackers"
 HOMEPAGE="https://github.com/Jackett/Jackett"
 SRC_URI="
@@ -29,5 +31,6 @@ 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
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-05 22:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-05 22:15 [gentoo-commits] repo/proj/guru:dev commit in: www-apps/jackett-bin/, www-apps/jackett-bin/files/ Aisha Tammy
  -- strict thread matches above, loose matches on Subject: below --
2020-12-28 16:15 Aisha Tammy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox