mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-nntp/nzbget: bump to 17.0_pre1726
Package-Manager: portage-2.3.0_rc1
This commit is contained in:
committed by
Sven Wegener
parent
3849241c21
commit
a524b7dce8
@@ -3,3 +3,4 @@ DIST nzbget-14.2.tar.gz 1332612 SHA256 bb24afb47dc01766c5e5c02d7565190082c6e13ff
|
||||
DIST nzbget-15.0.tar.gz 1466814 SHA256 3ef13f3e5917e4cda19c4fc0cd37e79967a19b4e3448c239ff24e37712a6cc0a SHA512 7233bea56f99e541155eac3e1d31f2603a407aee7055492c2bf20efc9b40a58e9e5f3b7ee7dada9278cb4bdc8b30a0e62f377235e12ac43c88f9111864d3a706 WHIRLPOOL f8d53ef7637a09f1e98fe5866693bc99c96212f460b00072d5ac8164c59c9053ab8805262d97e136eccc14f6af9be220541b2ea22d01bd2ed191114cbfdcfac0
|
||||
DIST nzbget-16.4-src.tar.gz 1585908 SHA256 8e9e3ee75d2d08a8e438b2809f504a627a9334ed239579a540b75fa97bff4d0f SHA512 12ebde277abac5f719f374861013fa391f4698d850ac57c55787609fec54490fb09437c6a803fc0ca935c482ed5ccd16c525e17ba40a514f7a54316dc04ee874 WHIRLPOOL 2d1c21d45a74eaea7dcb1c99c9b409f506547189c832b432331ae2b64ee67050245acb8ff1cd522bd64460d9d7ac806b344fd0f3bbc21de4bfca12dcc815692d
|
||||
DIST nzbget-17.0_pre1686.tar.gz 1600950 SHA256 3c3ade8ad0cd6a3013e541c7cdc771fcf186f12cc30866db8e6bccc658846042 SHA512 4c7e64e44534e3a4df816ba359ccff59e409d6641fc6eb87d66a743572728ab6f62cfab5135b83de52f41fff737ef4519160a8929bab826e97230ab63e196669 WHIRLPOOL 92f205faeb027ab1467296c6d44ad5df8afc0009541006df0f50bdefe8b9ee987ac5fcf62432a43b028aed705dbb9730eba7d1faf58e666fc14e8879f79686ce
|
||||
DIST nzbget-17.0_pre1726.tar.gz 1606506 SHA256 ef3b2414af5a41534a9b1a5f80bce201e2b3501dbc554e7661f883cf04f2682f SHA512 434c6a43973e44393bdb786872d601d1039c4d6177d2613f474b72f092c05c360ce1cf9d6558d265b202e8074a451ab7151a92a3ac0a03820dd5a1b4eef30923 WHIRLPOOL 8a4c575c3ec14c451b6cad8712a07f3eb1a542c2151947432ac8c9f03363160021e49215be3591de2f0b0bc950dd76d8eac4147b4498c81047a3a91d53b65c64
|
||||
|
||||
109
net-nntp/nzbget/nzbget-17.0_pre1726.ebuild
Normal file
109
net-nntp/nzbget/nzbget-17.0_pre1726.ebuild
Normal file
@@ -0,0 +1,109 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils flag-o-matic user
|
||||
|
||||
MY_PV=${PV/_pre/-r}
|
||||
MY_P=${PN}-${PV/_pre/-testing-r}
|
||||
|
||||
DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files"
|
||||
HOMEPAGE="http://nzbget.net/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="debug gnutls ncurses parcheck ssl test zlib"
|
||||
|
||||
RDEPEND="dev-libs/libxml2
|
||||
ncurses? ( sys-libs/ncurses:0 )
|
||||
ssl? (
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( dev-libs/openssl:0= )
|
||||
)
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
DOCS=( ChangeLog README nzbget.conf )
|
||||
|
||||
S=${WORKDIR}/${PN}-${PV/_pre*/-testing}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]] && ! test-flag-CXX -std=c++14; then
|
||||
eerror "${P} requires a C++14-capable compiler. Your current compiler"
|
||||
eerror "does not seem to support the -std=c++14 option. Please"
|
||||
eerror "upgrade to gcc-4.9 or an equivalent version supporting C++14."
|
||||
die "The currently active compiler does not support -std=c++14"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
|
||||
|
||||
sed \
|
||||
-e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
|
||||
-e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \
|
||||
-e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
|
||||
-e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \
|
||||
-e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \
|
||||
-e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \
|
||||
nzbget.conf > nzbgetd.conf || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable ncurses curses) \
|
||||
$(use_enable parcheck) \
|
||||
$(use_enable ssl tls) \
|
||||
$(use_enable zlib gzip) \
|
||||
$(use_enable test tests) \
|
||||
--with-tlslib=$(usex gnutls GnuTLS OpenSSL)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./nzbget --tests || die "Tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc
|
||||
doins nzbget.conf
|
||||
doins nzbgetd.conf
|
||||
|
||||
keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
|
||||
keepdir /var/log/nzbget
|
||||
|
||||
newinitd "${FILESDIR}"/nzbget.initd nzbget
|
||||
newconfd "${FILESDIR}"/nzbget.confd nzbget
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
enewgroup nzbget
|
||||
enewuser nzbget -1 -1 /var/lib/nzbget nzbget
|
||||
|
||||
fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
|
||||
fperms 750 /var/lib/nzbget/{queue,tmp}
|
||||
fperms 770 /var/lib/nzbget/{dst,nzb}
|
||||
|
||||
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