diff options
Diffstat (limited to 'net-analyzer/trafshow')
-rw-r--r-- | net-analyzer/trafshow/Manifest | 8 | ||||
-rw-r--r-- | net-analyzer/trafshow/files/trafshow-5.2.3-gcc44.patch | 11 | ||||
-rw-r--r-- | net-analyzer/trafshow/files/trafshow-5.2.3-gentoo.patch | 15 | ||||
-rw-r--r-- | net-analyzer/trafshow/files/trafshow-5.2.3-tinfo.patch | 75 | ||||
-rw-r--r-- | net-analyzer/trafshow/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/trafshow/trafshow-5.2.3.ebuild | 39 |
6 files changed, 156 insertions, 0 deletions
diff --git a/net-analyzer/trafshow/Manifest b/net-analyzer/trafshow/Manifest new file mode 100644 index 000000000000..7006a3215073 --- /dev/null +++ b/net-analyzer/trafshow/Manifest @@ -0,0 +1,8 @@ +AUX trafshow-5.2.3-gcc44.patch 215 SHA256 f8fd709d231fee3df37434c4a394912ba16c6953b70813e7dd5696821cc908a5 SHA512 64157530b0605758f083bdccc6729d9f785d08f343fa2d6de22b0f60533c75c8e522ea891a31a3f8137af95075c5004b7b520c8e2dd252ab772b7b9ac6de8212 WHIRLPOOL da124d276c0dd304e198b472091493d866339b606639dcf13ee5322875dc886be29a7fe34c5292d9ea7a6464c4c16cf964d95ffa017724cd83159a71a3c749c5 +AUX trafshow-5.2.3-gentoo.patch 638 SHA256 0021f66ddf4c5648c828c9396b23ae65a9478e43c4866f0edcab6537b917dda5 SHA512 fccba5018a5fd7c1665bc8004507d7689a101dee10560c007e68a77a4c07824ae10954fb3e9555abe3991c495e2bd235bdbb41e3ca027355a1d0a08ea3aff686 WHIRLPOOL e4f82d5b0e036fccb5151940764a817af398bf277eb155bcd7816b5db9f7fb016c73a42ed2efa0143018b4bfd871b2dafc108ab675b4cea6e261db7961efc8b8 +AUX trafshow-5.2.3-tinfo.patch 1864 SHA256 670938611681f771db81e66fffd52a65da1d959b3a2804fa8edd8e62160356bf SHA512 55414a2f014f046b76c678aa6801ed6d5cb1cd9215854b1e0491192b06e42b71aad88a37507a446d13571cf95796807af06a3094f9167a507b3c4e8f1d3bd056 WHIRLPOOL 2282836b3589b733a6abcbb327b2a97770298b5e4f68bba1bb4ab53b60475e5dc7a1c05a99ab4e317ebd95269daf02f2030d0fb61696ae67904e65f13fbb619a +DIST trafshow-5.2.3.tgz 142615 SHA256 ea7e22674a66afcc7174779d0f803c1f25b42271973b4f75fab293b8d7db11fc SHA512 9ea57c319cb177de2d29eaf2a09c06f0bd7efcfc3e50d5fa5cc18f193c6dfc0109d4388ccbaee7bf2db37b5418fc0f4b6ce47a5558b652ecf9e891a813ef8540 WHIRLPOOL ebdd335029aa6bbd85320f7f587a65f8ca645d4236fae21b2d70ed7351edb8cfea4066491f8a803775d30b840663eef621ef8e9e4fbd321d0f3da08de6d90234 +EBUILD trafshow-5.2.3.ebuild 846 SHA256 f6bbf7020a4b6e0adf5a8656007e7113f64610dfe7331a15c8742d7ab2d08c6d SHA512 548e0a060fd84841d71720c80f09ef2b13eea314d07522b534f2de7eb30669bd21b6d47a0c9331fad1e398e922d6e1e0719435367c27b0fd68a1ff50fe3a7943 WHIRLPOOL 0c684de39b96fadd68ff1848c8432f44bd6a8c7b45f5a350a6ff0d98022a3ced35e6a5b23e2ba8453c39dfee8572672b05832166e482d3a04dc563aa6827871c +MISC ChangeLog 2542 SHA256 62abc6f1b54bf64da8de2598d33657b3b0bbf2bf795d4ff2af668b1055ab3810 SHA512 e05cf6d7e128a09bf519bd4f08f0d09222ce01c8faed1c74e05975f8638eb24c3e5af0d934eb400ffd2b07253f94752dc51a4598abcb0f21416a3d71be5a5814 WHIRLPOOL 23a1bab841f4805862131a8877514c514c56e6b02d17e14d1e677d9e1ea9288f411a1d4c3f21ef7dc4e8dffad737c1418509c3f697eb5470b7b3754c83f8fd63 +MISC ChangeLog-2015 5413 SHA256 eac5f8d45c2e0d8173438c0adc0b1b20ea2306be2e37e156c42d0671ff5a9cea SHA512 4c16c79b6fc939f05ea023e2491c15eef933e638d6ebd27c42568ad312aa2457f86e88a8a1b456be3ec469bfaa9568d60af2edcfc515de8095a863d6f417ea27 WHIRLPOOL 21db32b033bfa89f0fb71a0b269470d3676c7af55900867eb34b1de9f6d467d3dfe0d81b1c4b4f2f480ce328ee129f103de0c4ea1f846ed39167273a7bd6e3e7 +MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee diff --git a/net-analyzer/trafshow/files/trafshow-5.2.3-gcc44.patch b/net-analyzer/trafshow/files/trafshow-5.2.3-gcc44.patch new file mode 100644 index 000000000000..02424fe1203a --- /dev/null +++ b/net-analyzer/trafshow/files/trafshow-5.2.3-gcc44.patch @@ -0,0 +1,11 @@ +--- a/session.c ++++ b/session.c +@@ -40,7 +40,7 @@ + #define ASYNC_MODE FNDELAY + #elif O_ASYNC + #define ASYNC_MODE O_ASYNC +-#elif ++#else + #error the fcntl argument to turn ON/OFF non-blocking I/O is unknown + #endif + diff --git a/net-analyzer/trafshow/files/trafshow-5.2.3-gentoo.patch b/net-analyzer/trafshow/files/trafshow-5.2.3-gentoo.patch new file mode 100644 index 000000000000..95d342a603a4 --- /dev/null +++ b/net-analyzer/trafshow/files/trafshow-5.2.3-gentoo.patch @@ -0,0 +1,15 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -73,9 +73,9 @@ + @echo 'char compiled[] = "$(CC) $(CFLAGS) $(LIBS)";' >> $@ + + install: +- ./install-sh -c -s -m 555 -o bin -g bin $(PROG) $(BINDEST)/$(PROG) +- ./install-sh -c -m 444 -o bin -g bin $(PROG).1 $(MANDEST)/man1/$(PROG).1 +- [ -f /etc/$(PROG) ] || ./install-sh -c -m 444 .trafshow /etc/$(PROG) ++ ./install-sh -c -m 755 -o root -g root $(PROG) $(DESTDIR)$(BINDEST)/$(PROG) ++ ./install-sh -c -m 644 -o root -g root $(PROG).1 $(DESTDIR)$(MANDEST)/man1/$(PROG).1 ++ [ -f $(DESTDIR)/etc/$(PROG) ] || ./install-sh -c -o root -m 644 .trafshow $(DESTDIR)/etc/$(PROG) + + clean: + rm -f $(CLEANFILES) diff --git a/net-analyzer/trafshow/files/trafshow-5.2.3-tinfo.patch b/net-analyzer/trafshow/files/trafshow-5.2.3-tinfo.patch new file mode 100644 index 000000000000..0fd4985794d8 --- /dev/null +++ b/net-analyzer/trafshow/files/trafshow-5.2.3-tinfo.patch @@ -0,0 +1,75 @@ +--- a/configure.in ++++ b/configure.in +@@ -23,6 +23,9 @@ + AC_PROG_CC + AC_PROG_YACC + AC_PROG_LEX ++ ++PKG_PROG_PKG_CONFIG ++ + AC_REQUIRE_CPP + AC_AIX + ACX_PTHREAD(, AC_MSG_ERROR(cannot find pthread; see the INSTALL notes)) +@@ -51,7 +54,7 @@ + ) + ) + if test "$ac_cv_type_in_addr_t" != yes; then +- AC_DEFINE_UNQUOTED(in_addr_t, $ac_cv_type_in_addr_t) ++ AC_DEFINE_UNQUOTED([in_addr_t], [$ac_cv_type_in_addr_t], [addr_t]) + fi + + AC_CACHE_CHECK(for socklen_t, ac_cv_type_socklen_t, +@@ -65,7 +68,7 @@ + ) + ) + if test "$ac_cv_type_socklen_t" != yes; then +- AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_type_socklen_t) ++ AC_DEFINE_UNQUOTED([socklen_t], [$ac_cv_type_socklen_t], [socklen_t]) + fi + + AC_CACHE_CHECK(for struct sockaddr_storage, ac_cv_sockaddr_storage, +@@ -79,7 +82,7 @@ + ) + ) + if test "$ac_cv_sockaddr_storage" != no; then +- AC_DEFINE(HAVE_SOCKADDR_STORAGE) ++ AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [have sockaddr_storage]) + fi + + AC_CACHE_CHECK(for struct ether_addr, ac_cv_ether_addr, +@@ -94,7 +97,7 @@ + ) + ) + if test "$ac_cv_ether_addr" != no; then +- AC_DEFINE(HAVE_ETHER_ADDR) ++ AC_DEFINE(HAVE_ETHER_ADDR, 1, [have ether_addr]) + fi + + dnl Check for network system libraries. +@@ -144,20 +147,21 @@ + case "$ac_cv_have_curses" in + + slang) +- AC_DEFINE(HAVE_SLCURSES) +- AC_DEFINE(HAVE_HAS_COLORS) ++ AC_DEFINE(HAVE_SLCURSES, 1, [have slcurses]) ++ AC_DEFINE(HAVE_HAS_COLORS, 1, [have colors]) + ;; + ncurses) +- AC_DEFINE(HAVE_NCURSES) ++ PKG_CHECK_MODULES(ncurses,ncurses, [LIBS="$LIBS $ncurses_LIBS"], [ncurses not found]) ++ AC_DEFINE(HAVE_NCURSES, 1, [have ncurses]) + AC_CHECK_FUNCS(has_colors) + ;; + n_curses) + CFLAGS="-I/usr/include/ncurses $CFLAGS" +- AC_DEFINE(HAVE_NCURSES) ++ AC_DEFINE(HAVE_NCURSES, 1, [have n_curses]) + AC_CHECK_FUNCS(has_colors) + ;; + curses) +- AC_DEFINE(HAVE_CURSES) ++ AC_DEFINE(HAVE_CURSES, 1, [have curses]) + AC_CHECK_FUNCS(has_colors) + ;; + *) diff --git a/net-analyzer/trafshow/metadata.xml b/net-analyzer/trafshow/metadata.xml new file mode 100644 index 000000000000..74c2baebb4ec --- /dev/null +++ b/net-analyzer/trafshow/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/trafshow/trafshow-5.2.3.ebuild b/net-analyzer/trafshow/trafshow-5.2.3.ebuild new file mode 100644 index 000000000000..9cde85d61f47 --- /dev/null +++ b/net-analyzer/trafshow/trafshow-5.2.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="Full screen visualization of the network traffic" +HOMEPAGE="http://soft.risp.ru/trafshow/index_en.shtml" +SRC_URI="ftp://ftp.nsk.su/pub/RinetSoftware/${P}.tgz" + +LICENSE="BSD" +SLOT="3" +KEYWORDS="amd64 hppa ~ppc ppc64 sparc x86" +IUSE="slang" + +DEPEND=" + net-libs/libpcap + !slang? ( sys-libs/ncurses ) + slang? ( >=sys-libs/slang-1.4 ) +" + +src_prepare() { + cat /usr/share/aclocal/pkg.m4 >> aclocal.m4 || die + epatch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-tinfo.patch + eautoreconf +} + +src_configure() { + if ! use slang; then + # No command-line option so pre-cache instead + export ac_cv_have_curses=ncurses + export LIBS=-lncurses + fi + + econf +} |