public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Louis Sautier" <sbraz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/
Date: Mon, 16 Sep 2024 08:52:49 +0000 (UTC)	[thread overview]
Message-ID: <1726476344.13b9f19b1feb7988b693973fe437f86aa3f5cd2b.sbraz@gentoo> (raw)

commit:     13b9f19b1feb7988b693973fe437f86aa3f5cd2b
Author:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 16 08:35:50 2024 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Mon Sep 16 08:45:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13b9f19b

net-nntp/nzbget: add 24.3

Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>

 net-nntp/nzbget/Manifest           |   1 +
 net-nntp/nzbget/nzbget-24.3.ebuild | 113 +++++++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index a14970625b51..3f1fc0e26d33 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -1,3 +1,4 @@
 DIST nzbget-21.1.tar.gz 1988916 BLAKE2B 74298c5c7f3986831f36832a8ffe596543196b5b46500925de478bf11cab8e66fb36dee9458533a4194d82123765b29e37914463d72fd206e218b4875861001a SHA512 d8dc1ad324f675c5505e623049a14c022475267aa03dcd5d8fd6cf9ed3b776cc2776077b61d035e252937ea4b6bf8f90bd33e715cfd842d2e012615df3ffeafb
 DIST nzbget-24.1.tar.gz 5365282 BLAKE2B 4fe260c361888d99eaf457a520b39560320b86d181cd12891b35962c9d4c6d773aeb389bf2254029fc58643bb5b04eb24917db9319f1a1068014feed08521dde SHA512 eb4a60cb3a529e2fb8242615e57758ceed615a573fabbe7170490e7af8c228edc90a096860ab7cf49ee85fc834cb8db30aa866c4f149679396139e54c166cf5c
 DIST nzbget-24.2.tar.gz 5512752 BLAKE2B ef4c6e562976030b790a93747d11d6b7059be7cb8bc9076068c037a0e8d25f09054ff280417b52f534af50aec0f11cd21959f995ae8252a21ea274aa7efdfc84 SHA512 ad280315f9a60bf206a134e3703337af2e2dfb8282dd5efc55af071f82f5f7e7857f819dd843f6ae70cd7fcea2c84de4db535d7658fb5255a380ffcf685a680f
+DIST nzbget-24.3.tar.gz 5533518 BLAKE2B 67614aecebb28b2664ab629beddeea6c492e1f32ba71854d1812c7c4e5b41219c1773c33d5952f6e2805bf5804d3fb1e410f9c6cdc0850a4d3036d4253f9c0ba SHA512 6a79f7fcc58c494af19179b6a98d5235423fc8d3a45c6ba969cf687948da25faaf9bcec074b7c9b8ccf2d3621e6bc2dc9c2ae67e877e89fa9a00b8f3ff4ca85a

