summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/tracebox/tracebox-0.2.ebuild')
-rw-r--r--net-analyzer/tracebox/tracebox-0.2.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/tracebox/tracebox-0.2.ebuild b/net-analyzer/tracebox/tracebox-0.2.ebuild
new file mode 100644
index 000000000000..49ba2fbb2d55
--- /dev/null
+++ b/net-analyzer/tracebox/tracebox-0.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tracebox/tracebox-0.2.ebuild,v 1.1 2014/06/26 22:09:37 jer Exp $
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A Middlebox Detection Tool"
+HOMEPAGE="http://www.tracebox.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-lang/lua
+ net-libs/libcrafter[pcap]
+ net-libs/libpcap
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-deps.patch
+
+ sed -i -e '/SUBDIRS/s|noinst||g' Makefile.am || die
+ sed -i -e '/DIST_SUBDIRS.*libcrafter/d' noinst/Makefile.am || die
+ sed -i \
+ -e '/[[:graph:]]*libcrafter[[:graph:]]*/d' \
+ src/${PN}//Makefile.am || die
+ sed -i \
+ -e 's|"crafter.h"|<crafter.h>|g' \
+ src/tracebox/PacketModification.h \
+ src/tracebox/PartialHeader.h \
+ src/tracebox/script.h \
+ src/tracebox/tracebox.h \
+ || die
+
+ eautoreconf
+}