Merge pull request #4196 from pprindeville/drop-CRYPTO_set_id_callback
[feed/packages.git] / net / tcpreplay / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tcpreplay
11 PKG_VERSION:=4.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/appneta/tcpreplay/releases/download/v$(PKG_VERSION)
16 PKG_MD5SUM:=a2864f466fe17715baa49d44d5a91eb4
17 PKG_HASH:=224b519e561d969b4bdb0e700c2283e036620e3cb5895d5aab2a7e4f27d21a79
18
19 PKG_LICENSE:=GPL-3.0
20 PKG_LICENSE_FILES:=docs/LICENSE
21
22 PKG_FIXUP:=libtool
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 TCPREPLAY_MODULES:= \
28 tcpbridge tcpcapinfo tcpliveplay tcpprep \
29 tcpreplay tcpreplay-edit tcprewrite
30
31 define Package/tcpreplay/default
32 SUBMENU:=tcprelay
33 SECTION:=net
34 CATEGORY:=Network
35 URL:=http://tcpreplay.appneta.com/
36 MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
37 DEPENDS:=+librt +libpcap
38 endef
39
40 define Package/tcpbridge
41 $(call Package/tcpreplay/default)
42 TITLE:=Bridge network traffic across two interfaces
43 endef
44
45 define Package/tcpcapinfo
46 $(call Package/tcpreplay/default)
47 TITLE:=Pcap file dissector for debugging broken pcap files
48 endef
49
50 define Package/tcpliveplay
51 $(call Package/tcpreplay/default)
52 TITLE:=Replays network traffic stored in a pcap file on live networks using new TCP connections
53 endef
54
55 define Package/tcpprep
56 $(call Package/tcpreplay/default)
57 TITLE:=Create a tcpreplay cache file from a pcap file
58 endef
59
60 define Package/tcpreplay
61 $(call Package/tcpreplay/default)
62 TITLE:=Replay network traffic stored in pcap files
63 endef
64
65 define Package/tcpreplay-edit
66 $(call Package/tcpreplay/default)
67 TITLE:=Replay network traffic stored in pcap files
68 endef
69
70 define Package/tcprewrite
71 $(call Package/tcpreplay/default)
72 TITLE:=Rewrite the packets in a pcap file
73 endef
74
75 define Package/tcpreplay-all
76 $(call Package/tcpreplay/default)
77 TITLE:=Pcap editing and replaying utilities
78 DEPENDS:=$(foreach m,$(TCPREPLAY_MODULES),+$(m))
79 endef
80
81 define Package/tcpbridge/description
82 tcpbridge is a tool for selectively briding network traffic across two
83 interfaces and optionally modifying the packets in between
84 endef
85
86 define Package/tcpcapinfo/description
87 tcpcapinfo is a tool for decoding the structure of a pcap(3) file with a
88 focus on finding broken pcap files and determining how two related pcap
89 files might differ.
90 endef
91
92 define Package/tcpliveplay/description
93 This program, 'tcpliveplay' replays a captured set of packets using new TCP
94 connections with the captured TCP payloads against a remote host in order
95 to do comprehensive vulnerability testings.
96 endef
97
98 define Package/tcpprep/description
99 tcpprep is a ``pcap(3)'' file pre-processor which creates a cache file
100 which provides "rules" for ``tcprewrite(1)'' and ``tcpreplay(1)'' on how to
101 process and send packets.
102 endef
103
104 define Package/tcpreplay/description
105 tcpreplay is a tool for replaying network traffic from files saved with
106 tcpdump or other tools which write pcap(3) files.
107 endef
108
109 define Package/tcpreplay-edit/description
110 tcpreplay-edit includes all the functionality of both tcpreplay
111 and tcprewrite.
112 endef
113
114 define Package/tcprewrite/description
115 Rewrite/edit the packets in a pcap file
116 endef
117
118 define Package/tcpreplay-all/description
119 Tcpreplay is a suite of free Open Source utilities for
120 editing and replaying previously captured network traffic.
121 Originally designed to replay malicious traffic patterns to
122 Intrusion Detection/Prevention Systems, it has seen many evolutions
123 including capabilities to replay to web servers.
124
125 Version 4.0.0 introduces features and performance enhancements
126 to support switches, routers, and IP Flow/NetFlow appliances.
127 endef
128
129 CONFIGURE_VARS += \
130 ac_cv_lib_nl_nl_cache_alloc=no \
131 ac_cv_lib_nl_genl_3_genl_connect=no \
132 ac_cv_lib_nl_3_nl_cache_alloc=no \
133 ac_cv_lib_dbus_1_dbus_malloc=no
134
135 CONFIGURE_ARGS += \
136 --enable-force-pf \
137 --enable-dynamic-link \
138 --prefix="$(PKG_INSTALL_DIR)/usr" \
139 --exec-prefix="$(PKG_INSTALL_DIR)/usr" \
140 --with-libpcap="$(STAGING_DIR)/usr"
141
142 define tcpreplayTemplate
143 define Package/$(1)/install
144 $(INSTALL_DIR) $$(1)/usr/bin ; \
145 $(CP) $$(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin
146 endef
147 endef
148
149 define Package/tcpreplay-all/install
150 :
151 endef
152
153 $(foreach m, $(TCPREPLAY_MODULES), \
154 $(eval $(call tcpreplayTemplate,$(m))) \
155 $(eval $(call BuildPackage,$(m))) \
156 )
157
158 $(eval $(call BuildPackage,tcpreplay-all))
159