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