From a71a7ca20095f88e9b075944056fa1eefabfc872 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Thu, 24 Aug 2017 14:42:36 +0200 Subject: net-analyzer/yersinia: Version bump. Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- net-analyzer/yersinia/Manifest | 1 + net-analyzer/yersinia/yersinia-0.8.2.ebuild | 53 +++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 net-analyzer/yersinia/yersinia-0.8.2.ebuild (limited to 'net-analyzer/yersinia') diff --git a/net-analyzer/yersinia/Manifest b/net-analyzer/yersinia/Manifest index d1a86e20572a..ee8e8e0fff45 100644 --- a/net-analyzer/yersinia/Manifest +++ b/net-analyzer/yersinia/Manifest @@ -1 +1,2 @@ DIST yersinia-0.7.3.tar.gz 378124 SHA256 042abc466c5b470b97079e0049b4029a8cbb75d583cfbfb756fca76e460d40b4 SHA512 60a1b58e6d76448e9332656645b468a6aa66afa0f45ea4b70a929651194a294b9b559bbe5fbacaeb475126e7ac248cd97c29f3177e5080286b2f551f1400d339 WHIRLPOOL bf554765fb4d8a5a2c4bef78841c58c8712cd3b44c3d325e0b92b51ff4ff629a377ce78471df45d1307341ff9fd3099945d5359a86df47aebafeca7b447a2c8b +DIST yersinia-0.8.2.tar.gz 387889 SHA256 964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f SHA512 2c7c89f19b6791150c472a6066b6ffaf9ac5b3d1a3d2e6a27f91293bba9a0f72d147266731e5e2670e4bf7e67ccf04b6e353071ca42d3d281b25126c9bfcb1dd WHIRLPOOL 4c2d075fadebb3e6da9751f0d502dcbdbba997a48ed9616b56fc34a5fd2ea7a41aa9ef293cc88316963344254e72650188568c337535c3129d6445a716e24678 diff --git a/net-analyzer/yersinia/yersinia-0.8.2.ebuild b/net-analyzer/yersinia/yersinia-0.8.2.ebuild new file mode 100644 index 000000000000..bd77f7338bf3 --- /dev/null +++ b/net-analyzer/yersinia/yersinia-0.8.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools + +DESCRIPTION="A framework for layer 2 attacks" +HOMEPAGE="http://www.yersinia.net/" +SRC_URI="https://github.com/tomac/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk ncurses" + +RDEPEND=" + ncurses? ( >=sys-libs/ncurses-5.5 ) + gtk? ( =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}-0.7.3-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() { + econf \ + --enable-admin \ + --with-pcap-includes=/usr/include \ + $(use_with ncurses) \ + $(use_enable gtk) +} + +src_compile() { + emake CFLAGS="${CFLAGS}" +} -- cgit v1.2.3-65-gdbad