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.

55 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2008-2015 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.7.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=v$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/uoaerg/wavemon/archive
  13. PKG_MD5SUM:=cd0049f174745d32b4fdf3b63d897bad
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/wavemon
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=N-curses based wireless network devices monitor
  24. DEPENDS:=+libncurses +libpthread
  25. SUBMENU:=wireless
  26. URL:=https://github.com/uoaerg/wavemon/releases
  27. endef
  28. define Package/wavemon/description
  29. wavemon is a ncurses-based monitoring application for wireless network
  30. devices. It currently works under Linux with devices that are supported
  31. by the wireless extensions by Jean Tourrilhes (included in Kernel 2.4
  32. and higher), e.g. the Lucent Orinoco cards.
  33. endef
  34. CONFIGURE_VARS += \
  35. ac_cv_lib_cap_cap_get_flag=no
  36. TARGET_CFLAGS += -pthread
  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))