From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00EB41580FD for ; Wed, 25 Dec 2024 14:56:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DE9EE0769; Wed, 25 Dec 2024 14:56:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52609E0769 for ; Wed, 25 Dec 2024 14:56:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55257335D6D for ; Wed, 25 Dec 2024 14:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B362310CC for ; Wed, 25 Dec 2024 14:56:32 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1735138334.6a55be6fdf547412b2fcfe4567e1734fa2be8881.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/, net-nntp/nzbget/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nntp/nzbget/Manifest net-nntp/nzbget/files/nzbget-24.5-build-with-par2-turbo-offline.patch net-nntp/nzbget/nzbget-24.5.ebuild X-VCS-Directories: net-nntp/nzbget/ net-nntp/nzbget/files/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 6a55be6fdf547412b2fcfe4567e1734fa2be8881 X-VCS-Branch: master Date: Wed, 25 Dec 2024 14:56:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e7cce9ba-d9b2-4592-8724-b400944ccead X-Archives-Hash: 625404762c601e5f1904760ceebd357c commit: 6a55be6fdf547412b2fcfe4567e1734fa2be8881 Author: Louis Sautier gentoo org> AuthorDate: Wed Dec 25 14:49:06 2024 +0000 Commit: Louis Sautier gentoo org> CommitDate: Wed Dec 25 14:52:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a55be6f net-nntp/nzbget: add 24.5 Closes: https://bugs.gentoo.org/946687 Signed-off-by: Louis Sautier gentoo.org> net-nntp/nzbget/Manifest | 2 + ...nzbget-24.5-build-with-par2-turbo-offline.patch | 17 +++ net-nntp/nzbget/nzbget-24.5.ebuild | 136 +++++++++++++++++++++ 3 files changed, 155 insertions(+) diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest index fdff7e7c6693..e2624db7a300 100644 --- a/net-nntp/nzbget/Manifest +++ b/net-nntp/nzbget/Manifest @@ -1,3 +1,5 @@ DIST nzbget-21.1.tar.gz 1988916 BLAKE2B 74298c5c7f3986831f36832a8ffe596543196b5b46500925de478bf11cab8e66fb36dee9458533a4194d82123765b29e37914463d72fd206e218b4875861001a SHA512 d8dc1ad324f675c5505e623049a14c022475267aa03dcd5d8fd6cf9ed3b776cc2776077b61d035e252937ea4b6bf8f90bd33e715cfd842d2e012615df3ffeafb DIST nzbget-24.2.tar.gz 5512752 BLAKE2B ef4c6e562976030b790a93747d11d6b7059be7cb8bc9076068c037a0e8d25f09054ff280417b52f534af50aec0f11cd21959f995ae8252a21ea274aa7efdfc84 SHA512 ad280315f9a60bf206a134e3703337af2e2dfb8282dd5efc55af071f82f5f7e7857f819dd843f6ae70cd7fcea2c84de4db535d7658fb5255a380ffcf685a680f DIST nzbget-24.3.tar.gz 5533518 BLAKE2B 67614aecebb28b2664ab629beddeea6c492e1f32ba71854d1812c7c4e5b41219c1773c33d5952f6e2805bf5804d3fb1e410f9c6cdc0850a4d3036d4253f9c0ba SHA512 6a79f7fcc58c494af19179b6a98d5235423fc8d3a45c6ba969cf687948da25faaf9bcec074b7c9b8ccf2d3621e6bc2dc9c2ae67e877e89fa9a00b8f3ff4ca85a +DIST nzbget-24.5.tar.gz 7283271 BLAKE2B eb03ac8136efe3650dfd3f5e53cf2b8e3d5ffdc783d81fb53b0afd530936ffe5e7053445ed1419f1b7d21f0d496a3bca6033f63a239180f7c0978435f991de92 SHA512 d077533b14934e36d0c0cdf6cead77f631754f381b3f11f5327eb42c6954f0979d18666bb7ee36733bc0f9f6350ec9a2751d367532ca13cf02060ea30e9f3848 +DIST nzbgetcom-par2turbo-1.1.1-nzbget-20241128.tar.gz 3960077 BLAKE2B 461409c5f305029d5cd495441844de251a19e8c4b3eab184e765edef4ecbc723aa570d8daf0b282281da8577a2ab75876f3d90a02e92696e5b4fbf3768a2648a SHA512 9eea769b8d861afd30573d213d4341cb2bc201abcd2e3f68803d016d1b39b1edc92953169ceed5d626ee8ad7d655d02a0ebed92810e67bc538ceccef694599bf diff --git a/net-nntp/nzbget/files/nzbget-24.5-build-with-par2-turbo-offline.patch b/net-nntp/nzbget/files/nzbget-24.5-build-with-par2-turbo-offline.patch new file mode 100644 index 000000000000..2d34c583c4bf --- /dev/null +++ b/net-nntp/nzbget/files/nzbget-24.5-build-with-par2-turbo-offline.patch @@ -0,0 +1,17 @@ +Patch the build system to support par2-turbo downloaded into the source +directory. +--- a/cmake/par2-turbo.cmake ++++ b/cmake/par2-turbo.cmake +@@ -27,11 +27,7 @@ endif() + ExternalProject_add( + par2-turbo + PREFIX par2-turbo +- GIT_REPOSITORY https://github.com/nzbgetcom/par2cmdline-turbo.git +- GIT_TAG v1.1.1-nzbget-20241128 +- TLS_VERIFY TRUE +- GIT_SHALLOW TRUE +- GIT_PROGRESS TRUE ++ URL par2-turbo + DOWNLOAD_EXTRACT_TIMESTAMP TRUE + CMAKE_ARGS ${CMAKE_ARGS} + INSTALL_COMMAND "" diff --git a/net-nntp/nzbget/nzbget-24.5.ebuild b/net-nntp/nzbget/nzbget-24.5.ebuild new file mode 100644 index 000000000000..52304569d7ff --- /dev/null +++ b/net-nntp/nzbget/nzbget-24.5.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Otherwise ExternalProject_add fails, see https://github.com/nzbgetcom/nzbget/issues/460 +CMAKE_MAKEFILE_GENERATOR="emake" + +inherit cmake systemd + +PAR2_TURBO_VER="1.1.1-nzbget-20241128" +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="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 ) + +PATCHES=( + "${FILESDIR}/${P}-build-with-par2-turbo-offline.patch" +) + +src_prepare() { + if use parcheck; then + mv "${WORKDIR}/par2cmdline-turbo-${PAR2_TURBO_VER}" par2-turbo || die + else + # See https://github.com/nzbgetcom/nzbget/issues/480 + rm tests/postprocess/ParCheckerTest.cpp \ + tests/postprocess/ParRenamerTest.cpp || die + sed -Ei '/(ParCheckerTest|ParRenamerTest)\.cpp/d' \ + tests/postprocess/CMakeLists.txt || 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) + -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 +}