blob: 764f8df587a67a176b331d8b8c383b33dd227bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/znc/znc-0.202-r1.ebuild,v 1.2 2012/05/03 06:27:13 jdhore Exp $
EAPI=2
PYTHON_DEPEND="python? 3"
inherit base python
DESCRIPTION="An advanced IRC Bouncer"
HOMEPAGE="http://znc.sourceforge.net"
SRC_URI="http://znc.in/releases/archive/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="ares debug extras ipv6 perl python ssl sasl tcl"
RDEPEND="
ares? ( >=net-dns/c-ares-1.5 )
perl? ( >=dev-lang/perl-5.10 )
sasl? ( >=dev-libs/cyrus-sasl-2 )
ssl? ( >=dev-libs/openssl-0.9.7d )
tcl? ( dev-lang/tcl )
"
DEPEND="
virtual/pkgconfig
perl? ( dev-lang/swig )
python? (
>=dev-lang/swig-2.0.2
>=dev-lang/perl-5.10
)
${RDEPEND}
"
pkg_setup() {
if use python; then
python_set_active_version 3
python_pkg_setup
fi
}
src_prepare() {
# security fix, bug #398159
epatch "${FILESDIR}"/"${P}"-bouncedcc-dos-fix.patch
}
src_configure() {
econf \
$(use_enable ares c-ares) \
$(use_enable debug) \
$(use_enable extras extra) \
$(use_enable ipv6) \
$(use_enable perl) \
$(use python && echo "--enable-python=python-$(python_get_version)") \
$(use_enable sasl) \
$(use_enable ssl openssl) \
$(use_enable tcl tcl) \
|| die "econf failed"
}
src_install() {
emake install DESTDIR="${D}" || die "make install failed."
dodoc AUTHORS README.md || die "dodoc failed"
}
pkg_postinst() {
elog
elog "Run 'znc --makeconf' as the user you want to run ZNC as"
elog "to make a configuration file"
elog "If you are using SSL you should also run 'znc --makepem'"
elog
}
|