Root/package/network/utils/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
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=iwcap
10PKG_RELEASE:=1
11
12include $(INCLUDE_DIR)/package.mk
13
14
15define Package/iwcap
16  SECTION:=utils
17  CATEGORY:=Utilities
18  TITLE:=Simple radiotap capture utility
19  MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
20endef
21
22define 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.
28endef
29
30
31define Build/Prepare
32    $(INSTALL_DIR) $(PKG_BUILD_DIR)
33    $(CP) ./src/* $(PKG_BUILD_DIR)/
34endef
35
36define Build/Configure
37endef
38
39define Build/Compile
40    $(TARGET_CC) $(TARGET_CFLAGS) \
41        -o $(PKG_BUILD_DIR)/iwcap $(PKG_BUILD_DIR)/iwcap.c
42endef
43
44
45define Package/iwcap/install
46    $(INSTALL_DIR) $(1)/usr/sbin
47    $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwcap $(1)/usr/sbin/iwcap
48endef
49
50$(eval $(call BuildPackage,iwcap))
51

Archive Download this file



interactive