Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added tcprelay package #52

Merged
merged 1 commit into from
May 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 38 additions & 0 deletions packages/tcprelay/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=tcpreplay
PKG_VERSION:=4.0.4
PKG_RELEASE:=1

PKG_SOURCE_URL:=@SF/tcpreplay
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_MD5SUM:=e290239bd5ba2451880b96ff64a43a7d

PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/tcpreplay
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap +librt
TITLE:=tcpreplay
endef

CONFIGURE_ARGS += \
--with-libpcap="$(STAGING_DIR)/usr" \

CONFIGURE_VARS += \
ac_cv_have_bpf=no

define Package/tcpreplay/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tcpreplay $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tcprewrite $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,tcpreplay))
18 changes: 18 additions & 0 deletions packages/tcprelay/patches/001-check_pcap_netmap.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/configure.ac
+++ b/configure.ac
@@ -1113,15 +1113,6 @@ done

dnl ## Test for netmap-libpcap
have_pcap_netmap=no
-if test $foundpcap != no ; then
- PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
- AC_CHECK_FILE($PCAP_NETMAP_C_FILE,
- [
- AC_DEFINE([HAVE_LIBPCAP_NETMAP], [1],
- [Does this version of libpcap support netmap?])
- have_pcap_netmap=yes
- ],[])
-fi

dnl restore LIBS & CFLAGS
LIBS="$OLDLIBS"