Add more license tags with SPDX identifiers
[openwrt/staging/dedeckeh.git] / 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
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=iwcap
10 PKG_RELEASE:=1
11 PKG_LICENSE:=Apache-2.0
12
13 PKG_LICENSE:=Apache-2.0
14 PKG_LICENSE_FILES:=
15
16 include $(INCLUDE_DIR)/package.mk
17
18
19 define Package/iwcap
20 SECTION:=utils
21 CATEGORY:=Utilities
22 TITLE:=Simple radiotap capture utility
23 MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
24 endef
25
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.
32 endef
33
34
35 define Build/Prepare
36 $(INSTALL_DIR) $(PKG_BUILD_DIR)
37 $(CP) ./src/* $(PKG_BUILD_DIR)/
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 $(TARGET_CC) $(TARGET_CFLAGS) \
45 -o $(PKG_BUILD_DIR)/iwcap $(PKG_BUILD_DIR)/iwcap.c
46 endef
47
48
49 define Package/iwcap/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwcap $(1)/usr/sbin/iwcap
52 endef
53
54 $(eval $(call BuildPackage,iwcap))