From: "Justin Bronder" <jsbronder@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/files/, net-nntp/sabnzbd/
Date: Thu, 12 Nov 2015 05:51:44 +0000 (UTC) [thread overview]
Message-ID: <1447307438.35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d.jsbronder@gentoo> (raw)
commit: 35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d
Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 12 05:50:38 2015 +0000
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Thu Nov 12 05:50:38 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35b62e4c
net-nntp/sabnzbd: systemd support
https://bugs.gentoo.org/show_bug.cgi?id=564672
Thanks to Denis Romanchuk for the patches.
Package-Manager: portage-2.2.20.1
net-nntp/sabnzbd/files/disable_growl_by_default.patch | 15 +++++++++++++++
net-nntp/sabnzbd/files/sabnzbd_at.service | 10 ++++++++++
net-nntp/sabnzbd/sabnzbd-0.7.20.ebuild | 9 +++++++--
3 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/net-nntp/sabnzbd/files/disable_growl_by_default.patch b/net-nntp/sabnzbd/files/disable_growl_by_default.patch
new file mode 100644
index 0000000..6761c72
--- /dev/null
+++ b/net-nntp/sabnzbd/files/disable_growl_by_default.patch
@@ -0,0 +1,15 @@
+diff --git a/sabnzbd/cfg.py b/sabnzbd/cfg.py
+index 39e418b..509a962 100644
+--- a/sabnzbd/cfg.py
++++ b/sabnzbd/cfg.py
+@@ -238,8 +238,8 @@ no_ipv6 = OptionBool('misc', 'no_ipv6', False)
+
+ growl_server = OptionStr('growl', 'growl_server')
+ growl_password = OptionPassword('growl', 'growl_password')
+-growl_enable = OptionBool('growl', 'growl_enable', not sabnzbd.DARWIN_ML)
+-ntfosd_enable = OptionBool('growl', 'ntfosd_enable', not sabnzbd.WIN32 and not sabnzbd.DARWIN)
++growl_enable = OptionBool('growl', 'growl_enable', 0)
++ntfosd_enable = OptionBool('growl', 'ntfosd_enable', 0)
+ ncenter_enable = OptionBool('growl', 'ncenter_enable', sabnzbd.DARWIN)
+ notify_classes = OptionList('growl', 'notify_classes', NOTIFY_KEYS)
+
diff --git a/net-nntp/sabnzbd/files/sabnzbd_at.service b/net-nntp/sabnzbd/files/sabnzbd_at.service
new file mode 100644
index 0000000..e3e7a82
--- /dev/null
+++ b/net-nntp/sabnzbd/files/sabnzbd_at.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=SABnzbd binary newsreader
+
+[Service]
+ExecStart=/usr/bin/sabnzbd --logging 1 --browser 0
+User=%I
+Group=%I
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-nntp/sabnzbd/sabnzbd-0.7.20.ebuild b/net-nntp/sabnzbd/sabnzbd-0.7.20.ebuild
index 4d8ee3b..67b063b 100644
--- a/net-nntp/sabnzbd/sabnzbd-0.7.20.ebuild
+++ b/net-nntp/sabnzbd/sabnzbd-0.7.20.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -8,7 +8,7 @@ EAPI="4"
PYTHON_DEPEND="2:2.6"
PYTHON_USE_WITH="sqlite"
-inherit eutils python user
+inherit eutils python user systemd
MY_P="${P/sab/SAB}"
@@ -66,6 +66,7 @@ src_prepare() {
epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
epatch "${FILESDIR}"/par2cmdline.patch
+ epatch "${FILESDIR}"/disable_growl_by_default.patch
# remove bundled modules
rm -r sabnzbd/utils/{feedparser,configobj}.py || die
@@ -99,6 +100,8 @@ src_install() {
doins "${FILESDIR}/${PN}.ini"
dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
+
+ systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service'
}
pkg_postinst() {
@@ -110,6 +113,8 @@ pkg_postinst() {
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)."
}
pkg_postrm() {
next reply other threads:[~2015-11-12 5:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 5:51 Justin Bronder [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-03-09 21:47 [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/files/, net-nntp/sabnzbd/ 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=1447307438.35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d.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