From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-985562-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 98F001396D9
	for <garchives@archives.gentoo.org>; Wed, 22 Nov 2017 20:39:19 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AC117E0EC3;
	Wed, 22 Nov 2017 20:39:18 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 74102E0EC3
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Nov 2017 20:39:18 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 2B35034085A
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Nov 2017 20:39:17 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E1431A3FB
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Nov 2017 20:39:15 +0000 (UTC)
From: "Sven Wegener" <swegener@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" <swegener@gentoo.org>
Message-ID: <1511383131.ac5e7933ac1286ac958d6ec99d33716af423e607.swegener@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-nntp/nzbget/Manifest net-nntp/nzbget/nzbget-20.0_pre2159.ebuild
X-VCS-Directories: net-nntp/nzbget/
X-VCS-Committer: swegener
X-VCS-Committer-Name: Sven Wegener
X-VCS-Revision: ac5e7933ac1286ac958d6ec99d33716af423e607
X-VCS-Branch: master
Date: Wed, 22 Nov 2017 20:39:15 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 62db7ac0-83eb-4b5a-bf53-4a497eda7749
X-Archives-Hash: b2d582b8427774d392a567267ec648f6

commit:     ac5e7933ac1286ac958d6ec99d33716af423e607
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Sat Nov 18 23:22:20 2017 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 20:38:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac5e7933

net-nntp/nzbget: bump to 20.0_pre2159, add slot operators, missing deps

Closes: https://bugs.gentoo.org/635754
Closes: https://github.com/gentoo/gentoo/pull/6229
Package-Manager: Portage-2.3.14, Repoman-2.3.6

 net-nntp/nzbget/Manifest                   |   1 +
 net-nntp/nzbget/nzbget-20.0_pre2159.ebuild | 126 +++++++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index 45d909cec84..c3e4f00761e 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -2,3 +2,4 @@ DIST nzbget-14.1.tar.gz 1332334 SHA256 a16b816b61f7035cc373e9b77094ca474d5b7b7f7
 DIST nzbget-19.1.tar.gz 1809849 SHA256 06df42356ac2d63bbc9f7861abe9c3216df56fa06802e09e8a50b05f4ad95ce6 SHA512 3ba7cd7f7fec28e29129be0a1ca5879a0593bc54be49e3776e84eeb7804377eec47106aa2371b31dec7d9152301d68b199ce9e66db714195defc8e15ef636532 WHIRLPOOL 157168fde3152a02d4f1d8b257998851b05b6c1dcb0a839868f0d85859ae9539ef6281035c44ccdbc981ec6f093f28f8333cc40c4871e4d7f415658a5599f5aa
 DIST nzbget-20.0_pre2075.tar.gz 1817105 SHA256 0fcb83077c878db13e13590690a873d14c5ef62df777bb80ac9f105034388750 SHA512 d386b61dee32e3f30d580eba484f1431fb29ced31e63adc6135f88e603993502e3d93f2d36a3ce654492a014a51c07451361c1954c62e7ccc439d2a3fc48554f WHIRLPOOL e37b53aa596b094e3b2e783b365e4bc421d0a8b35bb8aaea5de201da55d3fd0b9c3c25122476313900ff02fa982b8a56261af0cd467a385bae7791c437ed5172
 DIST nzbget-20.0_pre2108.tar.gz 1820172 SHA256 6889079774f847334dbecf0c4e700eaab51bb61025df06c3a372947e85e0aee1 SHA512 4abdab3d45829eb5574d2cb6b532372ba0a9c62a701acdebe498b71466f7ac8c7b47aa85ed80c1132c10e86b829c48dd6df4826d20f542a7a935aaa958ba0222 WHIRLPOOL 723e3da5d6d16002539f792f3a4a78b8e3ba821839093b667470c2ae94e6b3c7ee62994a5ee8630eb7362825a04d4d16ae3100f149b8ba182cf6928fc214109c
+DIST nzbget-20.0_pre2159.tar.gz 1840392 SHA256 b7d465a99df7f4be89a952cbc58e2f18148ff260430ff518c1e81fb93dd1d00d SHA512 31799b2164db748389b7a2895d8571543aaf2e4324017b1adcb4eb44ad2046a0b488fb29a2c77b1d4963b858f7ec614d78eb541090b0889bef634d6d0461a50c WHIRLPOOL 4cff2f6204cd1634994fdc9a65f8c47350a8e7b30fc38767103ffac8255565d87b73e9eaef4de8bb0f78eb1f60bbd2b8aa436f7b796e97890dc999bf84f366a9

diff --git a/net-nntp/nzbget/nzbget-20.0_pre2159.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2159.ebuild
new file mode 100644
index 00000000000..826808ecc03
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-20.0_pre2159.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools 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="https://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:=
+			dev-libs/nettle:=
+		)
+		!gnutls? ( dev-libs/openssl:0=[-bindist] )
+	)
+	zlib? ( sys-libs/zlib:= )"
+DEPEND="${RDEPEND}
+	test? (
+		|| (
+			=app-arch/rar-5*
+			=app-arch/unrar-5*
+		)
+	)
+	virtual/pkgconfig"
+DOCS=( ChangeLog README nzbget.conf )
+
+S=${WORKDIR}/${PN}-${PV/_pre*/-testing}
+
+check_compiler() {
+	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
+}
+
+pkg_pretend() {
+	check_compiler
+}
+
+pkg_setup() {
+	check_compiler
+}
+
+src_prepare() {
+	default
+	eautoreconf
+
+	sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
+
+	sed \
+		-e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
+		-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-r1 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
+}