2 # Copyright (C) 2012 Jo-Philipp Wich <jo@mein.io>
4 # This is free software, licensed under the Apache 2 license.
7 include $(TOPDIR)/rules.mk
11 PKG_LICENSE:=Apache-2.0
13 include $(INCLUDE_DIR)/package.mk
19 TITLE:=Simple radiotap capture utility
20 MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
23 define Package/iwcap/description
24 The iwcap utility receives radiotap packet data from wifi monitor interfaces
25 and outputs it to pcap format. It gathers recived packets in a fixed ring
26 buffer to dump them on demand which is useful for background monitoring.
27 Alternatively the utility can stream the data to stdout to act as remote
28 capture drone for Wireshark or similar programs.
32 define Build/Configure
36 $(TARGET_CC) $(TARGET_CFLAGS) \
37 -o $(PKG_BUILD_DIR)/iwcap $(PKG_BUILD_DIR)/iwcap.c
41 define Package/iwcap/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwcap $(1)/usr/sbin/iwcap
46 $(eval $(call BuildPackage,iwcap))