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