diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-06-26 22:09:38 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-06-26 22:09:38 +0000 |
commit | fe85972ffe8ebb737e5e77679d84433e2e0f6617 (patch) | |
tree | d07cc1109383cba421ea597bdcdd0c4e6d1c4749 /net-analyzer/tracebox | |
parent | Initial commit (bug #515134 by Sebastian Schreier). (diff) | |
download | historical-fe85972ffe8ebb737e5e77679d84433e2e0f6617.tar.gz historical-fe85972ffe8ebb737e5e77679d84433e2e0f6617.tar.bz2 historical-fe85972ffe8ebb737e5e77679d84433e2e0f6617.zip |
Initial commit (bug #515134 by Sebastian Schreier).
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'net-analyzer/tracebox')
-rw-r--r-- | net-analyzer/tracebox/Manifest | 14 | ||||
-rw-r--r-- | net-analyzer/tracebox/files/tracebox-0.2-deps.patch | 30 | ||||
-rw-r--r-- | net-analyzer/tracebox/metadata.xml | 5 | ||||
-rw-r--r-- | net-analyzer/tracebox/tracebox-0.2.ebuild | 45 |
4 files changed, 92 insertions, 2 deletions
diff --git a/net-analyzer/tracebox/Manifest b/net-analyzer/tracebox/Manifest index e6537a6102c9..3e35acf5867f 100644 --- a/net-analyzer/tracebox/Manifest +++ b/net-analyzer/tracebox/Manifest @@ -1,5 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + 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 946 SHA256 e7bbefbebecd567fb5487d4711b320df7507697f5c3a770d270a334efd08b110 SHA512 94632d4ad35357a050bd7509948a2f1698511c8354beab2c347275e607850d93ea0015abd71d1afaa3487d35bc998b361c680081a41833a8a025d7e5bc198f94 WHIRLPOOL 635cc95562f39fe58db82f2d1f1e7ae8e300c5c9817af905bae865854feda42f24b3e34e22a29cdc318da4d261af1fc9e21210bcf058a23b87d35255d685bfc9 -MISC ChangeLog 324 SHA256 9fb205e12f3ac6ab4295fa4ad0d2666821ce5538b17d827177ffef7312f409ad SHA512 21113b5938ec5b17b371feafe5a856069dff264784c7ad065182ff460b7eed1a8b8bf451db1ca3add986540f73f74d896b22fd4e73ab2332254d7c77722afb38 WHIRLPOOL d2603dd84047d5cfa06aade193f5e32f9cce665f3f91ca8d29353def5b7dd5e3ddf4d82f55e8fed3de3a2adb3c4caba4b21c07e6bd92ea5e947c058d0c6b097b +EBUILD tracebox-0.2.ebuild 1046 SHA256 71f4612e1ac741b433ded5418792ecf50f85741741b36909d0cf19d21664dbf6 SHA512 c086f0bc8ac5e59833bdbb1230721cccaad215576b04bdc45bb55102d2688db9fe3cace42638b17fe9d208ba8dc3fc4971e5dd3d18778d14477255c01e7d3fc1 WHIRLPOOL dae0afb8fdef2abb6b77ff792b2a9bc382fa846d5b25cf20bab2cf5ddbb85d9608df01e8ccdea62064ed65ce1343be81f7edfaab8908d4553705300a04d68afb +MISC ChangeLog 414 SHA256 3f984c1a42f00e3393e8dd1354275f9fa2fdf90ac67b4728793d419361b40480 SHA512 85119dc6a4bd9698adb246f8f0383302327a02d02ffeeb81f1079bf3b65093c97ce762815c0934b962be67d1770a5605a09ea30c8f2e38aa69eafa5f794450a2 WHIRLPOOL 4b27f8e6a756fdf889f780d02c52586c2dc2ad5ca4172e869595f989ae60bc758de80515f1e470f6a80765e04edf89173e05760a8812b214780032e2490bd160 MISC metadata.xml 159 SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 SHA512 2c104d2a804da0a38770b6f1ec26cd5b0a49e30392177d5794734a3f4129e82fd0971e5a8a1e48913bfaf1bab57e7bac1fe5ce4f5c618ce057aa5aaf9e59113b WHIRLPOOL 044dec64f8899582332d7fbd7612d2a7c5c7234c44bb9fc51a56f7d6400cd3066a154c3c49dd3f4b468f11e029aa24ff0097ab1387b9f322d57f1d9876afd601 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iEYEAREIAAYFAlOsmiIACgkQVWmRsqeSphNGDwCdF1aL8JOv+/jbGP4zwGE9WtwR +cHQAnAq2tYoNx4HwLb8FDcDIFdOZsXdB +=MPmF +-----END PGP SIGNATURE----- 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..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/tracebox/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</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..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 +} |