commit:     109d29cc8b907abfd9d3b019a4e8c1027c4d70fe
Author:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 16 00:17:51 2026 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Mon Feb 16 00:24:39 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=109d29cc

net-nntp/nzbget: add 26.0

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

 net-nntp/nzbget/Manifest                           |   1 +
 .../files/nzbget-26.0-fix-include-order.patch      |  29 +++++
 net-nntp/nzbget/nzbget-26.0.ebuild                 | 122 +++++++++++++++++++++
 3 files changed, 152 insertions(+)

diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index 6398f5a20b09..2172d1bd4005 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -1,5 +1,6 @@
 DIST nzbget-25.0.tar.gz 7315774 BLAKE2B 
af116e68bd716402b5c55becf0d9ea89e959ddb0dd4f6359ac315a8d489d9351954b17784bdfd5bf134abe602a7a24574d74d2744f5d89f59c7e87dcea10db8b
 SHA512 
0e265af8e20d2de585698750dd42ea84f7001f74b8ffab22929de4face27ed49ba64ef72afa167f0cca4e5db7f6bd6b5d2f4194e5311ffcbda39e613f7643450
 DIST nzbget-25.3.tar.gz 7325914 BLAKE2B 
11075f079fb17c8bbdd31e72b5b115ed60ef472c8adbcf10cccb6b4a34ce785cf274f600d2b75b2135f635d466f26c9dd0458486b015d2f1c35e781d4860db57
 SHA512 
fd43174a0c4402c73f63e63e9efc97db97e87887ae99a3e09e38c31213f22734d4ce1e15685dd953cdf5301ef50dabdf9fb9c863278c5dd55f8d1543b2da8725
 DIST nzbget-25.4.tar.gz 7333569 BLAKE2B 
ee4a70790a39b366bb3b023106fad92b1817a5a27947f66f24097d74a587093a628462d83c588edbc7cdc11e65a653f006537be7cb87342111dab1da2cab2920
 SHA512 
d60967b911d186c9e189ade9011c222852fc633094fff66002430139bef8795bd06d5e54220e81b402da6f7b2b87dae4767a58854098c92bc89844d2ee2baa5e
+DIST nzbget-26.0.tar.gz 7386372 BLAKE2B 
189554c285da93521495041461dd4b4ad9fae302a6ecddfe65b060ae93e19d658db3475bd9991dcf264592d5f3d2a738f374a01191b3c035bbb8c810c0694ddb
 SHA512 
9cac3a6f1a43e9d0879c44764288a088e8404fcd939acff8a441e83934ea310405835cd0ea381f822f0c078cfc2876f364f55fd72167213d667b15510719cea3
 DIST nzbgetcom-par2turbo-1.2.0-nzbget-20250213.tar.gz 3964785 BLAKE2B 
049771c21a5febe453d2866eebca3a91c145f5b054f2dfa8226d0b5245753506c184f1ad7739bd76eaad0343e87bc0e7abc2830b3cedd6e459bef64f596e3853
 SHA512 
fdf639759361440fef6948a61391ad579070575a2d9a62a39b0e5ff87beb365d4baab2a56fffb672e78a2094748fbf0d17abc50144914e5fb5ffe432e9c02a9d
 DIST nzbgetcom-par2turbo-1.3.0-20250808.tar.gz 3970409 BLAKE2B 
5a851afa42c5540d49f7f5657ccdd47fa5ab45a2057075944b30d5cceabb5ef847984fe73cbdf849af2e98cc527d19dac9ac920ec481ae7802282af173f274bd
 SHA512 
0bfdd05c5a7235a8ff1e7a6f46d852c3263141a80619496ebcdae227281729a6442029384aa498b268062717f40063a49d31c1b0d4b713ca6cb6ff15303dcfbe

diff --git a/net-nntp/nzbget/files/nzbget-26.0-fix-include-order.patch 
b/net-nntp/nzbget/files/nzbget-26.0-fix-include-order.patch
new file mode 100644
index 000000000000..654b6a46377e
--- /dev/null
+++ b/net-nntp/nzbget/files/nzbget-26.0-fix-include-order.patch
@@ -0,0 +1,29 @@
+From 063e1cd82ee719b18a1dae40f65c0971de44edef Mon Sep 17 00:00:00 2001
+From: Louis Sautier <[email protected]>
+Date: Sun, 15 Feb 2026 19:29:04 +0100
+Subject: [PATCH] Fix missing nzbget.h includes causing compilation errors
+ (#736)
+
+--- a/daemon/queue/UrlCoordinator.cpp
++++ b/daemon/queue/UrlCoordinator.cpp
+@@ -18,9 +18,8 @@
+  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
+  */
+ 
+-
+-#include "Unpack.h"
+ #include "nzbget.h"
++#include "Unpack.h"
+ 
+ #include "UrlCoordinator.h"
+ #include "Options.h"
+--- a/daemon/systemhealth/PathsValidator.cpp
++++ b/daemon/systemhealth/PathsValidator.cpp
+@@ -17,6 +17,7 @@
+  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
+  */
+ 
++#include "nzbget.h"
+ #include "Options.h"
+ #include "Status.h"
+ #include "Validators.h"

diff --git a/net-nntp/nzbget/nzbget-26.0.ebuild 
b/net-nntp/nzbget/nzbget-26.0.ebuild
new file mode 100644
index 000000000000..9096b2ab21b4
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-26.0.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd
+
+PAR2_TURBO_VER="1.3.0-20250808"
+DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files"
+HOMEPAGE="https://nzbget.com/";
+SRC_URI="
+       parcheck? (
+               
https://github.com/nzbgetcom/par2cmdline-turbo/archive/v${PAR2_TURBO_VER}.tar.gz
+                       -> nzbgetcom-par2turbo-${PAR2_TURBO_VER}.tar.gz
+       )
+       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="ncurses +parcheck ssl test zlib"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       dev-libs/boost:=
+       dev-libs/libxml2:=
+       ncurses? ( sys-libs/ncurses:0= )
+       ssl? ( dev-libs/openssl:0=[-bindist(-)] )
+       zlib? ( virtual/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 )
+
+PATCHES=(
+       # Required to use par2-turbo downloaded into the source directory
+       "${FILESDIR}/${PN}-25.3-build-with-par2-turbo-offline.patch"
+       # Backported from 
https://github.com/nzbgetcom/nzbget/commit/063e1cd82ee719b18a1dae40f65c0971de44edef
+       "${FILESDIR}/${P}-fix-include-order.patch"
+)
+
+src_prepare() {
+       if use parcheck; then
+               mv "${WORKDIR}/par2cmdline-turbo-${PAR2_TURBO_VER}" par2-turbo 
|| die
+       fi
+       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)
+               -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 via email to