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.

53 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.9.2
  10. PKG_RELEASE:=1
  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:=13334ff17720ba4d17f4658dd2b93a50a6b5bc0583dedd72b88fd0cb90db686a
  14. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=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 +libnl-genl
  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_ARGS += --without-libcap
  35. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl3
  36. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lpthread)
  37. define Package/wavemon/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wavemon $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,wavemon))