blob: 102940c41f0312fd515c74cfea2c93e6fd8f8138 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ettercap-0.7.5_pre20120928.ebuild,v 1.1 2012/09/28 16:01:36 ago Exp $
EAPI=4
inherit cmake-utils
DESCRIPTION="A suite for man in the middle attacks and network mapping"
HOMEPAGE="http://ettercap.sourceforge.net/"
SRC_URI="http://dev.gentoo.org/~ago/distfiles/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="gtk ipv6 ncurses plugins ssl"
RDEPEND="dev-libs/libpcre
net-libs/libnet:1.1
net-libs/libpcap
sys-libs/zlib
gtk? (
dev-libs/atk
dev-libs/glib:2
media-libs/freetype
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
x11-libs/pango
)
ncurses? ( sys-libs/ncurses )
plugins? ( >=net-misc/curl-7.26.0 )
ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}
sys-devel/flex
virtual/yacc"
src_prepare() {
#ettercap defaults to using mozilla so let's try to use xdg-open and pray it works
sed -i 's#mozilla -remote openurl(http://%host%url)#xdg-open 'http://%host%url'#' "${S}"/share/etter.conf || die
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_enable ncurses CURSES)
$(cmake-utils_use_enable gtk)
$(cmake-utils_use_enable ssl)
$(cmake-utils_use_enable plugins)
$(cmake-utils_use_enable ipv6)
)
cmake-utils_src_configure
}
|