2 # Copyright (C) 2012 Jo-Philipp Wich <jow@openwrt.org>
4 # This is free software, licensed under the Apache 2 license.
7 include $(TOPDIR
)/rules.mk
12 include $(INCLUDE_DIR
)/package.mk
18 TITLE
:=Simple radiotap capture utility
19 MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
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.
32 $(INSTALL_DIR
) $(PKG_BUILD_DIR
)
33 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 define Build
/Configure
40 $(TARGET_CC
) $(TARGET_CFLAGS
) \
41 -o
$(PKG_BUILD_DIR
)/iwcap
$(PKG_BUILD_DIR
)/iwcap.c
45 define Package
/iwcap
/install
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/iwcap
$(1)/usr
/sbin
/iwcap
50 $(eval
$(call BuildPackage
,iwcap
))