diff options
Diffstat (limited to 'net-analyzer/tcptrace')
-rw-r--r-- | net-analyzer/tcptrace/Manifest | 8 | ||||
-rw-r--r-- | net-analyzer/tcptrace/files/tcptrace-6.6.7-cross-compile.patch | 50 | ||||
-rw-r--r-- | net-analyzer/tcptrace/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/tcptrace/tcptrace-6.6.7-r2.ebuild | 47 | ||||
-rw-r--r-- | net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild | 63 |
5 files changed, 176 insertions, 0 deletions
diff --git a/net-analyzer/tcptrace/Manifest b/net-analyzer/tcptrace/Manifest new file mode 100644 index 000000000000..23046b1f6c19 --- /dev/null +++ b/net-analyzer/tcptrace/Manifest @@ -0,0 +1,8 @@ +AUX tcptrace-6.6.7-cross-compile.patch 1348 SHA256 c0285a211ceb6294de9d49c6da82a4379d948aa70be5b166c9f1f530120e180c SHA512 ea5f8d5352f1eb4059c0284abbce9ff9b6df78ac8c7cb17a2aa138fa912cb4197f09b8e43e91bd04b980b6d73e1670deb7e9a3b1386eaaede61a7bdb0f410d1e WHIRLPOOL 1b93660fed76ba09361f6f6ebedbd56545d47297ff2a1472d20a9d8a429bf0798bf357e6239017b25163fdd98ec4c5c3563a3a77f66530ee0d9267841fdbe00d +DIST tcptrace-6.6.7.tar.gz 3773308 SHA256 63380a4051933ca08979476a9dfc6f959308bc9f60d45255202e388eb56910bd SHA512 3638770c342aea6c71aa556e758ed22e1fd44730f6c652cf82d3861eb1c31b186952c660071bd1df45020b80eaf9dd090a4ff58c979cc907eb8154dcb7b9b432 WHIRLPOOL b7eb2373b9a26789c47bb05e1e45047164648ff6f5cb3b57ba552d205443ca1fba7df9dd983a68f712a3e7398e776d97b328463f2497e7e39ba2b7db789c14b0 +DIST tcptrace_6.6.7-4.1.diff.gz 29161 SHA256 8d146edf2763badd92813404240c996613e256f1300c801f0dad02b842bf3ed4 SHA512 2f6dfeb8e15faa0151bdbb18194587e51de040f63117eb1b469a826091d5c1e5eb41a306bdc94e89ce993d0d04ec31324e5f7eea0a1a52852e07ee80006b2087 WHIRLPOOL 56af4f8ca7f5efbe5fd57acc2e7a881c315b245f5a10e4e4ce7eee9101554e53694e576129a8a997b4bbf89c2a0a92a2eab2f7efeca401808399524979cd2b17 +EBUILD tcptrace-6.6.7-r2.ebuild 1028 SHA256 ec2298aa4d19b7529d6f17e38cfd68f8359396e9b522c566e04c0f45bb156488 SHA512 cc29ad6fa8921d7f34ba073993d96cdb44f4d5fa203758c44b457b2ed6271958df592711cc33c2d8a0127e573249c4da897c48a279d8d8bb0d9fafee19e6af30 WHIRLPOOL a971692bbcc643c9c2750ad6efbbae737872bee32c034a0eff725f916e333b3aa96968607de838f8d5e8b9ab5a211ef7c1cac4a6a4350b5db77d13827d5d7ab3 +EBUILD tcptrace-6.6.7_p4_p1.ebuild 1485 SHA256 ad20032b4630216ded5901e9e0e0ad8f3db197fc23d4ae554d794c7d192d86eb SHA512 b9e24d4ede5c71a66c09099f5a0dcdf25f896ab92050548b0eb101348604be0dd2dde41c3fa2397d6d08f024b97636c8d3b5763159f352ca562e35454650ec32 WHIRLPOOL d474f3338937e1e0114b1bae47f7380da4f4f1de1a424d2021ea2391c3ab802a2dfd5dd7a5a02c83315e5faf759a9f578936f13fe571067697b2f47069dbc7a5 +MISC ChangeLog 2718 SHA256 3f57aa628205d6a68a03d1084d895f072d59d9c6a7bd4d6c4a38f4bf9eb74510 SHA512 d5c4cd7245862c3040e15561d703a07b065846b2e6a0e37bce2e2d31ec37cf3ff092408e661aec27a61af3e3a92f551348947742ea8f03b70b6dfc62d4bf24c7 WHIRLPOOL b8d28a05dd5e732fdd57b4df7c2e2ea998e16f52488c402110d90442decc27f801ca6a0f2822967a8ccb48dc2e992fdeb36c9aa74de9cd84b27378f2ae99cd98 +MISC ChangeLog-2015 3939 SHA256 d01deac55ccec7045e3b15ab7ca4707aa89fc29e78e0c0561edc430b5a33d63c SHA512 ac58b3f09bd83b5c76909b5df44b94c502ceb6a974e98a1c33ae100a0b9c67d31db1eb77573a5dc2bcfecad5005ceb4ffe32cd38e8a7fdf896455d2c6135ff06 WHIRLPOOL ff478ac9ddafb79ed4e27d9fd22b54051ad737cd241ffbe390f94a94453bd3153ef591c01f29ffe462bf1780d5b3fec78604286d07bcb2f7894fc41f385a6105 +MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee diff --git a/net-analyzer/tcptrace/files/tcptrace-6.6.7-cross-compile.patch b/net-analyzer/tcptrace/files/tcptrace-6.6.7-cross-compile.patch new file mode 100644 index 000000000000..a5b9ba0c009b --- /dev/null +++ b/net-analyzer/tcptrace/files/tcptrace-6.6.7-cross-compile.patch @@ -0,0 +1,50 @@ +--- a/configure.in ++++ b/configure.in +@@ -3,8 +3,6 @@ + + AC_CANONICAL_SYSTEM + +-AC_LBL_C_INIT(V_CCOPT, V_INCLS) +- + dnl Checks for programs. + AC_PROG_CC + AC_PROG_MAKE_SET +@@ -43,13 +41,12 @@ + dnl check for the IPv6 routines inet_pton + AC_CHECK_FUNCS(inet_pton) + +-AC_MSG_CHECKING(how to print unsigned long long) +-AC_SUBST(FS_ULL) + dnl AC_TRY_RUN is a test program that performs a run-time test to find out + dnl the correct syntax to print unsigned long long ints in printf stmts. + dnl If strcmp returns 0, we are on an enironment that uses %llu, otherwise + dnl we are on a MacOSX environment that uses %qu +-AC_TRY_RUN([ ++AC_CACHE_CHECK([how to print unsigned long long], ac_cv_unsigned_long_long_printf_format, ++ [AC_TRY_RUN([ + #include <stdio.h> + + #define NIX "%llu" +@@ -63,11 +60,17 @@ + exit (0); + else + exit (1); +-}], +-AC_DEFINE(USE_LLU) +-AC_MSG_RESULT(%llu), +-AC_MSG_RESULT(%qu), +-AC_MSG_ERROR(can not run test program while cross compiling)) ++} ++ ], ++ ac_cv_unsigned_long_long_printf_format=%llu, ++ ac_cv_unsigned_long_long_printf_format=%qu, ++ [AS_ECHO_N(["cross-comiling, assuming "])] ++ ac_cv_unsigned_long_long_printf_format=%llu ++ )] ++) ++AS_IF([test $ac_cv_unsigned_long_long_printf_format = %llu], ++ AC_DEFINE(USE_LLU) ++) + + dnl Grab standard includes under weird Linux versions + dnl case "$target_os" in diff --git a/net-analyzer/tcptrace/metadata.xml b/net-analyzer/tcptrace/metadata.xml new file mode 100644 index 000000000000..74c2baebb4ec --- /dev/null +++ b/net-analyzer/tcptrace/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/net-analyzer/tcptrace/tcptrace-6.6.7-r2.ebuild b/net-analyzer/tcptrace/tcptrace-6.6.7-r2.ebuild new file mode 100644 index 000000000000..c00386bbbde0 --- /dev/null +++ b/net-analyzer/tcptrace/tcptrace-6.6.7-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils flag-o-matic + +DESCRIPTION="A Tool for analyzing network packet dumps" +HOMEPAGE="http://www.tcptrace.org/" +SRC_URI=" + http://www.tcptrace.org/download/${P}.tar.gz + http://www.tcptrace.org/download/old/6.6/${P}.tar.gz +" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ~ppc ppc64 x86" +IUSE="" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cross-compile.patch + eautoreconf + append-cppflags -D_BSD_SOURCE +} + +src_compile() { + emake CCOPT="${CFLAGS}" +} + +src_install() { + dobin tcptrace xpl2gpl + + newman tcptrace.man tcptrace.1 + dodoc CHANGES COPYRIGHT FAQ README* THANKS WWW +} + +pkg_postinst() { + if ! has_version ${CATEGORY}/${PN}; then + elog "Note: tcptrace outputs its graphs in the xpl (xplot)" + elog "format. Since xplot is unavailable, you will have to" + elog "use the included xpl2gpl utility to convert it to" + elog "the gnuplot format." + fi +} diff --git a/net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild b/net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild new file mode 100644 index 000000000000..e65a749553be --- /dev/null +++ b/net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils flag-o-matic versionator + +TT_DEB_MAJOR=$(get_version_component_range 4) +TT_DEB_MAJOR=${TT_DEB_MAJOR/p} +TT_DEB_MINOR=$(get_version_component_range 5) +TT_DEB_MINOR=${TT_DEB_MINOR/p} +TT_VER=$(get_version_component_range 1-3) + +DESCRIPTION="A Tool for analyzing network packet dumps" +HOMEPAGE="http://www.tcptrace.org/" +SRC_URI=" + http://www.tcptrace.org/download/${PN}-${TT_VER}.tar.gz + http://www.tcptrace.org/download/old/6.6/${PN}-${TT_VER}.tar.gz + mirror://debian/pool/main/t/${PN}/${PN}_${TT_VER}-${TT_DEB_MAJOR}.${TT_DEB_MINOR}.diff.gz +" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +DEPEND=" + net-libs/libpcap +" +RDEPEND=" + ${DEPEND} +" + +S=${WORKDIR}/${PN}-${TT_VER} + +src_prepare() { + eapply "${FILESDIR}"/${PN}-${TT_VER}-cross-compile.patch + eapply "${WORKDIR}"/${PN}_${TT_VER}-${TT_DEB_MAJOR}.${TT_DEB_MINOR}.diff + + eapply_user + + append-cppflags -D_DEFAULT_SOURCE + + eautoreconf +} + +src_compile() { + emake CCOPT="${CFLAGS}" +} + +src_install() { + dobin tcptrace xpl2gpl + + newman tcptrace.man tcptrace.1 + dodoc CHANGES COPYRIGHT FAQ README* THANKS WWW +} + +pkg_postinst() { + if ! has_version ${CATEGORY}/${PN}; then + elog "Note: tcptrace outputs its graphs in the xpl (xplot)" + elog "format. Since xplot is unavailable, you will have to" + elog "use the included xpl2gpl utility to convert it to" + elog "the gnuplot format." + fi +} |