From 1d18b53ed419c49eb3f71637ccd58a431c1368d4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 14 Apr 2023 05:44:50 +0100 Subject: gentoo auto-resync : 14:04:2023 - 05:44:49 --- net-analyzer/ettercap/ettercap-0.8.3.1-r3.ebuild | 86 ++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 net-analyzer/ettercap/ettercap-0.8.3.1-r3.ebuild (limited to 'net-analyzer/ettercap/ettercap-0.8.3.1-r3.ebuild') diff --git a/net-analyzer/ettercap/ettercap-0.8.3.1-r3.ebuild b/net-analyzer/ettercap/ettercap-0.8.3.1-r3.ebuild new file mode 100644 index 000000000000..26b54257f1db --- /dev/null +++ b/net-analyzer/ettercap/ettercap-0.8.3.1-r3.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +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}/archive/v${PV}.tar.gz -> ${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/libpcre + dev-libs/openssl:= + net-libs/libnet:1.1 + >=net-libs/libpcap-0.8.1 + sys-libs/zlib + geoip? ( dev-libs/geoip ) + 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/pango-1.2.3 + ) + ncurses? ( >=sys-libs/ncurses-5.3:= ) + plugins? ( >=net-misc/curl-7.26.0 ) +" +DEPEND=" + app-alternatives/yacc + sys-devel/flex +" +BDEPEND=" + doc? ( + app-text/ghostscript-gpl + sys-apps/groff + ) + test? ( dev-libs/check ) +" + +PATCHES=( + "${FILESDIR}"/${P}-curl-8.patch + "${FILESDIR}"/${P}-musl.patch #897820 +) + +src_prepare() { + sed -i "s:Release:Release Gentoo:" CMakeLists.txt || die + cmake_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)" + -DENABLE_PDF_DOCS="$(usex doc)" + -DENABLE_GEOIP="$(usex geoip)" + -DBUNDLED_LIBS=OFF + -DSYSTEM_LIBS=ON + -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) + + cmake_src_configure +} -- cgit v1.2.3