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.

47 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nlbwmon
  3. PKG_RELEASE:=2
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git
  6. PKG_SOURCE_DATE:=2017-08-02
  7. PKG_SOURCE_VERSION:=32fc0925cbc30a4a8f71392e976aa94b586c4086
  8. PKG_MIRROR_HASH:=caedb66cf6dcbdcee0d1525923e203d003ef15f34a13a328686794666f16171f
  9. CMAKE_INSTALL:=1
  10. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  11. PKG_LICENSE:=ISC
  12. PKG_LICENSE_FILES:=COPYING
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
  16. define Package/nlbwmon
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=+libubox +libnl-tiny +zlib +kmod-nf-conntrack-netlink
  20. TITLE:=LEDE Traffic Usage Monitor
  21. endef
  22. define Package/nlbwmon/install
  23. $(INSTALL_DIR) $(1)/usr/sbin
  24. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nlbwmon $(1)/usr/sbin/nlbwmon
  25. $(LN) nlbwmon $(1)/usr/sbin/nlbw
  26. $(INSTALL_DIR) $(1)/usr/share/nlbwmon
  27. $(INSTALL_DATA) $(PKG_BUILD_DIR)/protocols.txt $(1)/usr/share/nlbwmon/protocols
  28. $(INSTALL_DIR) $(1)/etc/init.d
  29. $(INSTALL_BIN) ./files/nlbwmon.init $(1)/etc/init.d/nlbwmon
  30. $(INSTALL_DIR) $(1)/etc/config
  31. $(INSTALL_CONF) ./files/nlbwmon.config $(1)/etc/config/nlbwmon
  32. endef
  33. define Package/nlbwmon/conffiles
  34. /usr/share/nlbwmon/protocols
  35. endef
  36. $(eval $(call BuildPackage,nlbwmon))