From: "Justin Bronder" <jsbronder@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/
Date: Sat, 19 Nov 2016 16:34:09 +0000 (UTC) [thread overview]
Message-ID: <1479573192.84cae56635210521fc40abd949b19f119e82af6d.jsbronder@gentoo> (raw)
commit: 84cae56635210521fc40abd949b19f119e82af6d
Author: Michał Kępień <github <AT> kempniu <DOT> pl>
AuthorDate: Fri Nov 18 13:23:56 2016 +0000
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Sat Nov 19 16:33:12 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84cae566
Bump version
net-nntp/sabnzbd/Manifest | 1 +
net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild | 134 ++++++++++++++++++++++++++++++++++
2 files changed, 135 insertions(+)
diff --git a/net-nntp/sabnzbd/Manifest b/net-nntp/sabnzbd/Manifest
index ebed94c..4f70bf4 100644
--- a/net-nntp/sabnzbd/Manifest
+++ b/net-nntp/sabnzbd/Manifest
@@ -1 +1,2 @@
DIST SABnzbd-1.1.0-src.tar.gz 2736977 SHA256 3e86a897dea1c276c54ee38667a980f644f16d57df75612fe9eefa84b339ce9a SHA512 4fd4304253ec66c7bc6038fe8eb7bc08f0133cc4eda9efb28349242574744f262369fe43786da5a22eb90664cfa7fb91356941174787c4faef7d7624751a86d2 WHIRLPOOL f5ef42a01cd1c79f28bbd42c6970b9a1b66846af266c027354494cd103d03d14d2914a3d2b88b1aef740a6e849b9e3216c639323f41146553c5f2dcdeef182aa
+DIST SABnzbd-1.1.1-src.tar.gz 2736427 SHA256 001f19c5a98de641da9fc69cff8ee885f3422d511a73e923dcb713aaca763d44 SHA512 77deebbbdb2286791d0d0615a1f438874bb85735279a7d8e1d553909ca1dba5ea84c66ed276023e7ccf9676fc13c25760f2bc191483195e7c47e2c03bd5c636a WHIRLPOOL 0693ecd8778ca9f47f89528b17ddeef0d9fa1c635acdcff881a4aac239834a4d14c0287e992f212b6be8e993f28a7c774d4a47b5beb716b7ebbc64dcd635f2a8
diff --git a/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild b/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild
new file mode 100644
index 00000000..e5f0860
--- /dev/null
+++ b/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+# Require python-2 with sqlite USE flag
+PYTHON_DEPEND="2:2.7"
+PYTHON_USE_WITH="sqlite"
+
+inherit eutils python user systemd versionator
+
+MY_P="${P/sab/SAB}"
+
+DESCRIPTION="Binary newsgrabber with web-interface"
+HOMEPAGE="http://www.sabnzbd.org/"
+SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
+
+# Sabnzbd is GPL-2 but bundles software with the following licenses.
+LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+rar +ssl unzip +yenc"
+
+# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
+# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
+
+# TODO: still bundled but not in protage:
+# kronos, rsslib, ssmtplib, listquote, json-py, msgfmt
+# pynewsleecher
+#
+# Also note that cherrypy is still bundled. It's near impossible to find
+# out where the bundled and heavily patched version came from (pulled from
+# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
+# further. Upstream is planning on making this easier with 0.8.0.
+# https://github.com/sabnzbd/sabnzbd/issues/47
+
+RDEPEND="
+ >=app-arch/par2cmdline-0.4
+ >=dev-python/cheetah-2.0.1
+ dev-python/configobj
+ dev-python/feedparser
+ dev-python/gntp
+ dev-python/pythonutils
+ dev-python/rarfile
+ net-misc/wget
+ rar? ( || ( app-arch/unrar app-arch/rar ) )
+ ssl? ( dev-python/pyopenssl )
+ unzip? ( >=app-arch/unzip-5.5.2 )
+ yenc? ( dev-python/yenc )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ HOMEDIR="/var/lib/${PN}"
+ python_set_active_version 2
+ python_pkg_setup
+
+ # Create sabnzbd group
+ enewgroup ${PN}
+ # Create sabnzbd user, put in sabnzbd group
+ enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/1.1.x/0001-use-system-configobj-and-feedparser.patch
+ epatch "${FILESDIR}"/1.1.x/0002-assume-gntp-1.0.patch
+ epatch "${FILESDIR}"/1.1.x/0003-cfg-disable-growl-by-default.patch
+ epatch "${FILESDIR}"/1.1.x/0004-use-system-rarfile.patch
+
+ # remove bundled modules
+ rm -r sabnzbd/utils/{feedparser,configobj,rarfile}.py || die
+ rm -r gntp || die
+ rm licenses/License-{feedparser,configobj,gntp,rarfile}.txt || die
+}
+
+src_install() {
+ local d
+
+ dodir /usr/share/${PN}/sabnzbd
+ insinto /usr/share/${PN}/
+ doins SABnzbd.py
+ fperms +x /usr/share/${PN}/SABnzbd.py
+ dobin "${FILESDIR}"/sabnzbd
+
+ for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
+ insinto /usr/share/${PN}/${d}
+ doins -r ${d}/*
+ done
+
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+
+ diropts -o ${PN} -g ${PN}
+ dodir /etc/${PN}
+ dodir /var/log/${PN}
+
+ insinto "/etc/${PN}"
+ insopts -m 0600 -o ${PN} -g ${PN}
+ doins "${FILESDIR}/${PN}.ini"
+
+ dodoc {ABOUT,ISSUES,README}.txt licenses/*
+
+ systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service'
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+
+ einfo "Default directory: ${HOMEDIR}"
+ einfo ""
+ einfo "Run: gpasswd -a <user> sabnzbd"
+ einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
+ einfo ""
+ einfo "By default sabnzbd will listen on 127.0.0.1:8080"
+ einfo "As growl isn't default notification system on gentoo we disable it."
+ einfo "By default notifications are forwarded to the 23053 port(gntp)."
+
+ local replacing
+ for replacing in ${REPLACING_VERSIONS}; do
+ if [ "$(get_major_version ${replacing})" == "0" ]; then
+ echo
+ ewarn "Upgrading from ${PN}-0.x.y to ${PN}-1.x.y introduces incompatible changes"
+ ewarn "See http://wiki.sabnzbd.org/introducing-1-0-0."
+ ewarn "In particular, you need to let your queue complete before restarting ${PN}"
+ break
+ fi
+ done
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
next reply other threads:[~2016-11-19 16:34 UTC|newest]
Thread overview: 100+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-19 16:34 Justin Bronder [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-11 8:07 [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/ Sam James
2025-03-10 5:39 Sam James
2024-11-02 10:14 Michał Górny
2024-11-02 10:08 Arthur Zamarin
2024-10-25 11:36 Joonas Niilola
2024-08-24 14:05 Michał Górny
2024-08-24 14:05 Michał Górny
2024-08-24 13:51 Michał Górny
2024-07-20 4:15 Joonas Niilola
2024-07-20 4:15 Joonas Niilola
2024-05-22 11:39 Michał Górny
2024-05-22 6:55 Michał Górny
2024-05-22 6:55 Michał Górny
2024-05-21 12:44 Michał Górny
2024-05-21 6:09 Joonas Niilola
2024-03-23 8:29 Sam James
2024-02-18 12:55 Sam James
2024-02-18 12:55 Sam James
2024-02-18 12:55 Sam James
2024-01-13 9:07 Joonas Niilola
2024-01-13 9:07 Joonas Niilola
2023-11-19 8:28 Michał Górny
2023-08-15 12:27 Joonas Niilola
2023-07-24 14:46 Arthur Zamarin
2023-06-12 4:13 Sam James
2023-06-12 4:13 Sam James
2023-05-30 7:52 Joonas Niilola
2023-05-26 8:10 Joonas Niilola
2023-05-26 8:10 Joonas Niilola
2023-02-27 12:33 Michał Górny
2023-02-27 12:31 Michał Górny
2023-02-15 11:53 Yixun Lan
2023-02-05 14:22 Michał Górny
2023-02-04 12:36 Arthur Zamarin
2023-01-15 8:29 Michał Górny
2023-01-15 7:51 Joonas Niilola
2022-12-24 7:03 Sam James
2022-11-22 13:37 Joonas Niilola
2022-11-22 13:37 Joonas Niilola
2022-10-14 7:47 Joonas Niilola
2022-10-13 16:50 Michał Górny
2022-10-12 21:01 Sam James
2022-10-12 20:44 Sam James
2022-10-12 20:44 Sam James
2022-10-12 20:44 Sam James
2022-10-12 20:44 Sam James
2022-10-12 20:44 Sam James
2022-08-17 3:12 Sam James
2022-06-07 8:26 Jakov Smolić
2021-10-15 14:33 Thomas Deutschmann
2021-09-29 16:55 Thomas Deutschmann
2021-09-25 14:03 Thomas Deutschmann
2021-09-25 14:03 Thomas Deutschmann
2021-09-25 13:59 Thomas Deutschmann
2021-09-22 12:16 Thomas Deutschmann
2021-06-18 16:36 Thomas Deutschmann
2021-06-01 8:19 Thomas Deutschmann
2021-06-01 8:19 Thomas Deutschmann
2021-05-15 19:26 Sam James
2021-03-31 22:19 Thomas Deutschmann
2021-03-01 18:06 Thomas Deutschmann
2021-03-01 18:06 Thomas Deutschmann
2020-11-12 15:23 Thomas Deutschmann
2020-10-19 21:16 Thomas Deutschmann
2020-09-01 20:58 Thomas Deutschmann
2020-08-31 21:37 Thomas Deutschmann
2020-08-18 13:53 Thomas Deutschmann
2020-08-04 13:49 Thomas Deutschmann
2020-08-02 22:32 Thomas Deutschmann
2020-07-22 17:30 Thomas Deutschmann
2020-06-27 23:57 Thomas Deutschmann
2020-06-26 22:12 Thomas Deutschmann
2020-02-09 16:34 Michał Górny
2019-12-06 0:42 Thomas Deutschmann
2019-09-04 14:21 Justin Bronder
2019-05-25 3:19 Justin Bronder
2019-01-29 2:23 Justin Bronder
2018-09-17 21:35 Justin Bronder
2018-06-14 19:25 Justin Bronder
2018-05-07 14:41 Justin Bronder
2018-01-03 15:55 Justin Bronder
2017-12-18 14:27 Justin Bronder
2017-11-09 0:35 Justin Bronder
2017-09-29 16:47 Justin Bronder
2017-03-22 23:32 Justin Bronder
2016-11-29 14:33 Justin Bronder
2016-11-29 14:31 Justin Bronder
2016-11-22 13:56 Justin Bronder
2016-11-21 16:46 Justin Bronder
2016-11-21 14:07 Justin Bronder
2016-11-21 14:07 Justin Bronder
2016-11-21 14:07 Justin Bronder
2016-11-21 14:07 Justin Bronder
2016-11-19 16:34 Justin Bronder
2016-11-19 16:34 Justin Bronder
2016-11-19 16:34 Justin Bronder
2016-11-19 16:34 Justin Bronder
2016-11-19 16:34 Justin Bronder
2016-08-18 19:10 Justin Bronder
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=1479573192.84cae56635210521fc40abd949b19f119e82af6d.jsbronder@gentoo \
--to=jsbronder@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