Gentoo Archives: gentoo-commits

From: "Justin Bronder (jsbronder)" <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-nntp/sabnzbd: ChangeLog sabnzbd-0.7.17.ebuild
Date: Sat, 26 Apr 2014 19:59:54
Message-Id: 20140426195946.763BF20036@flycatcher.gentoo.org
1 jsbronder 14/04/26 19:59:46
2
3 Modified: ChangeLog
4 Added: sabnzbd-0.7.17.ebuild
5 Log:
6 Bump, #506318
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)
9
10 Revision Changes Path
11 1.21 net-nntp/sabnzbd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/sabnzbd/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/sabnzbd/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/sabnzbd/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 16 Jan 2014 17:44:02 -0000 1.20
24 +++ ChangeLog 26 Apr 2014 19:59:46 -0000 1.21
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-nntp/sabnzbd
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/ChangeLog,v 1.20 2014/01/16 17:44:02 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/ChangeLog,v 1.21 2014/04/26 19:59:46 jsbronder Exp $
30 +
31 +*sabnzbd-0.7.17 (26 Apr 2014)
32 +
33 + 26 Apr 2014; Justin Bronder <jsbronder@g.o> +sabnzbd-0.7.17.ebuild:
34 + Bump, #506318
35
36 16 Jan 2014; Jeroen Roovers <jer@g.o> sabnzbd-0.7.16.ebuild:
37 Spelling.
38
39
40
41 1.1 net-nntp/sabnzbd/sabnzbd-0.7.17.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/sabnzbd/sabnzbd-0.7.17.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/sabnzbd/sabnzbd-0.7.17.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sabnzbd-0.7.17.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/sabnzbd-0.7.17.ebuild,v 1.1 2014/04/26 19:59:46 jsbronder Exp $
51
52 EAPI="4"
53
54 # Require python-2 with sqlite USE flag
55 PYTHON_DEPEND="2:2.6"
56 PYTHON_USE_WITH="sqlite"
57
58 inherit eutils python user
59
60 MY_P="${P/sab/SAB}"
61
62 DESCRIPTION="Binary newsgrabber with web-interface"
63 HOMEPAGE="http://www.sabnzbd.org/"
64 SRC_URI="mirror://sourceforge/sabnzbdplus/${MY_P}-src.tar.gz"
65
66 # Sabnzbd is GPL-2 but bundles software with the following licenses.
67 LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1"
68 SLOT="0"
69 KEYWORDS="~amd64"
70 IUSE="+rar +ssl unzip +yenc"
71
72 # Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not
73 # be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging
74
75 # TODO: still bundled but not in protage:
76 # kronos, rarfile, rsslib, ssmtplib, listquote, json-py, msgfmt
77 # pynewsleecher
78 #
79 # Also note that cherrypy is still bundled. It's near impossible to find
80 # out where the bundled and heavily patched version came from (pulled from
81 # cherrypy subversion, patched somewhere, then imported to sabnzbd and patched
82 # further. Upstream is planning on making this easier with 0.8.0.
83 # https://github.com/sabnzbd/sabnzbd/issues/47
84
85 RDEPEND="
86 >=app-arch/par2cmdline-0.4
87 >=dev-python/cheetah-2.0.1
88 dev-python/configobj
89 dev-python/feedparser
90 dev-python/gntp
91 dev-python/pythonutils
92 net-misc/wget
93 rar? ( || ( app-arch/unrar app-arch/rar ) )
94 ssl? ( dev-python/pyopenssl )
95 unzip? ( >=app-arch/unzip-5.5.2 )
96 yenc? ( dev-python/yenc )
97 "
98
99 S="${WORKDIR}/${MY_P}"
100
101 pkg_setup() {
102 HOMEDIR="/var/lib/${PN}"
103 python_set_active_version 2
104 python_pkg_setup
105
106 # Create sabnzbd group
107 enewgroup ${PN}
108 # Create sabnzbd user, put in sabnzbd group
109 enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}"
110 }
111
112 src_prepare() {
113 epatch "${FILESDIR}"/use-system-configobj-and-feedparser.patch
114 epatch "${FILESDIR}"/growler-support-gntp-1.0.patch
115 epatch "${FILESDIR}"/par2cmdline.patch
116
117 # remove bundled modules
118 rm -r sabnzbd/utils/{feedparser,configobj}.py || die
119 rm -r gntp || die
120 rm licenses/License-{feedparser,configobj,gntp}.txt || die
121 }
122
123 src_install() {
124 local d
125
126 dodir /usr/share/${PN}/sabnzbd
127 insinto /usr/share/${PN}/
128 doins SABnzbd.py
129 fperms +x /usr/share/${PN}/SABnzbd.py
130 dobin "${FILESDIR}"/sabnzbd
131
132 for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
133 insinto /usr/share/${PN}/${d}
134 doins -r ${d}/*
135 done
136
137 newinitd "${FILESDIR}/${PN}.initd" "${PN}"
138 newconfd "${FILESDIR}/${PN}.confd" "${PN}"
139
140 diropts -o ${PN} -g ${PN}
141 dodir /etc/${PN}
142 dodir /var/log/${PN}
143
144 insinto "/etc/${PN}"
145 insopts -m 0600 -o ${PN} -g ${PN}
146 doins "${FILESDIR}/${PN}.ini"
147
148 dodoc {ABOUT,CHANGELOG,ISSUES,README}.txt Sample-PostProc.sh licenses/*
149 }
150
151 pkg_postinst() {
152 python_mod_optimize /usr/share/${PN}
153
154 einfo "Default directory: ${HOMEDIR}"
155 einfo ""
156 einfo "Run: gpasswd -a <user> sabnzbd"
157 einfo "to add a user to the sabnzbd group so it can edit sabnzbd files"
158 einfo ""
159 einfo "By default sabnzbd will listen on 127.0.0.1:8080"
160 }
161
162 pkg_postrm() {
163 python_mod_cleanup /usr/share/${PN}
164 }