| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ettercap-0.7.4.1.ebuild,v 1.3 2012/08/19 02:56:26 zerochaos Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit eutils autotools
|
| 8 |
|
| 9 |
DESCRIPTION="A suite for man in the middle attacks and network mapping"
|
| 10 |
HOMEPAGE="http://ettercap.sourceforge.net/"
|
| 11 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
| 16 |
IUSE="debug gtk ncurses pcre ssl"
|
| 17 |
|
| 18 |
# libtool is needed because it provides libltdl (needed for plugins)
|
| 19 |
RDEPEND=">=net-libs/libnet-1.1.2.1-r1
|
| 20 |
net-libs/libpcap
|
| 21 |
sys-devel/libtool
|
| 22 |
sys-libs/zlib
|
| 23 |
gtk? (
|
| 24 |
>=dev-libs/glib-2.2.2:2
|
| 25 |
>=x11-libs/gtk+-2.2.2:2
|
| 26 |
)
|
| 27 |
ncurses? ( sys-libs/ncurses )
|
| 28 |
pcre? ( dev-libs/libpcre )
|
| 29 |
ssl? ( dev-libs/openssl )"
|
| 30 |
DEPEND="${RDEPEND}
|
| 31 |
virtual/pkgconfig
|
| 32 |
sys-devel/flex
|
| 33 |
virtual/yacc"
|
| 34 |
|
| 35 |
S=${WORKDIR}/${PN}
|
| 36 |
|
| 37 |
src_prepare() {
|
| 38 |
epatch "${FILESDIR}"/${PN}-0.7.3-as-needed.patch
|
| 39 |
epatch "${FILESDIR}"/${PN}-0.7.4-autotools.patch
|
| 40 |
epatch "${FILESDIR}"/${PN}-0.7.4-flags.patch
|
| 41 |
epatch "${FILESDIR}"/${PN}-0.7.4-use-g-idle.patch
|
| 42 |
|
| 43 |
eautoreconf
|
| 44 |
|
| 45 |
#ettercap defaults to using mozilla so let's try to use xdg-open and pray it works
|
| 46 |
sed -i 's#mozilla -remote openurl(http://%host%url)#xdg-open 'http://%host%url'#' "${S}"/share/etter.conf
|
| 47 |
}
|
| 48 |
|
| 49 |
src_configure() {
|
| 50 |
econf \
|
| 51 |
$(use_enable debug) \
|
| 52 |
$(use_enable gtk) \
|
| 53 |
$(use_with ncurses libncurses "${EPREFIX}"/usr) \
|
| 54 |
$(use_with pcre libpcre "${EPREFIX}"/usr) \
|
| 55 |
$(use_with ssl openssl "${EPREFIX}"/usr)
|
| 56 |
}
|