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.

59 lines
1.4 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=nfdump
  7. PKG_VERSION:=1.6.18
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/phaag/nfdump/tar.gz/v$(PKG_VERSION)?
  11. PKG_HASH:=5d6046bf7faa34713b004c6cf8b3d30027c761c5ac22a3195d49388342e8147e
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/nfdump
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:= +libbz2 +USE_MUSL:musl-fts
  23. TITLE:= nfdump
  24. URL:=https://github.com/phaag/nfdump/
  25. endef
  26. define Package/nfdump/description
  27. NetFlow collecting and processing tools
  28. endef
  29. define Package/nfdump/conffiles
  30. /etc/config/nfcapd
  31. endef
  32. TARGET_CFLAGS += -flto
  33. TARGET_LDFLAGS += -Wl,--as-needed $(if $(CONFIG_USE_MUSL),-lfts)
  34. define Package/nfdump/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnfdump-$(PKG_VERSION).so $(1)/usr/lib/
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_DATA) ./files/nfcapd.config $(1)/etc/config/nfcapd
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/nfcapd.init $(1)/etc/init.d/nfcapd
  43. endef
  44. $(eval $(call BuildPackage,nfdump))