net-analyzer/ettercap: sync 9999

Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
This commit is contained in:
Agostino Sarubbo
2026-04-08 09:18:03 +02:00
parent 7157ff5ab4
commit 7213764de6

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
inherit cmake xdg
DESCRIPTION="Suite for man in the middle attacks"
HOMEPAGE="https://github.com/Ettercap/ettercap"
@@ -15,8 +15,8 @@ if [[ ${PV} == 9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Ettercap/${PN}.git"
else
SRC_URI="https://github.com/Ettercap/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~alpha amd64 arm ppc ppc64 ~sparc x86"
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"
@@ -24,21 +24,22 @@ RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/libbsd
dev-libs/libpcre2
dev-libs/libpcre2:=
dev-libs/openssl:=
net-libs/libnet:1.1
>=net-libs/libpcap-0.8.1
virtual/zlib:=
geoip? ( dev-libs/geoip )
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+-2.2.2: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 )
"
@@ -62,7 +63,6 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DENABLE_CURSES="$(usex ncurses)"
-DENABLE_GTK="$(usex gtk)"
-DENABLE_PLUGINS="$(usex plugins)"
-DENABLE_IPV6="$(usex ipv6)"
-DENABLE_TESTS="$(usex test)"
@@ -73,9 +73,21 @@ src_configure() {
-DINSTALL_SYSCONFDIR="${EPREFIX}"/etc
)
# right now we only support gtk2, but ettercap also supports gtk3
# do we care? do we want to support both?
! use gtk && mycmakeargs+=(-DINSTALL_DESKTOP=OFF)
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
}