blob: 5f1b9927ec71ba361fd16b8e119008f77a8f8376 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ettercap-0.7.2.ebuild,v 1.1 2005/01/08 08:45:40 dragonheart Exp $
# the actual version is "NG-0.7.0" but I suppose portage people will not be
# happy with it (as for the 0.6.b version), so let's set it to "0.7.0".
# since 'ettercap NG' has to be intended as an upgrade to 0.6.x series and not as
# a new project or branch, this will be fine...
inherit flag-o-matic
MY_P=${PN}-NG-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="A suite for man in the middle attacks and network mapping"
HOMEPAGE="http://ettercap.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc ~hppa ~alpha ~amd64"
IUSE="ssl ncurses gtk debug"
# libtool is needed because it provides libltdl (needed for plugins)
RDEPEND="virtual/libc
sys-libs/zlib
>=sys-devel/libtool-1.4.3
>=net-libs/libnet-1.1.2.1
>=net-libs/libpcap-0.8.1
ncurses? ( sys-libs/ncurses )
ssl? ( dev-libs/openssl )
gtk? ( >=x11-libs/gtk+-2.2.2 )"
DEPEND=">=sys-apps/sed-4.0.5
>=sys-apps/portage-2.0.45-r3
${RDEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
#sed -i 's:exec_prefix="/usr/local":exec_prefix="$prefix":' configure
}
src_compile() {
strip-flags
local myconf
if use ssl; then
myconf="${myconf} --with-openssl=/usr"
else
myconf="${myconf} --without-openssl"
fi
econf ${myconf} \
`use_enable gtk gtk` \
`use_enable debug debug` \
`use_with ncurses ncurses` \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
}
|