diff options
author | Michael Weber <xmw@gentoo.org> | 2013-05-31 08:06:12 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2013-05-31 08:06:12 +0000 |
commit | 18079e73d9b736dade08558abbc378d0a79b8643 (patch) | |
tree | a38391236d604b9a990f2b20b4b285e66918a14c /net-analyzer | |
parent | Initial import, dep of net-analyzer/netsniff-ng (diff) | |
download | gentoo-2-18079e73d9b736dade08558abbc378d0a79b8643.tar.gz gentoo-2-18079e73d9b736dade08558abbc378d0a79b8643.tar.bz2 gentoo-2-18079e73d9b736dade08558abbc378d0a79b8643.zip |
Add live version in preparation of 0.5.7 version bump.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/netsniff-ng/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/netsniff-ng/metadata.xml | 4 | ||||
-rw-r--r-- | net-analyzer/netsniff-ng/netsniff-ng-9999.ebuild | 55 |
3 files changed, 67 insertions, 2 deletions
diff --git a/net-analyzer/netsniff-ng/ChangeLog b/net-analyzer/netsniff-ng/ChangeLog index 2f963ead99e9..05c3863c6569 100644 --- a/net-analyzer/netsniff-ng/ChangeLog +++ b/net-analyzer/netsniff-ng/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/netsniff-ng -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netsniff-ng/ChangeLog,v 1.5 2012/11/07 01:21:11 xmw Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netsniff-ng/ChangeLog,v 1.6 2013/05/31 08:06:12 xmw Exp $ + +*netsniff-ng-9999 (31 May 2013) + + 31 May 2013; Michael Weber <xmw@gentoo.org> +netsniff-ng-9999.ebuild, + metadata.xml: + Add live version in preparation of 0.5.7 version bump. *netsniff-ng-0.5.7-r1 (07 Nov 2012) diff --git a/net-analyzer/netsniff-ng/metadata.xml b/net-analyzer/netsniff-ng/metadata.xml index 59acc2cc580e..09d6f932f1cc 100644 --- a/net-analyzer/netsniff-ng/metadata.xml +++ b/net-analyzer/netsniff-ng/metadata.xml @@ -5,5 +5,9 @@ <email>xmw@gentoo.org</email> <name>Michael Weber</name> </maintainer> +<use> + <flag name="curvetun">Build curvetun utility</flag> + <flag name="mausezahn">Build mausezahn utility</flag> +</use> </pkgmetadata> diff --git a/net-analyzer/netsniff-ng/netsniff-ng-9999.ebuild b/net-analyzer/netsniff-ng/netsniff-ng-9999.ebuild new file mode 100644 index 000000000000..0c9cfbfebefc --- /dev/null +++ b/net-analyzer/netsniff-ng/netsniff-ng-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netsniff-ng/netsniff-ng-9999.ebuild,v 1.1 2013/05/31 08:06:12 xmw Exp $ + +EAPI=5 + +inherit git-2 multilib toolchain-funcs + +DESCRIPTION="high performance network sniffer for packet inspection" +HOMEPAGE="http://netsniff-ng.org/" +EGIT_REPO_URI="git://github.com/borkmann/${PN}.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="curvetun mausezahn" + +RDEPEND="dev-libs/geoip + dev-libs/libnl:3 + dev-libs/userspace-rcu + net-libs/libnetfilter_conntrack + sys-libs/ncurses:5 + mausezahn? ( + dev-libs/libcli + net-libs/libnet:1.1 )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + curvetun? ( =net-libs/nacl-0_p20110221* )" + +src_prepare() { + if ! use mausezahn ; then + sed -e '/^TOOLS /s:mausezahn::' \ + -i Makefile + fi + if ! use curvetun ; then + sed -e '/^TOOLS /s:curvetun::' \ + -i Makefile + else + 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 + fi +} + +src_compile() { + emake CC="$(tc-getCC)" LD="$(tc-getCC)" CCACHE="" \ + LEX=lex YAAC=bison STRIP=@true \ + NACL_INC_DIR="${EROOT}usr/include/nacl" \ + NACL_LIB_DIR="${EROOT}usr/$(get_libdir)/nacl" +} + +src_install() { + emake PREFIX="${ED}" install +} |