You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2008-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=wavemon
  9. PKG_VERSION:=0.8.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/uoaerg/wavemon/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=4199e2ad11a036f4289f5ad42a8b0fe518f2b5ff77447f4c366dbcf3f23e91d5
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/wavemon
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=N-curses based wireless network devices monitor
  23. DEPENDS:=+libncurses +libpthread +libnl-genl
  24. SUBMENU:=wireless
  25. URL:=https://github.com/uoaerg/wavemon/releases
  26. endef
  27. define Package/wavemon/description
  28. wavemon is a ncurses-based monitoring application for wireless network
  29. devices. It currently works under Linux with devices that are supported
  30. by the wireless extensions by Jean Tourrilhes (included in Kernel 2.4
  31. and higher), e.g. the Lucent Orinoco cards.
  32. endef
  33. CONFIGURE_VARS += \
  34. ac_cv_lib_cap_cap_get_flag=no \
  35. BUILD_DATE=$(SOURCE_DATE_EPOCH)
  36. TARGET_CFLAGS += -pthread -I$(STAGING_DIR)/usr/include/libnl3
  37. MAKE_FLAGS += \
  38. CFLAGS="$(TARGET_CFLAGS) -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include"
  39. define Package/wavemon/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wavemon $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,wavemon))