Gentoo Archives: gentoo-commits

From: "Sven Wegener (swegener)" <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-nntp/nzbget: ChangeLog nzbget-0.6.0.ebuild
Date: Sat, 06 Jun 2009 08:49:46
Message-Id: E1MCraw-0006OI-PZ@stork.gentoo.org
1 swegener 09/06/06 08:49:42
2
3 Modified: ChangeLog
4 Added: nzbget-0.6.0.ebuild
5 Log:
6 Version bump. Thanks to Klaus Birkelund Jensen in bug #272489.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.24 net-nntp/nzbget/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.24&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.24&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/nzbget/ChangeLog?r1=1.23&r2=1.24
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v
19 retrieving revision 1.23
20 retrieving revision 1.24
21 diff -u -r1.23 -r1.24
22 --- ChangeLog 4 Oct 2008 16:40:09 -0000 1.23
23 +++ ChangeLog 6 Jun 2009 08:49:42 -0000 1.24
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-nntp/nzbget
26 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.23 2008/10/04 16:40:09 swegener Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.24 2009/06/06 08:49:42 swegener Exp $
30 +
31 +*nzbget-0.6.0 (06 Jun 2009)
32 +
33 + 06 Jun 2009; Sven Wegener <swegener@g.o> +nzbget-0.6.0.ebuild:
34 + Version bump. Thanks to Klaus Birkelund Jensen in bug #272489.
35
36 *nzbget-0.5.1 (04 Oct 2008)
37
38
39
40
41 1.1 net-nntp/nzbget/nzbget-0.6.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/nzbget/nzbget-0.6.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/nzbget/nzbget-0.6.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nzbget-0.6.0.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.6.0.ebuild,v 1.1 2009/06/06 08:49:42 swegener Exp $
51
52 EAPI="2"
53
54 inherit eutils
55
56 DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
57 HOMEPAGE="http://nzbget.sourceforge.net"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
63 IUSE="debug ssl gnutls ncurses parcheck"
64
65 DEPEND="dev-libs/libxml2
66 ssl? (
67 gnutls? ( net-libs/gnutls )
68 !gnutls? ( dev-libs/openssl )
69 )
70 ncurses? ( sys-libs/ncurses )
71 parcheck? (
72 app-arch/libpar2
73 dev-libs/libsigc++:2
74 )"
75 RDEPEND="${DEPEND}"
76
77 src_prepare() {
78 sed \
79 -e 's:^$MAINDIR=.*:$MAINDIR=/var/lib/nzbget:' \
80 -e 's:^LockFile=.*:LockFile=/var/run/nzbget/nzbget.pid:' \
81 -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
82 "${S}"/nzbget.conf.example > "${S}"/nzbgetd.conf.example \
83 || die "sed nzbgetd.conf.example failed"
84 }
85
86 src_configure() {
87 econf \
88 $(use_enable debug) \
89 $(use_enable ncurses curses) \
90 $(use_enable parcheck) \
91 $(use_enable ssl tls) \
92 --with-tlslib=$(use gnutls && echo GnuTLS || echo OpenSSL) \
93 || die "econf failed"
94 }
95
96 src_install() {
97 emake install DESTDIR="${D}" || die "emake install failed"
98
99 insinto /etc
100 newins nzbget.conf.example nzbget.conf || die "newins failed"
101 newins nzbgetd.conf.example nzbgetd.conf || die "newins failed"
102
103 keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
104 keepdir /var/{log,run}/nzbget
105
106 newinitd "${FILESDIR}"/nzbget.initd nzbget
107 newconfd "${FILESDIR}"/nzbget.confd nzbget
108
109 dodoc AUTHORS ChangeLog README nzbget.conf.example || die "dodoc failed"
110 }
111
112 pkg_preinst() {
113 enewgroup nzbget
114 enewuser nzbget -1 -1 /var/lib/nzbget nzbget
115
116 fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
117 fperms 750 /var/lib/nzbget/{queue,tmp}
118 fperms 770 /var/lib/nzbget/{dst,nzb}
119
120 fowners nzbget:nzbget /var/{log,run}/nzbget
121 fperms 750 /var/{log,run}/nzbget
122
123 fowners root:nzbget /etc/nzbgetd.conf
124 fperms 640 /etc/nzbgetd.conf
125 }
126
127 pkg_postinst() {
128 elog
129 elog "Please add users that you want to be able to use the system-wide"
130 elog "nzbget daemon to the nzbget group. To access the daemon run nzbget"
131 elog "with the --configfile /etc/nzbgetd.conf option."
132 elog
133 }