diff --git a/net-nntp/nzbget/nzbget-24.3.ebuild b/net-nntp/nzbget/nzbget-24.3.ebuild
new file mode 100644
index 000000000000..63600a57ae90
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-24.3.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd
+
+DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files"
+HOMEPAGE="https://nzbget.com/"
+SRC_URI="https://github.com/nzbgetcom/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="gnutls ncurses +parcheck ssl test zlib"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	dev-libs/boost:=
+	dev-libs/libxml2:=
+	ncurses? ( sys-libs/ncurses:0= )
+	ssl? (
+		gnutls? (
+			net-libs/gnutls:=
+			dev-libs/nettle:=
+		)
+		!gnutls? ( dev-libs/openssl:0=[-bindist(-)] )
+	)
+	zlib? ( sys-libs/zlib:= )"
+RDEPEND="
+	${DEPEND}
+	acct-user/nzbget
+	acct-group/nzbget
+"
+BDEPEND="
+	test? (
+		|| (
+			app-arch/rar
+			app-arch/unrar
+		)
+	)
+	virtual/pkgconfig
+"
+
+DOCS=( ChangeLog.md README.md nzbget.conf )
+
+src_prepare() {
+	cmake_src_prepare
+
+	# Update the main configuration file with the correct paths
+	sed -i nzbget.conf \
+		-e "s:^WebDir=.*:WebDir=${EPREFIX}/usr/share/nzbget/webui:" \
+		-e "s:^ConfigTemplate=.*:ConfigTemplate=${EPREFIX}/usr/share/nzbget/nzbget.conf:" \
+		|| die
+	# Update the daemon-specific configuration file (used by the OpenRC and
+	# systemd services)
+	sed nzbget.conf > nzbgetd.conf \
+		-e "s:^MainDir=.*:MainDir=${EPREFIX}/var/lib/nzbget:" \
+		-e "s:^LogFile=.*:LogFile=${EPREFIX}/var/log/nzbget/nzbget.log:" \
+		-e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \
+		|| die
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DDISABLE_CURSES=$(usex !ncurses)
+		-DDISABLE_PARCHECK=$(usex !parcheck)
+		-DDISABLE_TLS=$(usex !ssl)
+		-DDISABLE_GZIP=$(usex !zlib)
+		-DUSE_OPENSSL=$(usex !gnutls)
+		-DUSE_GNUTLS=$(usex gnutls)
+		-DENABLE_TESTS=$(usex test)
+	)
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	insinto /etc
+	doins nzbget.conf
+	doins nzbgetd.conf
+
+	# The configuration file's "ConfigTemplate" option points to this, we must
+	# make sure it exists as the Web UI reads it. It is not installed by
+	# default, see the "install-conf" target in cmake/install.cmake.
+	insinto /usr/share/nzbget
+	doins nzbget.conf
+
+	keepdir /var/log/nzbget
+
+	newinitd "${FILESDIR}"/nzbget.initd-r1 nzbget
+	newconfd "${FILESDIR}"/nzbget.confd nzbget
+	systemd_dounit "${FILESDIR}"/nzbget.service
+}
+
+pkg_preinst() {
+	fowners nzbget:nzbget /var/log/nzbget
+	fperms 750 /var/log/nzbget
+
+	fowners nzbget:nzbget /etc/nzbgetd.conf
+	fperms 640 /etc/nzbgetd.conf
+}
+
+pkg_postinst() {
+	if [[ -z ${REPLACING_VERSIONS} ]] ; then
+		elog
+		elog "Please add users that you want to be able to use the system-wide"
+		elog "nzbget daemon to the nzbget group. To access the daemon, run nzbget"
+		elog "with the --configfile /etc/nzbgetd.conf option."
+		elog
+	fi
+}


             reply	other threads:[~2024-09-16  8:52 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-16  8:52 Louis Sautier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-19  0:33 [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/ Louis Sautier
2025-03-19  0:33 Louis Sautier
2025-03-09 23:31 Louis Sautier
2025-03-09 23:31 Louis Sautier
2025-02-24 22:17 Louis Sautier
2024-09-16 23:55 Jakov Smolić
2024-09-16 23:55 Jakov Smolić
2024-09-16  8:52 Louis Sautier
2023-06-23  2:14 Sam James
2023-06-23  2:14 Sam James
2023-06-23  2:14 Sam James
2022-09-24  7:15 Arthur Zamarin
2022-08-24 10:42 Louis Sautier
2022-08-17  7:06 Agostino Sarubbo
2022-08-17  4:04 Sam James
2022-08-16  7:46 Agostino Sarubbo
2022-08-16  7:44 Agostino Sarubbo
2021-06-17 22:18 Thomas Deutschmann
2021-06-17 20:32 Thomas Deutschmann
2021-06-03 20:32 Louis Sautier
2021-06-03 20:32 Louis Sautier
2021-03-29 14:50 Sam James
2021-02-26 20:58 Agostino Sarubbo
2021-02-24 16:22 Sam James
2021-02-15 15:40 Thomas Deutschmann
2020-10-03 21:33 Louis Sautier
2020-10-03 21:33 Louis Sautier
2019-05-02 23:08 Louis Sautier
2019-05-02 23:08 Louis Sautier
2019-03-25 10:54 Louis Sautier
2018-10-29 22:21 Louis Sautier
2018-07-31  0:24 Mikle Kolyada
2018-07-21 16:02 Mikle Kolyada
2018-07-20 23:18 Sergei Trofimovich
2018-07-20 22:40 Thomas Deutschmann
2018-06-18 10:34 Louis Sautier
2018-06-09 13:38 Michał Górny
2018-06-09 13:38 Michał Górny
2018-04-28 21:03 Patrice Clement
2018-04-28 21:03 Patrice Clement
2018-04-09 21:07 Sven Wegener
2018-04-09 21:07 Sven Wegener
2017-11-22 20:39 Sven Wegener
2017-11-22 20:39 Sven Wegener
2017-10-27 21:30 Patrice Clement
2017-10-03 23:56 Sven Wegener
2017-09-02 22:55 Michał Górny
2017-09-02 22:55 Michał Górny
2017-07-22 15:48 Sven Wegener
2017-07-22 15:48 Sven Wegener
2017-06-30 13:16 Patrice Clement
2017-06-22 20:39 Sven Wegener
2017-06-22 20:39 Sven Wegener
2017-06-22 20:39 Sven Wegener
2017-06-22 20:39 Sven Wegener
2017-03-07  9:14 David Seifert
2017-03-07  9:14 David Seifert
2017-01-29 22:55 David Seifert
2017-01-29 22:55 David Seifert
2016-11-08 16:30 Sven Wegener
2016-11-08 16:30 Sven Wegener
2016-09-18 15:23 Sven Wegener
2016-09-18 15:23 Sven Wegener
2016-08-04  5:12 Göktürk Yüksek
2016-08-04  5:12 Göktürk Yüksek
2016-06-08 21:39 Sven Wegener
2016-06-08 21:39 Sven Wegener
2016-04-11 20:21 Patrice Clement
2016-03-27 17:32 Michael Palimaka
2016-03-24 16:36 Sven Wegener
2016-01-07  8:53 Patrice Clement
2015-12-22  0:03 Patrice Clement
2015-09-15  0:41 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1726476344.13b9f19b1feb7988b693973fe437f86aa3f5cd2b.sbraz@gentoo \
    --to=sbraz@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox