mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
iotivity: update to version 0.9.2
This brings IoTivity to version 0.9.2 in addition it does the following: * split C and C++ Stack into two packages * backport some patches which are adding missing dependencies to the shared libs * remove patches merged upstream * add some other patches fixing some problems, most of them are already merged upstream * activate security and logging support Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
This commit is contained in:
committed by
Hauke Mehrtens
parent
d0554e68a0
commit
0ec3a55767
+64
-44
@@ -8,15 +8,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=iotivity
|
||||
PKG_VERSION:=0.9.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=0.9.2
|
||||
PKG_RELEASE=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://gerrit.iotivity.org/gerrit/iotivity
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=0.9.1
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_MIRROR_MD5SUM:=
|
||||
PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
|
||||
PKG_SOURCE_URL:=https://downloads.iotivity.org/${PKG_VERSION}/ \
|
||||
http://mirrors.kernel.org/${PKG_NAME}/${PKG_VERSION}/
|
||||
PKG_MD5SUM:=cf32e10a8f355fe1327db98ffc9a6173
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
PKG_MAINTAINER:=Hauke Mehrtens <hauke.mehrtens@lantiq.com>
|
||||
@@ -33,8 +31,8 @@ include $(INCLUDE_DIR)/scons.mk
|
||||
define Package/iotivity
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=@!USE_UCLIBC +libpthread +librt +libstdcpp +libuuid
|
||||
TITLE:=IoTivity Library
|
||||
DEPENDS:=@!USE_UCLIBC +libpthread +librt +libuuid
|
||||
TITLE:=IoTivity C Library
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
|
||||
@@ -44,10 +42,24 @@ define Package/iotivity/description
|
||||
endef
|
||||
|
||||
|
||||
define Package/iotivity-cpp
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity +libpthread +libstdcpp
|
||||
TITLE:=IoTivity C++ Library
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
|
||||
define Package/iotivity-cpp/description
|
||||
IoTivity is a framework for the Internet of Things based on the
|
||||
Open Interconnect Consortium Specification.
|
||||
endef
|
||||
|
||||
|
||||
define Package/iotivity-things-manager-lib
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity
|
||||
DEPENDS:=iotivity +iotivity-cpp +libstdcpp
|
||||
TITLE:=IoTivity things manager lib
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -60,7 +72,7 @@ endef
|
||||
define Package/iotivity-plugin-manager-lib
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity +libexpat
|
||||
DEPENDS:=iotivity +iotivity-cpp +libexpat +boost +boost-system
|
||||
TITLE:=IoTivity plugin manager lib
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -73,7 +85,7 @@ endef
|
||||
define Package/iotivity-mqttclient
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity +iotivity-plugin-manager-lib +boost +boost-system
|
||||
DEPENDS:=iotivity +iotivity-cpp +iotivity-plugin-manager-lib +boost +boost-system
|
||||
TITLE:=IoTivity mqtt Client
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -86,7 +98,7 @@ endef
|
||||
define Package/iotivity-oic-middle
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity
|
||||
DEPENDS:=iotivity +iotivity-cpp
|
||||
TITLE:=IoTivity OIC Middle
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -99,7 +111,7 @@ endef
|
||||
define Package/iotivity-things-manager
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity +iotivity-things-manager-lib
|
||||
DEPENDS:=iotivity +iotivity-cpp +iotivity-things-manager-lib
|
||||
TITLE:=IoTivity things manager
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -112,7 +124,7 @@ endef
|
||||
define Package/iotivity-example-garage
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=iotivity
|
||||
DEPENDS:=iotivity +iotivity-cpp
|
||||
TITLE:=IoTivity Garage example
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -122,23 +134,23 @@ define Package/iotivity-example-garage/description
|
||||
endef
|
||||
|
||||
|
||||
PKG_CEREAL_NAME:=cereal
|
||||
PKG_CEREAL_VERSION:=7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245
|
||||
PKG_CEREAL_SOURCE:=$(PKG_CEREAL_NAME)-$(PKG_CEREAL_VERSION).tar.bz2
|
||||
PKG_CEREAL_PROTO:=git
|
||||
PKG_CEREAL_SOURCE_URL:=https://github.com/USCiLab/cereal.git
|
||||
PKG_CEREAL_SUBDIR:=$(PKG_CEREAL_NAME)
|
||||
#PKG_CEREAL_MIRROR_MD5SUM:=?
|
||||
PKG_TINYCBOR_NAME:=tinycbor
|
||||
PKG_TINYCBOR_VERSION:=3e83c0dc6e55bc73e9a4a7343ab8e06c43127efa
|
||||
PKG_TINYCBOR_SOURCE:=$(PKG_TINYCBOR_NAME)-$(PKG_TINYCBOR_VERSION).tar.bz2
|
||||
PKG_TINYCBOR_PROTO:=git
|
||||
PKG_TINYCBOR_SOURCE_URL:=https://github.com/01org/tinycbor.git
|
||||
PKG_TINYCBOR_SUBDIR:=$(PKG_TINYCBOR_NAME)
|
||||
#PKG_TINYCBOR_MIRROR_MD5SUM:=?
|
||||
|
||||
define Download/iotivity-cereal
|
||||
FILE:=$(PKG_CEREAL_SOURCE)
|
||||
URL:=$(PKG_CEREAL_SOURCE_URL)
|
||||
PROTO:=$(PKG_CEREAL_PROTO)
|
||||
VERSION:=$(PKG_CEREAL_VERSION)
|
||||
SUBDIR:=$(PKG_CEREAL_SUBDIR)
|
||||
#MIRROR_MD5SUM:=$(PKG_CEREAL_MIRROR_MD5SUM)
|
||||
define Download/iotivity-tinycbor
|
||||
FILE:=$(PKG_TINYCBOR_SOURCE)
|
||||
URL:=$(PKG_TINYCBOR_SOURCE_URL)
|
||||
PROTO:=$(PKG_TINYCBOR_PROTO)
|
||||
VERSION:=$(PKG_TINYCBOR_VERSION)
|
||||
SUBDIR:=$(PKG_TINYCBOR_SUBDIR)
|
||||
#MIRROR_MD5SUM:=$(PKG_TINYCBOR_MIRROR_MD5SUM)
|
||||
endef
|
||||
$(eval $(call Download,iotivity-cereal))
|
||||
$(eval $(call Download,iotivity-tinycbor))
|
||||
|
||||
|
||||
SCONS_OPTIONS += \
|
||||
@@ -146,6 +158,8 @@ SCONS_OPTIONS += \
|
||||
TARGET_TRANSPORT=ALL \
|
||||
TARGET_ARCH=$(ARCH) \
|
||||
STAGING_DIR=$(STAGING_DIR) \
|
||||
LOGGING=true \
|
||||
SECURED=1 \
|
||||
mqttclient examples samples libTGMSDK ConServerApp ConClientApp BootstrapServerApp
|
||||
|
||||
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
|
||||
@@ -154,9 +168,10 @@ endif
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
$(TAR) -C $(PKG_BUILD_DIR)/extlibs/cereal -xjf $(DL_DIR)/$(PKG_CEREAL_SOURCE)
|
||||
$(TAR) -C $(PKG_BUILD_DIR)/extlibs/tinycbor/ -xjf $(DL_DIR)/$(PKG_TINYCBOR_SOURCE)
|
||||
endef
|
||||
|
||||
|
||||
define Build/Configure
|
||||
(cd $(PKG_BUILD_DIR); \
|
||||
$(SCONS_VARS) \
|
||||
@@ -168,46 +183,51 @@ endef
|
||||
|
||||
define Package/iotivity/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/liboc.so $(1)/usr/lib/liboc.so
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/liboc_logger.so $(1)/usr/lib/liboc_logger.so
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/liboctbstack.so $(1)/usr/lib/liboctbstack.so
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/liboctbstack.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/iotivity-cpp/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/liboc.so $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/liboc_logger.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/iotivity-things-manager-lib/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/libTGMSDKLibrary.so $(1)/usr/lib/libTGMSDKLibrary.so
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/libTGMSDKLibrary.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/iotivity-plugin-manager-lib/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/libpmimpl.so $(1)/usr/lib/libpmimpl.so
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/libpmimpl.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/iotivity-mqttclient/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/protocol-plugin/sample-app/linux/mqtt/mqttclient $(1)/usr/bin/mqttclient
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/protocol-plugin/sample-app/linux/mqtt/mqttclient $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
define Package/iotivity-oic-middle/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/examples/OICMiddle/OICMiddle $(1)/usr/bin/OICMiddle
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/examples/OICMiddle/OICMiddle $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
define Package/iotivity-things-manager/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/things-manager/sampleapp/linux/configuration/bootstrapserver $(1)/usr/bin/bootstrapserver
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/things-manager/sampleapp/linux/configuration/con-server $(1)/usr/bin/con-server
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/things-manager/sampleapp/linux/configuration/con-client $(1)/usr/bin/con-client
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/things-manager/sampleapp/linux/configuration/bootstrapserver $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/things-manager/sampleapp/linux/configuration/con-server $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/service/things-manager/sampleapp/linux/configuration/con-client $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
define Package/iotivity-example-garage/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/resource/examples/garageclient $(1)/usr/bin/garageclient
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/resource/examples/garageserver $(1)/usr/bin/garageserver
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/resource/examples/garageclient $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/release/resource/examples/garageserver $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,iotivity))
|
||||
$(eval $(call BuildPackage,iotivity-cpp))
|
||||
$(eval $(call BuildPackage,iotivity-things-manager-lib))
|
||||
$(eval $(call BuildPackage,iotivity-plugin-manager-lib))
|
||||
$(eval $(call BuildPackage,iotivity-mqttclient))
|
||||
|
||||
Reference in New Issue
Block a user