tools: add b43-tools
[openwrt/openwrt.git] / package / iwcap / Makefile
1 #
2 # Copyright (C) 2012 Jo-Philipp Wich <jow@openwrt.org>
3 #
4 # This is free software, licensed under the Apache 2 license.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=iwcap
10 PKG_RELEASE:=1
11
12 include $(INCLUDE_DIR)/package.mk
13
14
15 define Package/iwcap
16 SECTION:=utils
17 CATEGORY:=Utilities
18 TITLE:=Simple radiotap capture utility
19 MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
20 endef
21
22 define Package/iwcap/description
23 The iwcap utility receives radiotap packet data from wifi monitor interfaces
24 and outputs it to pcap format. It gathers recived packets in a fixed ring
25 buffer to dump them on demand which is useful for background monitoring.
26 Alternatively the utility can stream the data to stdout to act as remote
27 capture drone for Wireshark or similar programs.
28 endef
29
30
31 define Build/Prepare
32 $(INSTALL_DIR) $(PKG_BUILD_DIR)
33 $(CP) ./src/* $(PKG_BUILD_DIR)/
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 $(TARGET_CC) $(TARGET_CFLAGS) \
41 -o $(PKG_BUILD_DIR)/iwcap $(PKG_BUILD_DIR)/iwcap.c
42 endef
43
44
45 define Package/iwcap/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwcap $(1)/usr/sbin/iwcap
48 endef
49
50 $(eval $(call BuildPackage,iwcap))