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