Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-nntp/nzbget: metadata.xml ChangeLog nzbget-0.8.0_pre394.ebuild
Date: Tue, 30 Aug 2011 21:41:52
Message-Id: 20110830214141.3D41B2004C@flycatcher.gentoo.org
1 radhermit 11/08/30 21:41:41
2
3 Modified: metadata.xml ChangeLog
4 Added: nzbget-0.8.0_pre394.ebuild
5 Log:
6 Version bump (bug #375959). Add myself as a maintainer.
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 net-nntp/nzbget/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-nntp/nzbget/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 22 Aug 2008 19:52:40 -0000 1.2
24 +++ metadata.xml 30 Aug 2011 21:41:41 -0000 1.3
25 @@ -6,6 +6,10 @@
26 <email>swegener@g.o</email>
27 <name>Sven Wegener</name>
28 </maintainer>
29 + <maintainer>
30 + <email>radhermit@g.o</email>
31 + <name>Tim Harder</name>
32 + </maintainer>
33 <longdescription>A command-line based binary newsgrabber supporting .nzb files.</longdescription>
34 <use>
35 <flag name='parcheck'>Enable support for checking PAR archives</flag>
36
37
38
39 1.36 net-nntp/nzbget/ChangeLog
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.36&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.36&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?r1=1.35&r2=1.36
44
45 Index: ChangeLog
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v
48 retrieving revision 1.35
49 retrieving revision 1.36
50 diff -u -r1.35 -r1.36
51 --- ChangeLog 30 Aug 2011 21:32:40 -0000 1.35
52 +++ ChangeLog 30 Aug 2011 21:41:41 -0000 1.36
53 @@ -1,6 +1,12 @@
54 # ChangeLog for net-nntp/nzbget
55 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
56 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.35 2011/08/30 21:32:40 radhermit Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.36 2011/08/30 21:41:41 radhermit Exp $
58 +
59 +*nzbget-0.8.0_pre394 (30 Aug 2011)
60 +
61 + 30 Aug 2011; Tim Harder <radhermit@g.o> +nzbget-0.8.0_pre394.ebuild,
62 + metadata.xml:
63 + Version bump (bug #375959). Add myself as a maintainer.
64
65 30 Aug 2011; Tim Harder <radhermit@g.o> nzbget-0.7.0.ebuild,
66 +files/nzbget-0.7.0-underlinking.patch:
67
68
69
70 1.1 net-nntp/nzbget/nzbget-0.8.0_pre394.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/nzbget-0.8.0_pre394.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/nzbget-0.8.0_pre394.ebuild?rev=1.1&content-type=text/plain
74
75 Index: nzbget-0.8.0_pre394.ebuild
76 ===================================================================
77 # Copyright 1999-2011 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.8.0_pre394.ebuild,v 1.1 2011/08/30 21:41:41 radhermit Exp $
80
81 EAPI="4"
82
83 inherit eutils autotools
84
85 MY_P="${P/_pre/-testing-r}"
86
87 DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
88 HOMEPAGE="http://nzbget.sourceforge.net/"
89 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
90
91 LICENSE="GPL-2"
92 SLOT="0"
93 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
94 IUSE="debug ssl gnutls ncurses parcheck"
95
96 RDEPEND="dev-libs/libxml2
97 ssl? (
98 gnutls? ( net-libs/gnutls )
99 !gnutls? ( dev-libs/openssl )
100 )
101 ncurses? ( sys-libs/ncurses )
102 parcheck? (
103 app-arch/libpar2
104 dev-libs/libsigc++:2
105 )"
106 DEPEND="${RDEPEND}
107 dev-util/pkgconfig"
108
109 DOCS=( AUTHORS ChangeLog README nzbget.conf.example )
110
111 S="${WORKDIR}"/${P/_pre*/-testing}
112
113 src_prepare() {
114 sed \
115 -i \
116 -e 's:^PostProcess=.*:#PostProcess=/usr/share/nzbget/postprocess-example.sh:' \
117 nzbget.conf.example \
118 || die "sed nzbget.conf.example failed"
119
120 sed \
121 -e 's:^$MAINDIR=.*:$MAINDIR=/var/lib/nzbget:' \
122 -e 's:^LockFile=.*:LockFile=/var/run/nzbget/nzbget.pid:' \
123 -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
124 "${S}"/nzbget.conf.example >"${S}"/nzbgetd.conf.example \
125 || die "sed nzbgetd.conf.example failed"
126
127 epatch "${FILESDIR}"/${PN}-0.7.0-openssl-1.patch \
128 "${FILESDIR}"/${PN}-0.7.0-underlinking.patch
129
130 eautoreconf
131 }
132
133 src_configure() {
134 econf \
135 $(use_enable debug) \
136 $(use_enable ncurses curses) \
137 $(use_enable parcheck) \
138 $(use_enable ssl tls) \
139 --with-tlslib=$(use gnutls && echo GnuTLS || echo OpenSSL)
140 }
141
142 src_install() {
143 default
144
145 insinto /etc
146 newins nzbget.conf.example nzbget.conf
147 newins nzbgetd.conf.example nzbgetd.conf
148
149 keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
150 keepdir /var/{log,run}/nzbget
151
152 newinitd "${FILESDIR}"/nzbget.initd nzbget
153 newconfd "${FILESDIR}"/nzbget.confd nzbget
154
155 exeinto /usr/share/nzbget
156 doexe postprocess-example.sh
157
158 insinto /usr/share/nzbget
159 doins postprocess-example.conf
160 }
161
162 pkg_preinst() {
163 enewgroup nzbget
164 enewuser nzbget -1 -1 /var/lib/nzbget nzbget
165
166 fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
167 fperms 750 /var/lib/nzbget/{queue,tmp}
168 fperms 770 /var/lib/nzbget/{dst,nzb}
169
170 fowners nzbget:nzbget /var/{log,run}/nzbget
171 fperms 750 /var/{log,run}/nzbget
172
173 fowners root:nzbget /etc/nzbgetd.conf
174 fperms 640 /etc/nzbgetd.conf
175 }
176
177 pkg_postinst() {
178 elog
179 elog "Please add users that you want to be able to use the system-wide"
180 elog "nzbget daemon to the nzbget group. To access the daemon run nzbget"
181 elog "with the --configfile /etc/nzbgetd.conf option."
182 elog
183 }