net-analyzer/ettercap - 0.8.4.1 (gentoo)

Search

Install

Install this version:

emerge -a =net-analyzer/ettercap-0.8.4.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-analyzer/ettercap-0.8.4.1

Or alternatively:

emerge --autounmask-write -a =net-analyzer/ettercap-0.8.4.1

Package Information

Description:
Suite for man in the middle attacks
Homepage:
https://github.com/Ettercap/ettercap
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
0.8.4.1 8 ~alpha amd64 arm ppc ppc64 ~sparc x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake xdg

DESCRIPTION="Suite for man in the middle attacks"
HOMEPAGE="https://github.com/Ettercap/ettercap"

LICENSE="GPL-2+"
SLOT="0"

if [[ ${PV} == 9999 ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/Ettercap/${PN}.git"
else
	SRC_URI="https://github.com/Ettercap/${PN}/releases/download/v${PV}/${P}.tar.gz"
	KEYWORDS="~alpha amd64 arm ppc ppc64 ~sparc x86"
fi

IUSE="doc geoip gtk ipv6 ncurses +plugins test"
RESTRICT="!test? ( test )"

RDEPEND="
	dev-libs/libbsd
	dev-libs/libpcre2:=
	dev-libs/openssl:=
	net-libs/libnet:1.1
	>=net-libs/libpcap-0.8.1
	virtual/zlib:=
	geoip? ( dev-libs/libmaxminddb )
	gtk? (
		>=app-accessibility/at-spi2-core-2.46.0
		>=dev-libs/glib-2.2.2:2
		media-libs/freetype
		x11-libs/cairo
		x11-libs/gdk-pixbuf:2
		>=x11-libs/gtk+-3.12.0:3
		>=x11-libs/pango-1.2.3
	)
	ipv6? ( >=net-libs/libnet-1.1.5:1.1 )
	ncurses? ( >=sys-libs/ncurses-5.3:= )
	plugins? ( >=net-misc/curl-7.26.0 )
"
DEPEND="
	app-alternatives/yacc
	app-alternatives/lex
"
BDEPEND="
	doc? (
		app-text/ghostscript-gpl
		sys-apps/groff
	)
	test? ( dev-libs/check )
"

src_prepare() {
	sed -i "s:Release:Release Gentoo:" CMakeLists.txt || die
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DENABLE_CURSES="$(usex ncurses)"
		-DENABLE_PLUGINS="$(usex plugins)"
		-DENABLE_IPV6="$(usex ipv6)"
		-DENABLE_TESTS="$(usex test)"
		-DENABLE_PDF_DOCS="$(usex doc)"
		-DENABLE_GEOIP="$(usex geoip)"
		-DBUNDLED_LIBS=OFF
		-DSYSTEM_LIBS=ON
		-DINSTALL_SYSCONFDIR="${EPREFIX}"/etc
	)

	if use gtk ; then
		mycmakeargs+=(-DGTK_BUILD_TYPE=GTK3 -DENABLE_GTK=ON)
	else
		mycmakeargs+=(-DINSTALL_DESKTOP=OFF)
	fi

	cmake_src_configure
}

pkg_postinst() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}

pkg_postrm() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-analyzer/ettercap | euse -E <flag> -p net-analyzer/ettercap | euse -D <flag> -p net-analyzer/ettercap

Global/Standard Flags

doc
gtk
plugins
Default: Enabled (+)

Inherited Eclasses

xdg

Dependencies

DEPEND

	app-alternatives/yacc
	app-alternatives/lex

RDEPEND

	dev-libs/libbsd
	dev-libs/libpcre2:=
	dev-libs/openssl:=
	net-libs/libnet:1.1
	>=net-libs/libpcap-0.8.1
	virtual/zlib:=
	geoip? ( dev-libs/libmaxminddb )
	gtk? (
		>=app-accessibility/at-spi2-core-2.46.0
		>=dev-libs/glib-2.2.2:2
		media-libs/freetype
		x11-libs/cairo
		x11-libs/gdk-pixbuf:2
		>=x11-libs/gtk+-3.12.0:3
		>=x11-libs/pango-1.2.3
	)
	ipv6? ( >=net-libs/libnet-1.1.5:1.1 )
	ncurses? ( >=sys-libs/ncurses-5.3:= )
	plugins? ( >=net-misc/curl-7.26.0 )

BDEPEND

	doc? (
		app-text/ghostscript-gpl
		sys-apps/groff
	)
	test? ( dev-libs/check )

Manifest for 0.8.4.1

Type File Size Source URLs
DIST ettercap-0.8.4.1.tar.gz 5810125 bytes https://github.com/Ettercap/ettercap/releases/download/v0.8.4.1/ettercap-0.8.4.1.tar.gz