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

#
# Copyright (C) 2014-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=cshark
PKG_VERSION=2015-11-24-$(PKG_SOURCE_VERSION)
PKG_RELEASE=3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cloudshark/cshark.git
PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=e575ab3d35d75a6f70488001fcba45690ebe9b3e
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/cshark
SECTION:=net
CATEGORY:=Network
TITLE:=CloudShark capture tool
URL:=http://www.cloudshark.org/
DEPENDS:=+libjson-c +libpcap +libuci +libubox +libuclient +libustream-mbedtls
MAINTAINER:=Luka Perkov <luka@openwrt.org>
endef
CMAKE_OPTIONS = \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_DEBUG=OFF \
define Package/cshark/conffiles
/etc/config/cshark
endef
define Package/cshark/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/cshark \
$(1)/sbin/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) \
$(PKG_BUILD_DIR)/config/cshark \
$(1)/etc/config/
$(INSTALL_DIR) $(1)/etc/ssl/certs
$(INSTALL_CONF) \
$(PKG_BUILD_DIR)/config/ca-the_usertrust_network.pem \
$(1)/etc/ssl/certs/
endef
$(eval $(call BuildPackage,cshark))