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.

58 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.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=https://github.com/uoaerg/wavemon.git
  15. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  16. PKG_LICENSE:=GPL-2.0+
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/wavemon
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=N-curses based wireless network devices monitor
  26. DEPENDS:=+libncurses +libpthread +libnl-genl
  27. SUBMENU:=wireless
  28. URL:=https://github.com/uoaerg/wavemon/releases
  29. endef
  30. define Package/wavemon/description
  31. wavemon is a ncurses-based monitoring application for wireless network
  32. devices. It currently works under Linux with devices that are supported
  33. by the wireless extensions by Jean Tourrilhes (included in Kernel 2.4
  34. and higher), e.g. the Lucent Orinoco cards.
  35. endef
  36. CONFIGURE_VARS += \
  37. ac_cv_lib_cap_cap_get_flag=no
  38. TARGET_CFLAGS += -pthread -I$(STAGING_DIR)/usr/include/libnl3
  39. MAKE_FLAGS += \
  40. CFLAGS="$(TARGET_CFLAGS) -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include"
  41. define Package/wavemon/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wavemon $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,wavemon))