1 |
commit: 201562fcf6a606e5ebcb87f010d0b693f8d8f1c6 |
2 |
Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 14:33:22 2016 +0000 |
4 |
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 14:33:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=201562fc |
7 |
|
8 |
net-nntp/sabnzbd: remove 1.1.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-nntp/sabnzbd/Manifest | 1 - |
13 |
net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild | 134 ---------------------------------- |
14 |
2 files changed, 135 deletions(-) |
15 |
|
16 |
diff --git a/net-nntp/sabnzbd/Manifest b/net-nntp/sabnzbd/Manifest |
17 |
index 4f70bf4..3068fca 100644 |
18 |
--- a/net-nntp/sabnzbd/Manifest |
19 |
+++ b/net-nntp/sabnzbd/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST SABnzbd-1.1.0-src.tar.gz 2736977 SHA256 3e86a897dea1c276c54ee38667a980f644f16d57df75612fe9eefa84b339ce9a SHA512 4fd4304253ec66c7bc6038fe8eb7bc08f0133cc4eda9efb28349242574744f262369fe43786da5a22eb90664cfa7fb91356941174787c4faef7d7624751a86d2 WHIRLPOOL f5ef42a01cd1c79f28bbd42c6970b9a1b66846af266c027354494cd103d03d14d2914a3d2b88b1aef740a6e849b9e3216c639323f41146553c5f2dcdeef182aa |
22 |
DIST SABnzbd-1.1.1-src.tar.gz 2736427 SHA256 001f19c5a98de641da9fc69cff8ee885f3422d511a73e923dcb713aaca763d44 SHA512 77deebbbdb2286791d0d0615a1f438874bb85735279a7d8e1d553909ca1dba5ea84c66ed276023e7ccf9676fc13c25760f2bc191483195e7c47e2c03bd5c636a WHIRLPOOL 0693ecd8778ca9f47f89528b17ddeef0d9fa1c635acdcff881a4aac239834a4d14c0287e992f212b6be8e993f28a7c774d4a47b5beb716b7ebbc64dcd635f2a8 |
23 |
|
24 |
diff --git a/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild b/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild |
25 |
deleted file mode 100644 |
26 |
index 2a8eb75..00000000 |
27 |
--- a/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,134 +0,0 @@ |
30 |
-# Copyright 1999-2016 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
-# $Id$ |
33 |
- |
34 |
-EAPI="5" |
35 |
- |
36 |
-# Require python-2 with sqlite USE flag |
37 |
-PYTHON_DEPEND="2:2.7" |
38 |
-PYTHON_USE_WITH="sqlite" |
39 |
- |
40 |
-inherit eutils python user systemd versionator |
41 |
- |
42 |
-MY_P="${P/sab/SAB}" |
43 |
- |
44 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
45 |
-HOMEPAGE="http://www.sabnzbd.org/" |
46 |
-SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz" |
47 |
- |
48 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
49 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="~amd64" |
52 |
-IUSE="+rar +ssl unzip +yenc" |
53 |
- |
54 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
55 |
-# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging |
56 |
- |
57 |
-# TODO: still bundled but not in protage: |
58 |
-# kronos, rsslib, ssmtplib, listquote, json-py, msgfmt |
59 |
-# pynewsleecher |
60 |
-# |
61 |
-# Also note that cherrypy is still bundled. It's near impossible to find |
62 |
-# out where the bundled and heavily patched version came from (pulled from |
63 |
-# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched |
64 |
-# further. Upstream is planning on making this easier with 0.8.0. |
65 |
-# https://github.com/sabnzbd/sabnzbd/issues/47 |
66 |
- |
67 |
-RDEPEND=" |
68 |
- >=app-arch/par2cmdline-0.4 |
69 |
- >=dev-python/cheetah-2.0.1 |
70 |
- dev-python/configobj |
71 |
- dev-python/feedparser |
72 |
- dev-python/gntp |
73 |
- dev-python/pythonutils |
74 |
- dev-python/rarfile |
75 |
- net-misc/wget |
76 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
77 |
- ssl? ( dev-python/pyopenssl ) |
78 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
79 |
- yenc? ( dev-python/yenc ) |
80 |
-" |
81 |
- |
82 |
-S="${WORKDIR}/${MY_P}" |
83 |
- |
84 |
-pkg_setup() { |
85 |
- HOMEDIR="/var/lib/${PN}" |
86 |
- python_set_active_version 2 |
87 |
- python_pkg_setup |
88 |
- |
89 |
- # Create sabnzbd group |
90 |
- enewgroup ${PN} |
91 |
- # Create sabnzbd user, put in sabnzbd group |
92 |
- enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}" |
93 |
-} |
94 |
- |
95 |
-src_prepare() { |
96 |
- epatch "${FILESDIR}"/patches/0001-use-system-configobj-and-feedparser.patch |
97 |
- epatch "${FILESDIR}"/patches/0002-assume-gntp-1.0.patch |
98 |
- epatch "${FILESDIR}"/patches/0003-cfg-disable-growl-by-default.patch |
99 |
- epatch "${FILESDIR}"/patches/0004-use-system-rarfile.patch |
100 |
- |
101 |
- # remove bundled modules |
102 |
- rm -r sabnzbd/utils/{feedparser,configobj,rarfile}.py || die |
103 |
- rm -r gntp || die |
104 |
- rm licenses/License-{feedparser,configobj,gntp,rarfile}.txt || die |
105 |
-} |
106 |
- |
107 |
-src_install() { |
108 |
- local d |
109 |
- |
110 |
- dodir /usr/share/${PN}/sabnzbd |
111 |
- insinto /usr/share/${PN}/ |
112 |
- python_convert_shebangs 2 SABnzbd.py |
113 |
- doins SABnzbd.py |
114 |
- fperms +x /usr/share/${PN}/SABnzbd.py |
115 |
- |
116 |
- for d in cherrypy email icons interfaces locale po sabnzbd tools util; do |
117 |
- insinto /usr/share/${PN}/${d} |
118 |
- doins -r ${d}/* |
119 |
- done |
120 |
- |
121 |
- newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
122 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
123 |
- |
124 |
- diropts -o ${PN} -g ${PN} |
125 |
- dodir /etc/${PN} |
126 |
- dodir /var/log/${PN} |
127 |
- |
128 |
- insinto "/etc/${PN}" |
129 |
- insopts -m 0600 -o ${PN} -g ${PN} |
130 |
- doins "${FILESDIR}/${PN}.ini" |
131 |
- |
132 |
- dodoc {ABOUT,ISSUES,README}.txt licenses/* |
133 |
- |
134 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
135 |
-} |
136 |
- |
137 |
-pkg_postinst() { |
138 |
- python_mod_optimize /usr/share/${PN} |
139 |
- |
140 |
- einfo "Default directory: ${HOMEDIR}" |
141 |
- einfo "" |
142 |
- einfo "Run: gpasswd -a <user> sabnzbd" |
143 |
- einfo "to add a user to the sabnzbd group so it can edit sabnzbd files" |
144 |
- einfo "" |
145 |
- einfo "By default sabnzbd will listen on 127.0.0.1:8080" |
146 |
- einfo "As growl isn't default notification system on gentoo we disable it." |
147 |
- einfo "By default notifications are forwarded to the 23053 port(gntp)." |
148 |
- |
149 |
- local replacing |
150 |
- for replacing in ${REPLACING_VERSIONS}; do |
151 |
- if [ "$(get_major_version ${replacing})" == "0" ]; then |
152 |
- echo |
153 |
- ewarn "Upgrading from ${PN}-0.x.y to ${PN}-1.x.y introduces incompatible changes" |
154 |
- ewarn "See http://wiki.sabnzbd.org/introducing-1-0-0." |
155 |
- ewarn "In particular, you need to let your queue complete before restarting ${PN}" |
156 |
- break |
157 |
- fi |
158 |
- done |
159 |
-} |
160 |
- |
161 |
-pkg_postrm() { |
162 |
- python_mod_cleanup /usr/share/${PN} |
163 |
-} |