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.2 KiB

  1. #
  2. # Copyright (C) 2014-2015 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:=cshark
  9. PKG_SOURCE_DATE:=2020-07-22
  10. PKG_SOURCE_VERSION:=c0d32fb6df3cd095fecac8aefe8d188170246403
  11. PKG_RELEASE:=$(AUTORELEASE)
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/cloudshark/cshark.git
  14. PKG_MIRROR_HASH:=35fd177653725e64c330fca62e674c1106d5893c8a33bad29b8e6dac4a4d4dcc
  15. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  16. PKG_LICENSE:=BSD-2-Clause
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/cshark
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=CloudShark capture tool
  23. URL:=https://cloudshark.io/
  24. DEPENDS:=+libjson-c +libpcap +libuci +libubox +libuclient +libustream-mbedtls
  25. endef
  26. CMAKE_OPTIONS += \
  27. -DWITH_DEBUG=OFF
  28. define Package/cshark/conffiles
  29. /etc/config/cshark
  30. endef
  31. define Package/cshark/install
  32. $(INSTALL_DIR) $(1)/sbin
  33. $(INSTALL_BIN) \
  34. $(PKG_INSTALL_DIR)/usr/bin/cshark \
  35. $(1)/sbin/
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_CONF) \
  38. $(PKG_BUILD_DIR)/config/cshark \
  39. $(1)/etc/config/
  40. endef
  41. $(eval $(call BuildPackage,cshark))