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.

61 lines
1.4 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_VERSION=2015-11-24-$(PKG_SOURCE_VERSION)
  10. PKG_RELEASE=3
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/cloudshark/cshark.git
  13. PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=e575ab3d35d75a6f70488001fcba45690ebe9b3e
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=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:=http://www.cloudshark.org/
  25. DEPENDS:=+libjson-c +libpcap +libuci +libubox +libuclient +libustream-mbedtls
  26. MAINTAINER:=Luka Perkov <luka@openwrt.org>
  27. endef
  28. CMAKE_OPTIONS = \
  29. -DCMAKE_INSTALL_PREFIX=/usr \
  30. -DWITH_DEBUG=OFF \
  31. define Package/cshark/conffiles
  32. /etc/config/cshark
  33. endef
  34. define Package/cshark/install
  35. $(INSTALL_DIR) $(1)/sbin
  36. $(INSTALL_BIN) \
  37. $(PKG_INSTALL_DIR)/usr/bin/cshark \
  38. $(1)/sbin/
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) \
  41. $(PKG_BUILD_DIR)/config/cshark \
  42. $(1)/etc/config/
  43. $(INSTALL_DIR) $(1)/etc/ssl/certs
  44. $(INSTALL_CONF) \
  45. $(PKG_BUILD_DIR)/config/ca-the_usertrust_network.pem \
  46. $(1)/etc/ssl/certs/
  47. endef
  48. $(eval $(call BuildPackage,cshark))