summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2015-11-12 00:50:38 -0500
committerJustin Bronder <jsbronder@gentoo.org>2015-11-12 00:50:38 -0500
commit35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d (patch)
tree435f0418263e67d2f39f214f502474aaddb47d44 /net-nntp/sabnzbd/files
parentx11-drivers/xf86-video-ati: Require xorg-server[glamor] for USE=glamor. (diff)
downloadgentoo-35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d.tar.gz
gentoo-35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d.tar.bz2
gentoo-35b62e4cf4ea1f95344279c71edc0c2c1bc0fd8d.zip
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
Diffstat (limited to 'net-nntp/sabnzbd/files')
-rw-r--r--net-nntp/sabnzbd/files/disable_growl_by_default.patch15
-rw-r--r--net-nntp/sabnzbd/files/sabnzbd_at.service10
2 files changed, 25 insertions, 0 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 000000000000..6761c726a3a4
--- /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 000000000000..e3e7a82bdb3e
--- /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