summaryrefslogtreecommitdiff
path: root/net-analyzer/tracebox
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/tracebox')
-rw-r--r--net-analyzer/tracebox/Manifest6
-rw-r--r--net-analyzer/tracebox/files/tracebox-0.2-deps.patch30
-rw-r--r--net-analyzer/tracebox/metadata.xml11
-rw-r--r--net-analyzer/tracebox/tracebox-0.2.ebuild50
4 files changed, 97 insertions, 0 deletions
diff --git a/net-analyzer/tracebox/Manifest b/net-analyzer/tracebox/Manifest
new file mode 100644
index 000000000000..97a521324540
--- /dev/null
+++ b/net-analyzer/tracebox/Manifest
@@ -0,0 +1,6 @@
+AUX tracebox-0.2-deps.patch 1119 SHA256 ec41bf225726e6449d3196ce601feecf8093b7a3987a4abfd4578572b54f5b46 SHA512 ecfffb4fca07597361170681762ea001a403979a96b8681fa144f7dc86c6d3b508d756863f8b2584f4951c1207a23c6babf7457f5f48dce1c400fe87ab5985b3 WHIRLPOOL a1e1cf852b1a2723e5815f434672f92c7e8b0a79948d4ce10e9d176d4f255b1b9f610dc99e312d1c6f4afba846c848b816208fa610a6ee8d9dc549822bb5b138
+DIST tracebox-0.2.tar.gz 27954 SHA256 39a7a70edb386defe03fabafe0ec8dd448ec8a24adcb2df8ea70f4ea16dfffd8 SHA512 15bfaede7e4828c14efbf7395f3d1c681b672b47157c370f4fe92d5d306ccc8e3e061107c3d36a505d732451d67ea146c21c299e6e826205725ab12680ee773e WHIRLPOOL 89a0c7dd13a6fbadcd88678a7981ed8331b0217792e95404b8ec2be0eb2ff069c570ad441f5a3651c00512d1e6471f01dd719ecddcc740f8a2c0074ba5caf268
+EBUILD tracebox-0.2.ebuild 973 SHA256 18793ff470948233888c980d81fc90ad90e8785f433f69f1ff3acac2498ea8e5 SHA512 85a7b38d61154683a1288d9e1e8ef5a271e7840493998a1caa462ce13a3df1327520c3e8dd0be1e4246e4e3d48cca02fee32bc94ceea28dde8a7fff06a3daec1 WHIRLPOOL dbdc72ddd41ad5c0483d4a3df34829296b48d2aa2aaf57c4ded92ffad805faff08b90bc6c540b0ad538c3151afdca9cb2806febceb945dc87c0ce91080889c9d
+MISC ChangeLog 2462 SHA256 ae42470b1585c6dd4e8aca15114001bf9ebdce082082b6315286a26337898196 SHA512 5ad2ec848e4d0b092ff806fae9c7e07511aeee8342cb1f740b2659841d001f6b32726ab8fa919d6340318bc4ad6d510a9f86d6edfd6e0bc41663f99002eef987 WHIRLPOOL 88f77b065090b0ec79179c583c7695db8e1197e26b2374eab1d42d64a781f7c790fd80ac52aec9b5f44a2aae76d19ab6ec0bbefbe2791ee6c8b01add04be51e3
+MISC ChangeLog-2015 907 SHA256 50be4ae7317abb4f2a82e137cbf549acdf7ae20a45e266edfbe1ab19e0f53f9a SHA512 a1cf1c5afb6987dde67e9e264235993ad3d94784d044931ca26e912bb972a36d6fda4f22216ce25dd7c1b95d9c55ab67679804938a74d427d649428836d743a0 WHIRLPOOL 3c34ad7a7972b1477e6b45d83632ea41e5aa06de622334503f784958695fbc45f24f5948b4816fed006be0b938d25cb9216fdafcebe7cf36f32cf76d688ea473
+MISC metadata.xml 362 SHA256 b0f596b63227f32264082fc6b3729f6d6bfee8d4d26372af457527a802b79072 SHA512 8a03e6fbda5bad0b496b5acf23e79cfd5d7e96c6062dd67b4bb8ab9ff949d7ea2238d06b06300dec48ed988e5b04dd811c1826edeb0b8fed56274f37640b56d4 WHIRLPOOL 79a2daa64c0a031e2f090c7ce4a8f97dc0e625317083edcbc94e87b32746ea34284c0cf474903aae0169981c05d8cdb5395c1a0df81b2070918128bbf07927ba
diff --git a/net-analyzer/tracebox/files/tracebox-0.2-deps.patch b/net-analyzer/tracebox/files/tracebox-0.2-deps.patch
new file mode 100644
index 000000000000..f6c748a410cd
--- /dev/null
+++ b/net-analyzer/tracebox/files/tracebox-0.2-deps.patch
@@ -0,0 +1,30 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -32,15 +32,11 @@
+ ])
+ ])
+
+-# Make sure libcrafter build a static library by adding the --disable-shared
+-# argument to the configure script.
+-ac_configure_args_pre="$ac_configure_args"
+-ac_configure_args_post="$ac_configure_args --disable-shared"
+-ac_configure_args="$ac_configure_args_post"
++# check for libcrafter
++PKG_CHECK_MODULES(crafter, crafter, LIBS="$LIBS $crafter_LIBS",AC_MSG_ERROR([libcrafter is required]))
+
+-AC_CONFIG_COMMANDS_PRE([ac_configure_args="$ac_configure_args_pre"])
+-AC_CONFIG_COMMANDS_POST([ac_configure_args="$ac_configure_args_post"])
+-AC_CONFIG_SUBDIRS(noinst/libcrafter/libcrafter)
++# check for libpcap
++AC_CHECK_LIB(pcap,pcap_open_offline,LIBS="$LIBS -lpcap",AC_MSG_ERROR([libpcap is required]))
+
+ # Enable click submodule
+ AS_IF([test "x$enable_tests" = "xyes"], [
+@@ -50,7 +46,6 @@
+
+ AC_CONFIG_COMMANDS_PRE([ac_configure_args="$ac_configure_args_pre"])
+ AC_CONFIG_COMMANDS_POST([ac_configure_args="$ac_configure_args_post"])
+- AC_CONFIG_SUBDIRS(tests/tools/click)
+
+ AC_PATH_PROG([FAKEROOT], [fakeroot])
+ AS_IF([test -z "$FAKEROOT"], [
diff --git a/net-analyzer/tracebox/metadata.xml b/net-analyzer/tracebox/metadata.xml
new file mode 100644
index 000000000000..e55d9843a684
--- /dev/null
+++ b/net-analyzer/tracebox/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">tracebox/tracebox</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-analyzer/tracebox/tracebox-0.2.ebuild b/net-analyzer/tracebox/tracebox-0.2.ebuild
new file mode 100644
index 000000000000..6713366d9482
--- /dev/null
+++ b/net-analyzer/tracebox/tracebox-0.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~x86"
+
+RDEPEND="
+ dev-lang/lua
+ net-libs/libcrafter
+ 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' \
+ -e '/dist_bin_SCRIPTS/d' \
+ src/${PN}/Makefile.am \
+ || die
+
+ sed -i \
+ -e 's|"crafter.h"|<crafter.h>|g' \
+ src/${PN}/PacketModification.h \
+ src/${PN}/PartialHeader.h \
+ src/${PN}/script.h \
+ src/${PN}/${PN}.h \
+ || die
+
+ rm README.md || die
+
+ eautoreconf
+}