Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (C) 2012 Jo-Philipp Wich <[email protected]>
  3. #
  4. # This is free software, licensed under the Apache 2 license.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=iwcap
  8. PKG_RELEASE:=1
  9. include $(INCLUDE_DIR)/package.mk
  10. define Package/iwcap
  11. SECTION:=utils
  12. CATEGORY:=Utilities
  13. TITLE:=Simple radiotap capture utility
  14. MAINTAINER:=Jo-Philipp Wich <[email protected]>
  15. endef
  16. define Package/iwcap/description
  17. The iwcap utility receives radiotap packet data from wifi monitor interfaces
  18. and outputs it to pcap format. It gathers recived packets in a fixed ring
  19. buffer to dump them on demand which is useful for background monitoring.
  20. Alternatively the utility can stream the data to stdout to act as remote
  21. capture drone for Wireshark or similar programs.
  22. endef
  23. define Build/Prepare
  24. $(INSTALL_DIR) $(PKG_BUILD_DIR)
  25. $(CP) ./src/* $(PKG_BUILD_DIR)/
  26. endef
  27. define Build/Configure
  28. endef
  29. define Build/Compile
  30. $(TARGET_CC) $(TARGET_CFLAGS) \
  31. -o $(PKG_BUILD_DIR)/iwcap $(PKG_BUILD_DIR)/iwcap.c
  32. endef
  33. define Package/iwcap/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwcap $(1)/usr/sbin/iwcap
  36. endef
  37. $(eval $(call BuildPackage,iwcap))