1 |
radhermit 12/11/02 06:15:57 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nzbget-9.0_pre477.ebuild |
5 |
Log: |
6 |
Version bump to development release. Fix potential buffer overflows (bug #434264), change from /var/run to /run, remove need |
7 |
|
8 |
(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.46 net-nntp/nzbget/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.46&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.46&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?r1=1.45&r2=1.46 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v |
20 |
retrieving revision 1.45 |
21 |
retrieving revision 1.46 |
22 |
diff -u -r1.45 -r1.46 |
23 |
--- ChangeLog 6 Oct 2012 16:58:44 -0000 1.45 |
24 |
+++ ChangeLog 2 Nov 2012 06:15:57 -0000 1.46 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for net-nntp/nzbget |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.45 2012/10/06 16:58:44 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.46 2012/11/02 06:15:57 radhermit Exp $ |
30 |
+ |
31 |
+*nzbget-9.0_pre477 (02 Nov 2012) |
32 |
+ |
33 |
+ 02 Nov 2012; Tim Harder <radhermit@g.o> +nzbget-9.0_pre477.ebuild, |
34 |
+ +files/nzbget-9.0_pre477-buffer-overflows.patch, |
35 |
+ +files/nzbget-9.0_pre477-header.patch, files/nzbget.initd: |
36 |
+ Version bump to development release. Fix potential buffer overflows (bug |
37 |
+ #434264), change from /var/run to /run, remove need net from init script, and |
38 |
+ add zlib use flag. |
39 |
|
40 |
06 Oct 2012; Raúl Porcel <armin76@g.o> nzbget-0.8.0.ebuild: |
41 |
x86 stable wrt #433882 |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-nntp/nzbget/nzbget-9.0_pre477.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/nzbget-9.0_pre477.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/nzbget-9.0_pre477.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: nzbget-9.0_pre477.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-9.0_pre477.ebuild,v 1.1 2012/11/02 06:15:57 radhermit Exp $ |
55 |
|
56 |
EAPI="5" |
57 |
|
58 |
inherit eutils autotools user |
59 |
|
60 |
MY_P=${P/_pre/-testing-r} |
61 |
|
62 |
DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files" |
63 |
HOMEPAGE="http://nzbget.sourceforge.net/" |
64 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~x86" |
69 |
IUSE="debug gnutls ncurses parcheck ssl zlib " |
70 |
|
71 |
RDEPEND="dev-libs/libxml2 |
72 |
ncurses? ( sys-libs/ncurses ) |
73 |
parcheck? ( |
74 |
app-arch/libpar2 |
75 |
dev-libs/libsigc++:2 |
76 |
) |
77 |
ssl? ( |
78 |
gnutls? ( net-libs/gnutls ) |
79 |
!gnutls? ( dev-libs/openssl ) |
80 |
) |
81 |
zlib? ( sys-libs/zlib )" |
82 |
DEPEND="${RDEPEND} |
83 |
virtual/pkgconfig" |
84 |
|
85 |
DOCS=( AUTHORS ChangeLog README nzbget.conf ) |
86 |
|
87 |
S=${WORKDIR}/${P/_pre*/-testing} |
88 |
|
89 |
src_prepare() { |
90 |
sed -i 's:^PostProcess=.*:#PostProcess=/usr/share/nzbget/nzbget-postprocess.sh:' \ |
91 |
nzbget.conf || die |
92 |
|
93 |
sed -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ |
94 |
-e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ |
95 |
-e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \ |
96 |
"${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die |
97 |
|
98 |
sed -i "/^dist_doc_DATA/d" Makefile.am || die |
99 |
|
100 |
epatch "${FILESDIR}"/${PN}-0.7.0-underlinking.patch |
101 |
epatch "${FILESDIR}"/${P}-header.patch |
102 |
epatch "${FILESDIR}"/${P}-buffer-overflows.patch |
103 |
|
104 |
eautoreconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
econf \ |
109 |
$(use_enable debug) \ |
110 |
$(use_enable ncurses curses) \ |
111 |
$(use_enable parcheck) \ |
112 |
$(use_enable ssl tls) \ |
113 |
$(use_enable zlib gzip) \ |
114 |
--with-tlslib=$(usex gnutls GnuTLS OpenSSL) |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
default |
119 |
|
120 |
# remove unneeded service script |
121 |
rm "${D}"/usr/sbin/nzbgetd || die |
122 |
|
123 |
insinto /etc |
124 |
doins nzbget.conf |
125 |
doins nzbgetd.conf |
126 |
|
127 |
exeinto /usr/share/nzbget |
128 |
doexe nzbget-postprocess.sh |
129 |
|
130 |
# remove duplicate script/config |
131 |
rm "${D}"/usr/share/nzbget/nzbget.conf |
132 |
rm "${D}"/usr/bin/nzbget-postprocess.sh |
133 |
|
134 |
keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} |
135 |
keepdir /var/log/nzbget /run/nzbget |
136 |
|
137 |
newinitd "${FILESDIR}"/nzbget.initd nzbget |
138 |
newconfd "${FILESDIR}"/nzbget.confd nzbget |
139 |
} |
140 |
|
141 |
pkg_preinst() { |
142 |
enewgroup nzbget |
143 |
enewuser nzbget -1 -1 /var/lib/nzbget nzbget |
144 |
|
145 |
fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} |
146 |
fperms 750 /var/lib/nzbget/{queue,tmp} |
147 |
fperms 770 /var/lib/nzbget/{dst,nzb} |
148 |
|
149 |
fowners nzbget:nzbget /var/log/nzbget /run/nzbget |
150 |
fperms 750 /var/log/nzbget /run/nzbget |
151 |
|
152 |
fowners root:nzbget /etc/nzbgetd.conf |
153 |
fperms 640 /etc/nzbgetd.conf |
154 |
} |
155 |
|
156 |
pkg_postinst() { |
157 |
elog |
158 |
elog "Please add users that you want to be able to use the system-wide" |
159 |
elog "nzbget daemon to the nzbget group. To access the daemon run nzbget" |
160 |
elog "with the --configfile /etc/nzbgetd.conf option." |
161 |
elog |
162 |
} |