summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-17 18:45:05 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-17 18:45:05 +0000
commite1b9c9d3e32000b03ac714fe11115732b807a52d (patch)
tree01920fa603117139966fb0cef1d85323a6983f24 /net-analyzer/yersinia
parentNeeds pango with X. Bug #247004 (diff)
downloadgentoo-2-e1b9c9d3e32000b03ac714fe11115732b807a52d.tar.gz
gentoo-2-e1b9c9d3e32000b03ac714fe11115732b807a52d.tar.bz2
gentoo-2-e1b9c9d3e32000b03ac714fe11115732b807a52d.zip
Version bump. Fixed >libpcap-1.0.0 build issue, bug #247133, thank Willard Dawson for report.
(Portage version: 2.2_rc14/cvs/Linux 2.6.26-openvz.git-35f41f1 i686)
Diffstat (limited to 'net-analyzer/yersinia')
-rw-r--r--net-analyzer/yersinia/ChangeLog11
-rw-r--r--net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch14
-rw-r--r--net-analyzer/yersinia/yersinia-0.7.1.ebuild40
3 files changed, 63 insertions, 2 deletions
diff --git a/net-analyzer/yersinia/ChangeLog b/net-analyzer/yersinia/ChangeLog
index 49c9f3603a50..6574bf29632a 100644
--- a/net-analyzer/yersinia/ChangeLog
+++ b/net-analyzer/yersinia/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/yersinia
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/yersinia/ChangeLog,v 1.3 2007/04/08 13:13:28 jokey Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/yersinia/ChangeLog,v 1.4 2008/11/17 18:45:04 pva Exp $
+
+*yersinia-0.7.1 (17 Nov 2008)
+
+ 17 Nov 2008; Peter Volkov <pva@gentoo.org>
+ +files/yersinia-0.7.1-no-ncurses.patch, +yersinia-0.7.1.ebuild:
+ Version bump. Fixed >libpcap-1.0.0 build issue, bug #247133, thank Willard
+ Dawson for report.
08 Apr 2007; Markus Ullmann <jokey@gentoo.org> yersinia-0.7.ebuild:
Minor QA, stable on x86
diff --git a/net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch b/net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch
new file mode 100644
index 000000000000..7e25f3ed9ae4
--- /dev/null
+++ b/net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch
@@ -0,0 +1,14 @@
+=== modified file 'src/terminal.c'
+--- src/terminal.c 2008-11-17 18:29:55 +0000
++++ src/terminal.c 2008-11-17 18:33:17 +0000
+@@ -190,7 +190,9 @@
+ #endif
+
+ pthread_mutex_destroy(&terms->admin_listen_th.finished);
++#ifdef HAS_CURSES
+ pthread_mutex_destroy(&terms->gui_th.finished);
++#endif
+ pthread_mutex_destroy(&terms->pcap_listen_th.finished);
+ pthread_mutex_destroy(&terms->uptime_th.finished);
+
+
diff --git a/net-analyzer/yersinia/yersinia-0.7.1.ebuild b/net-analyzer/yersinia/yersinia-0.7.1.ebuild
new file mode 100644
index 000000000000..4629ec196396
--- /dev/null
+++ b/net-analyzer/yersinia/yersinia-0.7.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/yersinia/yersinia-0.7.1.ebuild,v 1.1 2008/11/17 18:45:04 pva Exp $
+
+inherit eutils
+
+DESCRIPTION="A layer 2 attack framework"
+HOMEPAGE="http://www.yersinia.net/"
+SRC_URI="http://www.yersinia.net/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="gtk ncurses"
+
+DEPEND="ncurses? ( >=sys-libs/ncurses-5.5 )
+ gtk? ( =x11-libs/gtk+-2* )
+ >=net-libs/libnet-1.1.2
+ >=net-libs/libpcap-0.9.4"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-no-ncurses.patch"
+ sed -e "s:^\(CFLAGS = \).*:\1${CFLAGS}:" -i src/Makefile.in
+}
+
+src_compile() {
+ econf \
+ --enable-admin \
+ --with-pcap-includes=/usr/include \
+ $(use_with ncurses) \
+ $(use_enable gtk)
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog FAQ README THANKS TODO || die
+}