summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2016-05-07 22:43:42 +0200
committerMichael Weber <xmw@gentoo.org>2016-05-07 22:44:40 +0200
commitaaba5d9431982d340c83d7102cb9ffab31c2e4ee (patch)
tree1e0310b9cab6d68596f30f25d08bce245e1d7267 /net-analyzer/netsniff-ng
parentnet-analyzer/netsniff-ng: Drop old. (diff)
downloadgentoo-aaba5d9431982d340c83d7102cb9ffab31c2e4ee.tar.gz
gentoo-aaba5d9431982d340c83d7102cb9ffab31c2e4ee.tar.bz2
gentoo-aaba5d9431982d340c83d7102cb9ffab31c2e4ee.zip
net-analyzer/netsniff-ng: Version bump (thanks Manuel Rüger).
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-analyzer/netsniff-ng')
-rw-r--r--net-analyzer/netsniff-ng/Manifest1
-rw-r--r--net-analyzer/netsniff-ng/netsniff-ng-0.6.1.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/net-analyzer/netsniff-ng/Manifest b/net-analyzer/netsniff-ng/Manifest
index 4f0a78654e6f..cb0c1a4c5320 100644
--- a/net-analyzer/netsniff-ng/Manifest
+++ b/net-analyzer/netsniff-ng/Manifest
@@ -1 +1,2 @@
DIST netsniff-ng-0.6.0.tar.xz 554612 SHA256 f2e77d49e2f3aed78838827695bb2efade79e8d7126c7d81656425fd1bd56159 SHA512 a77d548cc16ef175b120945428e07e8ff2aaabba6add239b7f42429811bbb6e024ace92a15944551c45025b185f1df5aa3dee4500ff9ecb30536ec9a8deded74 WHIRLPOOL 33abcec54c5839332deb4ea06d687ed4748d25cdb2842a8d193176db369dff52c773bbcefed76d3cfe926152dcbc5f87553e7b9c1c29dbc84014f4a4e27d8f79
+DIST netsniff-ng-0.6.1.tar.xz 565956 SHA256 e178487990c69e25ba8b7e98330000b9ab6550da1332b469fca847cbed5502b0 SHA512 a07f3d5f85c517e220db53ac3a93e6337e49cbc8d69b730261697e765e449fa25024782b2b4fac089288f8753471e2fca3162b55c3bb2a9fcbbb10b96391efc1 WHIRLPOOL b3bdc2d7d38a8c102cc02d5ff7990129e9f13a66c6911ea75c68259f6f3a922a7a062b925f080b13e3fa437579d8e43bdeaa2253a08e17fea26382f24d325dc1
diff --git a/net-analyzer/netsniff-ng/netsniff-ng-0.6.1.ebuild b/net-analyzer/netsniff-ng/netsniff-ng-0.6.1.ebuild
new file mode 100644
index 000000000000..fee9eb38fc8a
--- /dev/null
+++ b/net-analyzer/netsniff-ng/netsniff-ng-0.6.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="high performance network sniffer for packet inspection"
+HOMEPAGE="http://netsniff-ng.org/"
+SRC_URI="http://pub.${PN}.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/geoip
+ dev-libs/libcli
+ dev-libs/libnl:3
+ dev-libs/userspace-rcu
+ net-libs/libnet:1.1
+ net-libs/libnetfilter_conntrack
+ net-libs/libpcap
+ sys-libs/ncurses:0
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison
+ =net-libs/nacl-0_p20110221*
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -e '/CFLAGS/s:?=:+=:' \
+ -e '/CPPFLAGS/s:?=:+=:' \
+ -e '/CFLAGS/s:\(-g\|-O2\|-O3\|-m\(arch\|tune\)=native\)::g' \
+ -i.bak Makefile || die
+
+ if ! grep nacl-20110221 curvetun/nacl_build.sh >/dev/null ; then
+ die "have nacl-20110221, expected $(grep ${MY_NACL_P} curvetun/nacl_build.sh)"
+ fi
+
+ export NACL_INC_DIR="${EROOT}usr/include/nacl"
+ export NACL_LIB_DIR="${EROOT}usr/$(get_libdir)/nacl"
+
+ epatch_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LD="$(tc-getCC)" CCACHE="" \
+ LEX=lex YAAC=bison STRIP=true \
+ Q= HARDENING=1
+}
+
+src_install() {
+ emake PREFIX="${ED}usr" ETCDIR="${ED}etc" install
+
+ dodoc AUTHORS README REPORTING-BUGS
+}