mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-nntp/nzbget: add 25.4
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
DIST nzbget-25.0.tar.gz 7315774 BLAKE2B af116e68bd716402b5c55becf0d9ea89e959ddb0dd4f6359ac315a8d489d9351954b17784bdfd5bf134abe602a7a24574d74d2744f5d89f59c7e87dcea10db8b SHA512 0e265af8e20d2de585698750dd42ea84f7001f74b8ffab22929de4face27ed49ba64ef72afa167f0cca4e5db7f6bd6b5d2f4194e5311ffcbda39e613f7643450
|
||||
DIST nzbget-25.2.tar.gz 7321130 BLAKE2B 5d65c91e75f681d8534d3497aebf8ae01ea2f22636b0a64c0f62000e9ffb98adf35c204c310364220a5566c26a502ce7a40197d87c033ba71837f3c8702aac90 SHA512 47f83099de6f04ab160751b61a3f48c8e980abf383c8e1ddcacdd5abeed55d90f63e9b98c3edc8b585f78ac3cc35952adf5030523dfe096bb7f7dac54fd1e7be
|
||||
DIST nzbget-25.3.tar.gz 7325914 BLAKE2B 11075f079fb17c8bbdd31e72b5b115ed60ef472c8adbcf10cccb6b4a34ce785cf274f600d2b75b2135f635d466f26c9dd0458486b015d2f1c35e781d4860db57 SHA512 fd43174a0c4402c73f63e63e9efc97db97e87887ae99a3e09e38c31213f22734d4ce1e15685dd953cdf5301ef50dabdf9fb9c863278c5dd55f8d1543b2da8725
|
||||
DIST nzbget-25.4.tar.gz 7333569 BLAKE2B ee4a70790a39b366bb3b023106fad92b1817a5a27947f66f24097d74a587093a628462d83c588edbc7cdc11e65a653f006537be7cb87342111dab1da2cab2920 SHA512 d60967b911d186c9e189ade9011c222852fc633094fff66002430139bef8795bd06d5e54220e81b402da6f7b2b87dae4767a58854098c92bc89844d2ee2baa5e
|
||||
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
|
||||
DIST nzbgetcom-par2turbo-1.3.0.tar.gz 3969491 BLAKE2B 7862bb25211a1784e5326a85daebfa5bdd45c56c782691b12285b331f6fa0fa2fad11b358baad0d83f6e1e8372a9fb41549a273409b8bf1e957eba1336d89b41 SHA512 d8ddfc0789d915241a474ae71b6a7ac8ad2d814aa32f357e206f5849d3c0e34bb4a8408427bb9ddca0fb21c08973a6e35a83681699d568701bcab28fd3416b71
|
||||
|
||||
120
net-nntp/nzbget/nzbget-25.4.ebuild
Normal file
120
net-nntp/nzbget/nzbget-25.4.ebuild
Normal file
@@ -0,0 +1,120 @@
|
||||
# Copyright 1999-2025 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? ( 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=(
|
||||
# Required to use par2-turbo downloaded into the source directory
|
||||
"${FILESDIR}/${PN}-25.3-build-with-par2-turbo-offline.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
|
||||
}
|
||||
Reference in New Issue
Block a user