From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5572C138351 for ; Tue, 28 Jan 2020 15:38:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66E22E083D; Tue, 28 Jan 2020 15:38:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2D6ACE083D for ; Tue, 28 Jan 2020 15:38:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A3B2B34E406 for ; Tue, 28 Jan 2020 15:38:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ADC31107 for ; Tue, 28 Jan 2020 15:38:34 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1580225905.d4645a4940923b40d8785e4ea7e6d774f81b0785.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/yersinia/files/, net-analyzer/yersinia/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/yersinia/files/yersinia-9999-tinfo.patch net-analyzer/yersinia/yersinia-9999.ebuild X-VCS-Directories: net-analyzer/yersinia/files/ net-analyzer/yersinia/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: d4645a4940923b40d8785e4ea7e6d774f81b0785 X-VCS-Branch: master Date: Tue, 28 Jan 2020 15:38:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: df6d48fe-1e5b-4d84-9e10-57fd47a090da X-Archives-Hash: a287c8a3bbdf638534ed8cf65d65d5cb commit: d4645a4940923b40d8785e4ea7e6d774f81b0785 Author: Jeroen Roovers gentoo org> AuthorDate: Tue Jan 28 15:37:51 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Tue Jan 28 15:38:25 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4645a49 net-analyzer/yersinia: Add live ebuild Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> .../yersinia/files/yersinia-9999-tinfo.patch | 27 ++++++++++ net-analyzer/yersinia/yersinia-9999.ebuild | 59 ++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/net-analyzer/yersinia/files/yersinia-9999-tinfo.patch b/net-analyzer/yersinia/files/yersinia-9999-tinfo.patch new file mode 100644 index 00000000000..b5bf566c107 --- /dev/null +++ b/net-analyzer/yersinia/files/yersinia-9999-tinfo.patch @@ -0,0 +1,27 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -467,6 +467,7 @@ + AC_DEFINE(HAVE_REMOTE_ADMIN) + fi + ++PKG_CHECK_MODULES(ncurses,ncurses) + + dnl Curses detection: Munged from Midnight Commander's configure.in + dnl +@@ -616,6 +617,16 @@ + AC_DEFINE(USE_NCURSES) + AC_DEFINE(HAS_CURSES) + has_curses=true ++ else ++ if test "$ncurses_LIBS" ; then ++ CURSES_LIBS="$ncurses_LIBS" ++ CURSES_INCLUDEDIR="$ncurses_CFLAGS" ++ search_ncurses=false ++ screen_manager="ncurses" ++ AC_DEFINE(USE_NCURSES) ++ AC_DEFINE(HAS_CURSES) ++ has_curses=true ++ fi + fi + ) + diff --git a/net-analyzer/yersinia/yersinia-9999.ebuild b/net-analyzer/yersinia/yersinia-9999.ebuild new file mode 100644 index 00000000000..f2825d6f6f1 --- /dev/null +++ b/net-analyzer/yersinia/yersinia-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools flag-o-matic git-r3 + +DESCRIPTION="A framework for layer 2 attacks" +HOMEPAGE="https://github.com/tomac/yersinia" +EGIT_REPO_URI="https://github.com/tomac/yersinia" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="gtk ncurses" + +RDEPEND=" + ncurses? ( >=sys-libs/ncurses-5.5:= ) + gtk? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf + =x11-libs/gtk+-2* + ) + >=net-libs/libnet-1.1.2 + >=net-libs/libpcap-0.9.4 +" +DEPEND=" + virtual/pkgconfig + ${RDEPEND} +" +DOCS=( AUTHORS ChangeLog FAQ README THANKS TODO ) +PATCHES=( + "${FILESDIR}"/${PN}-0.7.1-no-ncurses.patch + "${FILESDIR}"/${PN}-9999-tinfo.patch +) + +src_prepare() { + default + + if ! use gtk; then + #bug #514802 + sed -i -e '/AM_GLIB_GNU_GETTEXT/d' configure.in || die + fi + + eautoreconf +} + +src_configure() { + append-cflags -fcommon + + econf \ + --enable-admin \ + --with-pcap-includes=/usr/include \ + $(use_with ncurses) \ + $(use_enable gtk) +} + +src_compile() { + emake CFLAGS="${CFLAGS}" +}