Line
Link Here
|
0 |
-- nzbget-0.7.0.ebuild |
0 |
++ nzbget-0.8.0_pre394.ebuild |
Lines 1-8
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.7.0.ebuild,v 1.5 2010/09/11 18:59:05 armin76 Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit eutils |
7 |
inherit eutils |
8 |
|
8 |
|
Lines 14-20
Link Here
|
14 |
|
14 |
|
15 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="alpha amd64 ~ppc x86" |
17 |
KEYWORDS="~alpha ~amd64 ~ppc ~x86" |
18 |
IUSE="debug ssl gnutls ncurses parcheck" |
18 |
IUSE="debug ssl gnutls ncurses parcheck" |
19 |
|
19 |
|
20 |
DEPEND="dev-libs/libxml2 |
20 |
DEPEND="dev-libs/libxml2 |
Lines 29-34
Link Here
|
29 |
)" |
29 |
)" |
30 |
RDEPEND="${DEPEND}" |
30 |
RDEPEND="${DEPEND}" |
31 |
|
31 |
|
|
|
32 |
DOCS=( AUTHORS ChangeLog README nzbget.conf.example ) |
33 |
|
32 |
S="${WORKDIR}"/${P/_pre*/-testing} |
34 |
S="${WORKDIR}"/${P/_pre*/-testing} |
33 |
|
35 |
|
34 |
src_prepare() { |
36 |
src_prepare() { |
Lines 45-51
Link Here
|
45 |
"${S}"/nzbget.conf.example >"${S}"/nzbgetd.conf.example \ |
47 |
"${S}"/nzbget.conf.example >"${S}"/nzbgetd.conf.example \ |
46 |
|| die "sed nzbgetd.conf.example failed" |
48 |
|| die "sed nzbgetd.conf.example failed" |
47 |
|
49 |
|
48 |
epatch "${FILESDIR}"/${P}-openssl-1.patch |
50 |
epatch "${FILESDIR}"/${PN}-0.7.0-openssl-1.patch |
49 |
} |
51 |
} |
50 |
|
52 |
|
51 |
src_configure() { |
53 |
src_configure() { |
Lines 54-69
Link Here
|
54 |
$(use_enable ncurses curses) \ |
56 |
$(use_enable ncurses curses) \ |
55 |
$(use_enable parcheck) \ |
57 |
$(use_enable parcheck) \ |
56 |
$(use_enable ssl tls) \ |
58 |
$(use_enable ssl tls) \ |
57 |
--with-tlslib=$(use gnutls && echo GnuTLS || echo OpenSSL) \ |
59 |
--with-tlslib=$(use gnutls && echo GnuTLS || echo OpenSSL) |
58 |
|| die "econf failed" |
|
|
59 |
} |
60 |
} |
60 |
|
61 |
|
61 |
src_install() { |
62 |
src_install() { |
62 |
emake install DESTDIR="${D}" || die "emake install failed" |
63 |
default |
63 |
|
64 |
|
64 |
insinto /etc |
65 |
insinto /etc |
65 |
newins nzbget.conf.example nzbget.conf || die "newins failed" |
66 |
newins nzbget.conf.example nzbget.conf |
66 |
newins nzbgetd.conf.example nzbgetd.conf || die "newins failed" |
67 |
newins nzbgetd.conf.example nzbgetd.conf |
67 |
|
68 |
|
68 |
keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} |
69 |
keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} |
69 |
keepdir /var/{log,run}/nzbget |
70 |
keepdir /var/{log,run}/nzbget |
Lines 76-83
Link Here
|
76 |
|
77 |
|
77 |
insinto /usr/share/nzbget |
78 |
insinto /usr/share/nzbget |
78 |
doins postprocess-example.conf |
79 |
doins postprocess-example.conf |
79 |
|
|
|
80 |
dodoc AUTHORS ChangeLog README nzbget.conf.example || die "dodoc failed" |
81 |
} |
80 |
} |
82 |
|
81 |
|
83 |
pkg_preinst() { |
82 |
pkg_preinst() { |