public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/files/, net-nntp/sabnzbd/
@ 2015-11-12  5:51 Justin Bronder
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Bronder @ 2015-11-12  5:51 UTC (permalink / raw
  To: gentoo-commits

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() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/files/, net-nntp/sabnzbd/
@ 2017-03-09 21:47 Justin Bronder
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Bronder @ 2017-03-09 21:47 UTC (permalink / raw
  To: gentoo-commits

commit:     16437399ccd527c7e1b47d6efc7e2136f0d0e8e3
Author:     Justin Bronder <jsbronder <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  9 21:46:28 2017 +0000
Commit:     Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Thu Mar  9 21:47:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16437399

net-nntp/sabnzbd:  bump and systemd fix

bump: #611438, thanks to Sébastien P.
systemd fix: #611128, thanks to  Michael Hampicke.

Package-Manager: portage-2.3.3

 net-nntp/sabnzbd/Manifest                                       | 2 +-
 net-nntp/sabnzbd/files/sabnzbd_at.service                       | 2 +-
 net-nntp/sabnzbd/{sabnzbd-1.2.0.ebuild => sabnzbd-1.2.2.ebuild} | 0
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-nntp/sabnzbd/Manifest b/net-nntp/sabnzbd/Manifest
index d0ef2189c81..7429540f7af 100644
--- a/net-nntp/sabnzbd/Manifest
+++ b/net-nntp/sabnzbd/Manifest
@@ -1 +1 @@
-DIST SABnzbd-1.2.0-src.tar.gz 2721490 SHA256 0639b6e8086ee46e8d876effc2d466725e8b33e6b65e0538518f36986e4405b9 SHA512 e04d310e1743dd64bd6a500393e088a184ff2cebd8791cba49754941c4431ffd17b0c1c97c477697a1b68c621ea8aa92b4f3beff183cf84e1f4d751cf05d2ba7 WHIRLPOOL 9738bfb7713f5c0afe1a00f0a2c1cc95e43c074360eb2db5b63a4f612e492893361df50c622449e94d75aaba6226ed03a7cdb8c2da042c7b7baa9aafa1522460
+DIST SABnzbd-1.2.2-src.tar.gz 2725444 SHA256 0565ea3384f2f876c22ad0c07b96670fcb2514aefc73c47e315bb2d7b281c6c0 SHA512 b09ef295c71215b70065e1cb18bf581ebcd9404e7f8d8257f94cf50548c51ddc4afe109096b161186f2335038eb0b4a6707d409f3f7dc4c0ca9df9b0d288a7d3 WHIRLPOOL 055f669d3048db7610d7d7d86b63b0ed2dca39877f9758432aac10e5738d71f9f5c1273f948c7bec9d01cabffbf9e78392b534ea3438ff880bec9b647e6bb427

diff --git a/net-nntp/sabnzbd/files/sabnzbd_at.service b/net-nntp/sabnzbd/files/sabnzbd_at.service
index e3e7a82bdb3..e9fdc4a35de 100644
--- a/net-nntp/sabnzbd/files/sabnzbd_at.service
+++ b/net-nntp/sabnzbd/files/sabnzbd_at.service
@@ -2,7 +2,7 @@
 Description=SABnzbd binary newsreader
 
 [Service]
-ExecStart=/usr/bin/sabnzbd --logging 1 --browser 0
+ExecStart=/usr/share/sabnzbd/SABnzbd.py --logging 1 --browser 0
 User=%I
 Group=%I
 

diff --git a/net-nntp/sabnzbd/sabnzbd-1.2.0.ebuild b/net-nntp/sabnzbd/sabnzbd-1.2.2.ebuild
similarity index 100%
rename from net-nntp/sabnzbd/sabnzbd-1.2.0.ebuild
rename to net-nntp/sabnzbd/sabnzbd-1.2.2.ebuild


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-09 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12  5:51 [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/files/, net-nntp/sabnzbd/ Justin Bronder
  -- strict thread matches above, loose matches on Subject: below --
2017-03-09 21:47 Justin Bronder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox