From 7bbb61f8c4df7b4053644c87ed0704abc19fff85 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 24 Feb 2015 12:47:15 +0100 Subject: port tcptrace --- package/tcptrace/Makefile | 28 ++++++++++++++++++++++++++++ package/tcptrace/patches/patch-configure | 18 ++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 package/tcptrace/Makefile create mode 100644 package/tcptrace/patches/patch-configure (limited to 'package/tcptrace') diff --git a/package/tcptrace/Makefile b/package/tcptrace/Makefile new file mode 100644 index 000000000..ac5fb5dc4 --- /dev/null +++ b/package/tcptrace/Makefile @@ -0,0 +1,28 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= tcptrace +PKG_VERSION:= 6.6.7 +PKG_RELEASE:= 1 +PKG_HASH:= 63380a4051933ca08979476a9dfc6f959308bc9f60d45255202e388eb56910bd +PKG_DESCR:= A Tool for analyzing network packet dumps +PKG_SECTION:= net/debug +PKG_DEPENDS:= libpcap +PKG_URL:= http://www.tcptrace.org +PKG_SITES:= http://www.tcptrace.org/download/ +DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,TCPTRACE,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +FAKE_FLAGS:= BINDIR="${WRKINST}/usr/bin" MANDIR="${WRKINST}/usr/man" INSTALL="install -D" + +post-install: + $(INSTALL_DIR) $(IDIR_TCPTRACE)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/bin/tcptrace \ + $(IDIR_TCPTRACE)/usr/bin + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/tcptrace/patches/patch-configure b/package/tcptrace/patches/patch-configure new file mode 100644 index 000000000..53ee6ce74 --- /dev/null +++ b/package/tcptrace/patches/patch-configure @@ -0,0 +1,18 @@ + do not bail on cross-compiling, simply assume useful values instead +--- tcptrace-6.6.7.orig/configure 2002-06-21 11:56:26.000000000 +0200 ++++ tcptrace-6.6.7/configure 2012-10-18 18:52:35.154444758 +0200 +@@ -5086,9 +5086,11 @@ echo "$as_me:5085: checking how to print + echo $ECHO_N "checking how to print unsigned long long... $ECHO_C" >&6 + + if test "$cross_compiling" = yes; then +- { { echo "$as_me:5089: error: can not run test program while cross compiling" >&5 +-echo "$as_me: error: can not run test program while cross compiling" >&2;} +- { (exit 1); exit 1; }; } ++ { echo "$as_me: cross_compiling, simply assuming '%llu'" ++ cat >>confdefs.h <<\EOF ++#define USE_LLU 1 ++EOF ++} + else + cat >conftest.$ac_ext <<_ACEOF + #line 5094 "configure" -- cgit v1.2.3 From 3b7e950a2a226d1344e78da8fb10e3cdb92f37a0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 28 Feb 2015 10:11:11 +0100 Subject: cleanup phil's submissions - use () instead of {} in make variables for now - use PKG_HASH instead of PKG_MD5SUM - update to latest upstream versions - use a newline between PKG_* variables and DISTFILES - use -install instead of post-install - use lowercase description texts only - fix some missing PKG_BUILDDEP - elfutils needs argp, which is not available in uClibc-ng, yet - PKG_HASH is not required for git sources --- package/tcptrace/Makefile | 13 ++++++++----- package/tcptrace/patches/patch-Makefile_in | 13 +++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 package/tcptrace/patches/patch-Makefile_in (limited to 'package/tcptrace') diff --git a/package/tcptrace/Makefile b/package/tcptrace/Makefile index ac5fb5dc4..b780a8f84 100644 --- a/package/tcptrace/Makefile +++ b/package/tcptrace/Makefile @@ -7,22 +7,25 @@ PKG_NAME:= tcptrace PKG_VERSION:= 6.6.7 PKG_RELEASE:= 1 PKG_HASH:= 63380a4051933ca08979476a9dfc6f959308bc9f60d45255202e388eb56910bd -PKG_DESCR:= A Tool for analyzing network packet dumps +PKG_DESCR:= tool for analyzing network packet dumps PKG_SECTION:= net/debug PKG_DEPENDS:= libpcap +PKG_BUILDDEP:= libpcap PKG_URL:= http://www.tcptrace.org PKG_SITES:= http://www.tcptrace.org/download/ + DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz include $(ADK_TOPDIR)/mk/package.mk -$(eval $(call PKG_template,TCPTRACE,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,TCPTRACE,tcptrace,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION))) -FAKE_FLAGS:= BINDIR="${WRKINST}/usr/bin" MANDIR="${WRKINST}/usr/man" INSTALL="install -D" +FAKE_FLAGS:= BINDIR="$(WRKINST)/usr/bin" MANDIR="$(WRKINST)/usr/man" INSTALL="install -D" +TARGET_CPPFLAGS+= -D_BSD_SOURCE -post-install: +tcptrace-install: $(INSTALL_DIR) $(IDIR_TCPTRACE)/usr/bin $(INSTALL_BIN) $(WRKINST)/usr/bin/tcptrace \ $(IDIR_TCPTRACE)/usr/bin -include ${ADK_TOPDIR}/mk/pkg-bottom.mk +include $(ADK_TOPDIR)/mk/pkg-bottom.mk diff --git a/package/tcptrace/patches/patch-Makefile_in b/package/tcptrace/patches/patch-Makefile_in new file mode 100644 index 000000000..abd55f44d --- /dev/null +++ b/package/tcptrace/patches/patch-Makefile_in @@ -0,0 +1,13 @@ +--- tcptrace-6.6.7.orig/Makefile.in 2004-03-04 21:33:56.000000000 +0100 ++++ tcptrace-6.6.7/Makefile.in 2015-02-27 19:17:39.000000000 +0100 +@@ -34,8 +34,8 @@ DEFINES += -DBUNZIP2="\"bunzip2\"" + # + ################################################################## + PCAP_LDLIBS = @V_PCAP_LDLIBS@ +-PCAP_INCS = -I/usr/local/include -I. -I../pcap -I/usr/include/pcap +-PCAP_LDFLAGS = -L/usr/local/lib -Llib -Lpcap -L../pcap -L./cygwin-libs ++PCAP_INCS = -I. -I../pcap ++PCAP_LDFLAGS = -Llib -Lpcap -L../pcap -L./cygwin-libs + + + -- cgit v1.2.3