* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/yersinia/files/, net-analyzer/yersinia/
@ 2020-01-28 15:38 Jeroen Roovers
0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2020-01-28 15:38 UTC (permalink / raw
To: gentoo-commits
commit: d4645a4940923b40d8785e4ea7e6d774f81b0785
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 28 15:37:51 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> 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 <jer <AT> 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}"
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/yersinia/files/, net-analyzer/yersinia/
@ 2025-02-10 9:22 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-02-10 9:22 UTC (permalink / raw
To: gentoo-commits
commit: ea83bb053b636dd119b8aea5d503a440997f8da2
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Mon Jan 6 16:17:29 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 09:19:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea83bb05
net-analyzer/yersinia: Port to C23
Bug: https://bugs.gentoo.org/943801
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40014
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-analyzer/yersinia/files/yersinia-0.8.2-C23.patch | 12 ++++++++++++
net-analyzer/yersinia/yersinia-0.8.2_p20221119.ebuild | 3 ++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/net-analyzer/yersinia/files/yersinia-0.8.2-C23.patch b/net-analyzer/yersinia/files/yersinia-0.8.2-C23.patch
new file mode 100644
index 000000000000..6cbfde50ed11
--- /dev/null
+++ b/net-analyzer/yersinia/files/yersinia-0.8.2-C23.patch
@@ -0,0 +1,12 @@
+diff -ru a/src/yersinia.c b/src/yersinia.c
+--- a/src/yersinia.c 2025-01-06 20:10:12.501482780 +0400
++++ b/src/yersinia.c 2025-01-06 20:11:08.635172681 +0400
+@@ -927,7 +927,7 @@
+ * POSIX functions for signals
+ */
+ int
+-posix_signal( int signo, void (*handler)() )
++posix_signal( int signo, void (*handler)(int) )
+ {
+ struct sigaction act;
+
diff --git a/net-analyzer/yersinia/yersinia-0.8.2_p20221119.ebuild b/net-analyzer/yersinia/yersinia-0.8.2_p20221119.ebuild
index 3dd4b4f768e5..45575b519ea0 100644
--- a/net-analyzer/yersinia/yersinia-0.8.2_p20221119.ebuild
+++ b/net-analyzer/yersinia/yersinia-0.8.2_p20221119.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -36,6 +36,7 @@ DOCS=( AUTHORS ChangeLog FAQ README THANKS TODO )
PATCHES=(
"${FILESDIR}"/${PN}-0.7.1-no-ncurses.patch
"${FILESDIR}"/${PN}-0.7.3-tinfo.patch
+ "${FILESDIR}"/${PN}-0.8.2-C23.patch
)
src_prepare() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-10 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-28 15:38 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/yersinia/files/, net-analyzer/yersinia/ Jeroen Roovers
-- strict thread matches above, loose matches on Subject: below --
2025-02-10 9:22 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox