1 |
radhermit 14/06/20 08:11:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nzbget-13.0_pre1042.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.86 net-nntp/nzbget/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.86&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?rev=1.86&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/ChangeLog?r1=1.85&r2=1.86 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v |
20 |
retrieving revision 1.85 |
21 |
retrieving revision 1.86 |
22 |
diff -u -r1.85 -r1.86 |
23 |
--- ChangeLog 25 Apr 2014 08:06:02 -0000 1.85 |
24 |
+++ ChangeLog 20 Jun 2014 08:11:51 -0000 1.86 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-nntp/nzbget |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.85 2014/04/25 08:06:02 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.86 2014/06/20 08:11:51 radhermit Exp $ |
30 |
+ |
31 |
+*nzbget-13.0_pre1042 (20 Jun 2014) |
32 |
+ |
33 |
+ 20 Jun 2014; Tim Harder <radhermit@g.o> +nzbget-13.0_pre1042.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*nzbget-13.0_pre979 (25 Apr 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-nntp/nzbget/nzbget-13.0_pre1042.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/nzbget-13.0_pre1042.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nntp/nzbget/nzbget-13.0_pre1042.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: nzbget-13.0_pre1042.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-13.0_pre1042.ebuild,v 1.1 2014/06/20 08:11:51 radhermit Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
inherit 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:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die |
87 |
|
88 |
sed \ |
89 |
-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 |
-e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \ |
93 |
-e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \ |
94 |
-e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \ |
95 |
"${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die |
96 |
|
97 |
sed -i "/^dist_doc_DATA/d" Makefile.am || die |
98 |
|
99 |
eautoreconf |
100 |
} |
101 |
|
102 |
src_configure() { |
103 |
econf \ |
104 |
$(use_enable debug) \ |
105 |
$(use_enable ncurses curses) \ |
106 |
$(use_enable parcheck) \ |
107 |
--disable-libpar2-bugfixes-check \ |
108 |
$(use_enable ssl tls) \ |
109 |
$(use_enable zlib gzip) \ |
110 |
--with-tlslib=$(usex gnutls GnuTLS OpenSSL) |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
default |
115 |
|
116 |
# remove unneeded service script |
117 |
rm "${D}"/usr/sbin/nzbgetd || die |
118 |
|
119 |
insinto /etc |
120 |
doins nzbget.conf |
121 |
doins nzbgetd.conf |
122 |
|
123 |
keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} |
124 |
keepdir /var/log/nzbget |
125 |
|
126 |
newinitd "${FILESDIR}"/nzbget.initd nzbget |
127 |
newconfd "${FILESDIR}"/nzbget.confd nzbget |
128 |
} |
129 |
|
130 |
pkg_preinst() { |
131 |
enewgroup nzbget |
132 |
enewuser nzbget -1 -1 /var/lib/nzbget nzbget |
133 |
|
134 |
fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} |
135 |
fperms 750 /var/lib/nzbget/{queue,tmp} |
136 |
fperms 770 /var/lib/nzbget/{dst,nzb} |
137 |
|
138 |
fowners nzbget:nzbget /var/log/nzbget |
139 |
fperms 750 /var/log/nzbget |
140 |
|
141 |
fowners nzbget:nzbget /etc/nzbgetd.conf |
142 |
fperms 640 /etc/nzbgetd.conf |
143 |
} |
144 |
|
145 |
pkg_postinst() { |
146 |
if [[ -z ${REPLACING_VERSIONS} ]] ; then |
147 |
elog |
148 |
elog "Please add users that you want to be able to use the system-wide" |
149 |
elog "nzbget daemon to the nzbget group. To access the daemon run nzbget" |
150 |
elog "with the --configfile /etc/nzbgetd.conf option." |
151 |
elog |
152 |
fi |
153 |
} |