From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/
Date: Sat, 2 Sep 2017 22:55:34 +0000 (UTC) [thread overview]
Message-ID: <1504392851.ba15a1c41fe474b4b4ba8dabfb6fefb9626efb76.mgorny@gentoo> (raw)
commit: ba15a1c41fe474b4b4ba8dabfb6fefb9626efb76
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Sat Sep 2 12:50:14 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 2 22:54:11 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba15a1c4
net-nntp/nzbget: bump to 20.0_pre2075, fixing gnutls build
Closes: https://bugs.gentoo.org/627794
Package-Manager: Portage-2.3.8, Repoman-2.3.3
net-nntp/nzbget/Manifest | 1 +
net-nntp/nzbget/nzbget-20.0_pre2075.ebuild | 121 +++++++++++++++++++++++++++++
2 files changed, 122 insertions(+)
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index b24eb4f293f..349bb11e920 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-18.1.tar.gz 1784894 SHA256 ddf7f9eda1cc4d6f01cd28a5ee4362ef7a399085cda45a82ffdf250d56393819 SHA512 ef7749a024eee9639e2dbd50ab9d57996e7a95a81dd4b9b29b9fdc98a717b053ce43902e638b119d43a8826a83218ccfbd7a6bbd4ea50f3cbf4425ef06df141d WHIRLPOOL 29e96393945d039e8572de4e1be50ab3cb2259d905db934923eb27ccfe1e30b88448e505243689d5e10b8a05f8bd159605fca464352315d6761eeffa4157e76d
DIST nzbget-19.0.tar.gz 1809405 SHA256 2648e0eeb6f38bda3870e994caacd182f6e49a1f8c7404fbbe0112583f896f22 SHA512 3d692e44c0f5c6049676e23977d34bbb4b34b48885ea22fe80139e6a3b92e2b3937286cebaed477830b0fbe50cf4fd6e92a1d130e3176d9d10edc70955c82a61 WHIRLPOOL 998c32169750f538a7bd980bdc8ac98300ccf7bc5fb2db3536c16d0e01bcbc622d2ffdd43a4ac0aaca1ed585a7f9fe5aa8473e298763111c012996828d2b2053
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
diff --git a/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild
new file mode 100644
index 00000000000..c6d86f04383
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild
@@ -0,0 +1,121 @@
+# 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= )
+ )
+ 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)
+}
+
+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
+}
next reply other threads:[~2017-09-02 22:55 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-02 22:55 Michał Górny [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-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-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=1504392851.ba15a1c41fe474b4b4ba8dabfb6fefb9626efb76.mgorny@gentoo \
--to=mgorny@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