summaryrefslogtreecommitdiff
path: root/net-nntp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-27 06:30:35 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-27 06:30:35 +0000
commit721e451ec418e1712f6962404e111f0ebd487389 (patch)
treeaab5b35236af464349c2522312c63b664273465c /net-nntp
parente80134587e8d959a88dba7dd3784895372e205c8 (diff)
gentoo auto-resync : 27:12:2024 - 06:30:34
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/Manifest.gzbin1372 -> 1369 bytes
-rw-r--r--net-nntp/nzbget/Manifest4
-rw-r--r--net-nntp/nzbget/files/nzbget-24.5-build-with-par2-turbo-offline.patch17
-rw-r--r--net-nntp/nzbget/nzbget-24.5.ebuild136
4 files changed, 157 insertions, 0 deletions
diff --git a/net-nntp/Manifest.gz b/net-nntp/Manifest.gz
index 781033173cd9..debddfd18bb3 100644
--- a/net-nntp/Manifest.gz
+++ b/net-nntp/Manifest.gz
Binary files differ
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index 424a2c2144a0..4fa491e0d32a 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -1,13 +1,17 @@
AUX nzbget-21.1-openssl-3.patch 943 BLAKE2B 7a66602312169f985f869e0d5cc4b64fd735ed276be3ae3d745715cf4c7d098947c0ea786412594f2240eef20be58332d0481e6221bb3fda723c2aebf67c1430 SHA512 5d5f47088560d7835cf8f8d2fd39aae2d591a12b5d6f9182f433eb72857343b532125a33b4206048343afe159660689f403201fe8f2e2ad1b732f3f8539677d3
AUX nzbget-24.2-fix-getrealpath-buffer-overflow.patch 5904 BLAKE2B 15f22d7646b57e4a0b3bef74895e005b63c4bfb30398073581547ecb130b575403c3a4e9063241379e425cee400d03b5c977d77d9d0b462f1b32c64cb27af07f SHA512 7c5d0490a6d0ec154ffddaa80152b3d7abfcedd1f8e3c37cdd203912e9c8e8e8147d2d78e9adc19bfc786bdc66923144969498b29888f31ff6a919f9376972eb
+AUX nzbget-24.5-build-with-par2-turbo-offline.patch 487 BLAKE2B a9e6028b5ace7925101e6f8c641c51c0216f2c52864989304672eb86a34b5abd3cdf1eca5de5ca0db3fdcedd0ef1fc80d47b0af0d1462171a8748f982fc49955 SHA512 bbd2d044374f53a0d788955295626e3b8abd5694f90b8203fd089c89eca3c27b49d5d8c71388724ac1b00805e313007de8b2352912d318e399a1362e391db0a0
AUX nzbget.confd 337 BLAKE2B 4986f3c00019f8f2d0c3d71f9d623186823748722dc4c8aea82ef39b57cebc079247ce5aaa14f1fd844a3c94931f53c1af7ce015e2b4ba68973367c6b708e0e3 SHA512 0f9a0d62ac6ea35703ebd64ec68057596d63fd5957afa2d3bcd18b4e8db4b24e78d060dc36cf90dbd2f604b4c6f107fb8e59ff779b6865cd362e71a0666d6c56
AUX nzbget.initd-r1 742 BLAKE2B eef074b7e25cd085b92850892ee8917772451b0f58a7f7c3b96c55bcdb115cc99d12e0569f59cc546f9655460230e5f29a82c4d749a654e2019e7c06651c165a SHA512 df4965d25a221c033586da85596584a712bc5c5d9c2e0950850f96fa872f29a04571649e7add504d9fe8be3639654e5653a766a6accf4dea344ca771088b432a
AUX nzbget.service 466 BLAKE2B 928ff8fd5f48b9190324ccaa98f1215aa35e30eb9959278fe2b9d77f175ee97a28e0efe3ac034ceb2da023c9d7737aa3f803861489284578412559e257700003 SHA512 5a59562580596bc5524086dcb2b2550b242a5f62750fd42a5b2e9ecb786b40107a21fcab7496d0cd396434da7ed3ee5d1046059d94f5f2bcb76ad496862d19e1
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
EBUILD nzbget-21.1-r1.ebuild 2445 BLAKE2B 3caa46ddd86a962d8627826e98bc8c2444598392c08e2f883ce7b1bdc3bf3054464bbb3eba1ba057ed807244a5f805a9ce0bd607ebf454b23cdbe91c9d5d5fac SHA512 1e983dd0db364d347a8745ce8d37f14f944cb62be57a4452a4df211c85d5c8bce0e14f16861cf5429d2de75b108dcbbf5f34118376bf69b77b2b25293fad4685
EBUILD nzbget-21.1-r2.ebuild 2581 BLAKE2B 6f09eb6471326471b3c3110b7b4df5b8ea5e09f6655fdaab11b9621033644cedf299b46902001ca76f70490a5b33e9d4c0ac4c63a4156f030ee96b4085e3094a SHA512 b78cc4a774e86f386ae0d61d09f650998257f2e918ae60e1f5f02dd31300dad78cb53229d3552fc997a21aafcdc8028e8da0bd79bc06a8f5ad6df7c4f0fe24a8
EBUILD nzbget-24.2.ebuild 2805 BLAKE2B b1e866858eca070e26b39d158ed9efe2f106d2972c132c9ffd3af029ee5f9cce1b50ef83910a576123fc80355b86693bb1dd3b335bd280879dcff252b857a90f SHA512 15adb11eb1187a2c28edbd3150d1263fb829e7c072d956790acb578ae99c3e64d6ba574411bd8d7492779dca85b535b86c7961fa166e13ff0980169c378d8258
EBUILD nzbget-24.3.ebuild 2736 BLAKE2B 255a33da8fb5c5a121d87ded692f661c2ca75a87a0efcef17fa4f593841394b69055d5c5c259c8002b5a522155be723795ee771ffa59244cbf17d3413307725d SHA512 83767bc965de41b0619fc24af0d86c35b05bb67c0fe616f0a13eae37539628cc087224729caefccc9927f83ebde3c256429b1b6127642b765309c0d350d71605
+EBUILD nzbget-24.5.ebuild 3469 BLAKE2B 1464ea0004f98559bb147cbdb3689964a3fca659ea3cbcabacbbbd92941c844563829129ff16b95ad0b0e97d69524d224a73ab26f0b1373dbde2b8f7a666f459 SHA512 8f4e080cbf763baaae2df900b15df7291b6c4cd0163b234fba689e5ccec6b564a0c3fdfcfae9b802ef29141e548b12c83da600d52154922aa6fbd6fd0d42a55a
MISC metadata.xml 586 BLAKE2B 462398c1c6fe7417d36ead5304ba425c9edb034b095dabbfceade1dd8f892c3c1f09eef71b466f49ef2e9599d395b822e264101f181b04f9e33793a89d36529e SHA512 2acf6e839312db5cc6de6c76effe9c40805b976e3421e51a2e3a1deb12f05fb5ed5eb0da37aec17f42debcd38420877c861a30570a9f04325ac8c8ad83bdb56f
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
+}