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.

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