Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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=2
  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. define Package/luci-app-cshark
  29. SECTION:=luci
  30. CATEGORY:=LuCI
  31. SUBMENU:=3. Applications
  32. TITLE:=Cloudshark capture tool Web UI
  33. DEPENDS:=+cshark +luci
  34. MAINTAINER:=Luka Perkov <luka@openwrt.org>
  35. endef
  36. CMAKE_OPTIONS = \
  37. -DCMAKE_INSTALL_PREFIX=/usr \
  38. -DWITH_DEBUG=OFF \
  39. define Package/cshark/conffiles
  40. /etc/config/cshark
  41. endef
  42. define Package/cshark/install
  43. $(INSTALL_DIR) $(1)/sbin
  44. $(INSTALL_BIN) \
  45. $(PKG_INSTALL_DIR)/usr/bin/cshark \
  46. $(1)/sbin/
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_CONF) \
  49. $(PKG_BUILD_DIR)/config/cshark \
  50. $(1)/etc/config/
  51. $(INSTALL_DIR) $(1)/etc/ssl/certs
  52. $(INSTALL_CONF) \
  53. $(PKG_BUILD_DIR)/config/ca-the_usertrust_network.pem \
  54. $(1)/etc/ssl/certs/
  55. endef
  56. define Package/luci-app-cshark/install
  57. $(INSTALL_DIR) $(1)/usr/lib/lua/luci
  58. $(CP) -R $(PKG_BUILD_DIR)/openwrt/luci/luasrc/* $(1)/usr/lib/lua/luci/
  59. endef
  60. $(eval $(call BuildPackage,cshark))
  61. $(eval $(call BuildPackage,luci-app-cshark))