public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sven Wegener" <swegener@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/
Date: Tue,  8 Nov 2016 16:30:39 +0000 (UTC)	[thread overview]
Message-ID: <1478622623.3a8a15eca4c81593fe63f016f0c9be24a81cf140.swegener@gentoo> (raw)

commit:     3a8a15eca4c81593fe63f016f0c9be24a81cf140
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Sat Nov  5 17:00:31 2016 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Tue Nov  8 16:30:23 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a8a15ec

net-nntp/nzbget: bump to 18.0_pre1820

- Add a dependency on nettle when USE=gnutls is enabled,
required since nzbget/nzbget@5885258c354fb35a8b01475644d07dcaf5bde9a6
- Check the compiler at pkg_setup too

Package-Manager: portage-2.3.2

 net-nntp/nzbget/Manifest                   |   1 +
 net-nntp/nzbget/nzbget-18.0_pre1820.ebuild | 124 +++++++++++++++++++++++++++++
 2 files changed, 125 insertions(+)

diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index 7f9d7d2..19a1c57 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-16.4-src.tar.gz 1585908 SHA256 8e9e3ee75d2d08a8e438b2809f504a627a9334ed239579a540b75fa97bff4d0f SHA512 12ebde277abac5f719f374861013fa391f4698d850ac57c55787609fec54490fb09437c6a803fc0ca935c482ed5ccd16c525e17ba40a514f7a54316dc04ee874 WHIRLPOOL 2d1c21d45a74eaea7dcb1c99c9b409f506547189c832b432331ae2b64ee67050245acb8ff1cd522bd64460d9d7ac806b344fd0f3bbc21de4bfca12dcc815692d
 DIST nzbget-17.0.tar.gz 1608851 SHA256 795c830344dcc8751a2234a8344190b3f3e48e1ce92dcff02ee0af95a5fa46ae SHA512 18a3839447baec8137b9763f93031086fa740b3fe6e5a3342a28d51eee128b808b117737cfa15e39ee3586d2c6fc5a736563580cb4abe23b0ad29b55790c132c WHIRLPOOL fe65628fd517bd2ec99bb37b3d08e014e06ac03370f4e65e0ce771a34031f7a99d561b0180b5e3cafe0c07974e59636339722684c476794283688c20b2afc809
 DIST nzbget-17.1.tar.gz 1609931 SHA256 4b3cf500d9bb6e9ab65b2c8451358e6c93af0368176f193eebafca17d7209c39 SHA512 5fde874b68423bb6d4cf63fc68aee0087b4d801a73a05124c1b3d0e883877cd585400001191e58386e115b2664906f16e67f5f7d5a0ece93bf51f55ec1e7309b WHIRLPOOL bcae41e87e8cb6ce429dd065fe7904cc04b36da4435de43c3424afd1a37f3e5da55769d2684df368687fb8ee6d6f72ff80452c54a07ffa09fbe9918c7d40c167
+DIST nzbget-18.0_pre1820.tar.gz 1775316 SHA256 f31fed20ed5329cba1e9bcd533657de878a0b090badc7c08f0b0534e5177c3aa SHA512 004c8729b7ffed16e06c54c71f6ca0c69543d3a208bee6dae1e2bfccbc25952dc8a9f0ef0899663cca13d95ea4424f2b2bb96ee3358bf49c645076275d9cd3a4 WHIRLPOOL cf9c759a517f93d4a88f795cf3eab6858dac47be1392140b8e7f86eb09cfb8f59df57976f956db2d07b2f2f0aab117198b71d58b3705e5147759f5c352f6a125

diff --git a/net-nntp/nzbget/nzbget-18.0_pre1820.ebuild b/net-nntp/nzbget/nzbget-18.0_pre1820.ebuild
new file mode 100644
index 00000000..05eeeb0
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-18.0_pre1820.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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:=
+			dev-libs/nettle:=
+		)
+		!gnutls? ( dev-libs/openssl:0= )
+	)
+	zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+	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:^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)
+}
+
+# Tests fail with USE=-ssl
+# https://github.com/nzbget/nzbget/issues/303
+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
+}


             reply	other threads:[~2016-11-08 16:30 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 16:30 Sven Wegener [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-16 23:55 [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/ Jakov Smolić
2024-09-16 23:55 Jakov Smolić
2024-09-16  8:52 Louis Sautier
2024-09-16  8:52 Louis Sautier
2023-06-23  2:14 Sam James
2023-06-23  2:14 Sam James
2023-06-23  2:14 Sam James
2022-09-24  7:15 Arthur Zamarin
2022-08-24 10:42 Louis Sautier
2022-08-17  7:06 Agostino Sarubbo
2022-08-17  4:04 Sam James
2022-08-16  7:46 Agostino Sarubbo
2022-08-16  7:44 Agostino Sarubbo
2021-06-17 22:18 Thomas Deutschmann
2021-06-17 20:32 Thomas Deutschmann
2021-06-03 20:32 Louis Sautier
2021-06-03 20:32 Louis Sautier
2021-03-29 14:50 Sam James
2021-02-26 20:58 Agostino Sarubbo
2021-02-24 16:22 Sam James
2021-02-15 15:40 Thomas Deutschmann
2020-10-03 21:33 Louis Sautier
2020-10-03 21:33 Louis Sautier
2019-05-02 23:08 Louis Sautier
2019-05-02 23:08 Louis Sautier
2019-03-25 10:54 Louis Sautier
2018-10-29 22:21 Louis Sautier
2018-07-31  0:24 Mikle Kolyada
2018-07-21 16:02 Mikle Kolyada
2018-07-20 23:18 Sergei Trofimovich
2018-07-20 22:40 Thomas Deutschmann
2018-06-18 10:34 Louis Sautier
2018-06-09 13:38 Michał Górny
2018-06-09 13:38 Michał Górny
2018-04-28 21:03 Patrice Clement
2018-04-28 21:03 Patrice Clement
2018-04-09 21:07 Sven Wegener
2018-04-09 21:07 Sven Wegener
2017-11-22 20:39 Sven Wegener
2017-11-22 20:39 Sven Wegener
2017-10-27 21:30 Patrice Clement
2017-10-03 23:56 Sven Wegener
2017-09-02 22:55 Michał Górny
2017-09-02 22:55 Michał Górny
2017-07-22 15:48 Sven Wegener
2017-07-22 15:48 Sven Wegener
2017-06-30 13:16 Patrice Clement
2017-06-22 20:39 Sven Wegener
2017-06-22 20:39 Sven Wegener
2017-06-22 20:39 Sven Wegener
2017-06-22 20:39 Sven Wegener
2017-03-07  9:14 David Seifert
2017-03-07  9:14 David Seifert
2017-01-29 22:55 David Seifert
2017-01-29 22:55 David Seifert
2016-11-08 16:30 Sven Wegener
2016-09-18 15:23 Sven Wegener
2016-09-18 15:23 Sven Wegener
2016-08-04  5:12 Göktürk Yüksek
2016-08-04  5:12 Göktürk Yüksek
2016-06-08 21:39 Sven Wegener
2016-06-08 21:39 Sven Wegener
2016-04-11 20:21 Patrice Clement
2016-03-27 17:32 Michael Palimaka
2016-03-24 16:36 Sven Wegener
2016-01-07  8:53 Patrice Clement
2015-12-22  0:03 Patrice Clement
2015-09-15  0:41 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1478622623.3a8a15eca4c81593fe63f016f0c9be24a81cf140.swegener@gentoo \
    --to=swegener@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox