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
11 PKG_LICENSE
:=Apache-2.0
13 PKG_LICENSE
:=Apache-2.0
16 include $(INCLUDE_DIR
)/package.mk
22 TITLE
:=Simple radiotap capture utility
23 MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
26 define Package
/iwcap
/description
27 The iwcap utility receives radiotap packet data from wifi monitor interfaces
28 and outputs it to pcap format. It gathers recived packets in a fixed ring
29 buffer to dump them on demand which is useful for background monitoring.
30 Alternatively the utility can stream the data to stdout to act
as remote
31 capture drone for Wireshark or similar programs.
36 $(INSTALL_DIR
) $(PKG_BUILD_DIR
)
37 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
40 define Build
/Configure
44 $(TARGET_CC
) $(TARGET_CFLAGS
) \
45 -o
$(PKG_BUILD_DIR
)/iwcap
$(PKG_BUILD_DIR
)/iwcap.c
49 define Package
/iwcap
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/iwcap
$(1)/usr
/sbin
/iwcap
54 $(eval
$(call BuildPackage
,iwcap
))