mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
iotivity: update to version 1.2.1
This does the following changes: * update to version 1.2.1 * add iotivity-resource-directory-lib, this is needed by most applications now * do not activate security support by default, this caused some problems and needs some more settings to setup. * use sqlite version from normal package feed instead of using an own version * build against LEDE version of mbedtls * update example security configuration * remove some patches that went upstream * add some new patches fixing problems observed in my environment, most of them are on their way upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
+29
-32
@@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=iotivity
|
||||
PKG_VERSION:=1.1.0
|
||||
PKG_VERSION:=1.2.1
|
||||
PKG_RELEASE=1
|
||||
|
||||
PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
|
||||
PKG_SOURCE_URL:=http://mirrors.kernel.org/${PKG_NAME}/${PKG_VERSION}/
|
||||
PKG_MD5SUM:=98f8d5b0304c357520c4343d983491e2
|
||||
PKG_MD5SUM:=7dcd9f0f48263c6b27a2c3d085dd7278b5c0feed1dfec8872a04899707fa23d8
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
PKG_BUILD_DEPENDS:=boost
|
||||
@@ -26,6 +26,7 @@ PKG_LICENSE_FILES:=LICENSE.md
|
||||
PKG_CONFIG_DEPENDS := \
|
||||
CONFIG_PACKAGE_iotivity \
|
||||
CONFIG_PACKAGE_iotivity-cpp \
|
||||
CONFIG_PACKAGE_iotivity-resource-directory-lib \
|
||||
CONFIG_PACKAGE_iotivity-oic-middle \
|
||||
CONFIG_PACKAGE_iotivity-resource-container-lib \
|
||||
CONFIG_PACKAGE_iotivity-resource-container-sample \
|
||||
@@ -42,7 +43,7 @@ include $(INCLUDE_DIR)/scons.mk
|
||||
define Package/iotivity
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=@!USE_UCLIBC +libpthread +librt +libuuid
|
||||
DEPENDS:=@!USE_UCLIBC +libpthread +librt +libuuid +libsqlite3 +PACKAGE_iotivity_SECURE:libmbedtls
|
||||
TITLE:=IoTivity C Library
|
||||
URL:=https://www.iotivity.org
|
||||
MENU:=1
|
||||
@@ -62,7 +63,6 @@ define Package/iotivity/config
|
||||
|
||||
config PACKAGE_iotivity_SECURE
|
||||
bool "IoTivity with security support"
|
||||
default y
|
||||
help
|
||||
Activate security support.
|
||||
|
||||
@@ -83,11 +83,19 @@ define Package/iotivity-cpp/description
|
||||
Open Interconnect Consortium Specification.
|
||||
endef
|
||||
|
||||
define Package/iotivity-resource-directory-lib
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+iotivity +iotivity-cpp
|
||||
TITLE:=IoTivity Resource Directory library
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
|
||||
|
||||
define Package/iotivity-oic-middle
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+iotivity +iotivity-cpp
|
||||
DEPENDS:=+iotivity +iotivity-cpp +iotivity-resource-directory-lib
|
||||
TITLE:=IoTivity OIC Middle
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -123,7 +131,7 @@ endef
|
||||
define Package/iotivity-example-garage
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+iotivity +iotivity-cpp
|
||||
DEPENDS:=+iotivity +iotivity-cpp +iotivity-resource-directory-lib
|
||||
TITLE:=IoTivity Garage example
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -135,7 +143,7 @@ endef
|
||||
define Package/iotivity-example-simple
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+iotivity +iotivity-cpp
|
||||
DEPENDS:=+iotivity +iotivity-cpp +iotivity-resource-directory-lib
|
||||
TITLE:=IoTivity simple client + server
|
||||
URL:=https://www.iotivity.org
|
||||
endef
|
||||
@@ -146,39 +154,24 @@ endef
|
||||
|
||||
|
||||
PKG_TINYCBOR_NAME:=tinycbor
|
||||
PKG_TINYCBOR_VERSION:=43e3ac9490cf19459ec7b7bd13df3b66810fb62a
|
||||
PKG_TINYCBOR_SOURCE:=$(PKG_TINYCBOR_NAME)-$(PKG_TINYCBOR_VERSION).tar.bz2
|
||||
PKG_TINYCBOR_PROTO:=git
|
||||
PKG_TINYCBOR_VERSION:=0.4
|
||||
PKG_TINYCBOR_SOURCE_VERSION:=a088996aa5f59b4f27f20fadad053d88bee357d4
|
||||
PKG_TINYCBOR_SOURCE:=$(PKG_TINYCBOR_NAME)-$(PKG_TINYCBOR_VERSION).tar.bz2
|
||||
PKG_TINYCBOR_SOURCE_URL:=https://github.com/01org/tinycbor.git
|
||||
PKG_TINYCBOR_SUBDIR:=$(PKG_TINYCBOR_NAME)
|
||||
#PKG_TINYCBOR_MIRROR_MD5SUM:=?
|
||||
|
||||
define Download/iotivity-tinycbor
|
||||
FILE:=$(PKG_TINYCBOR_SOURCE)
|
||||
URL:=$(PKG_TINYCBOR_SOURCE_URL)
|
||||
PROTO:=$(PKG_TINYCBOR_PROTO)
|
||||
VERSION:=$(PKG_TINYCBOR_VERSION)
|
||||
VERSION:=$(PKG_TINYCBOR_SOURCE_VERSION)
|
||||
SUBDIR:=$(PKG_TINYCBOR_SUBDIR)
|
||||
#MIRROR_MD5SUM:=$(PKG_TINYCBOR_MIRROR_MD5SUM)
|
||||
endef
|
||||
$(eval $(call Download,iotivity-tinycbor))
|
||||
|
||||
PKG_SQLITE_NAME:=sqlite
|
||||
PKG_SQLITE_VERSION:=3081101
|
||||
PKG_SQLITE_SOURCE:=$(PKG_SQLITE_NAME)-amalgamation-$(PKG_SQLITE_VERSION).zip
|
||||
PKG_SQLITE_SOURCE_URL:=http://www.sqlite.org/2015/
|
||||
PKG_SQLITE_SUBDIR:=$(PKG_SQLITE_NAME)
|
||||
PKG_SQLITE_MD5SUM:=94907e831502e2080b76e281cfa24dde
|
||||
|
||||
define Download/iotivity-sqlite
|
||||
FILE:=$(PKG_SQLITE_SOURCE)
|
||||
URL:=$(PKG_SQLITE_SOURCE_URL)
|
||||
VERSION:=$(PKG_SQLITE_VERSION)
|
||||
SUBDIR:=$(PKG_SQLITE_SUBDIR)
|
||||
MD5SUM:=$(PKG_SQLITE_MD5SUM)
|
||||
endef
|
||||
$(eval $(call Download,iotivity-sqlite))
|
||||
|
||||
EXTRA_CXXFLAGS += -std=gnu++11
|
||||
|
||||
SCONS_OPTIONS += \
|
||||
TARGET_OS=linux \
|
||||
@@ -186,8 +179,8 @@ SCONS_OPTIONS += \
|
||||
TARGET_ARCH=$(ARCH) \
|
||||
STAGING_DIR=$(STAGING_DIR) \
|
||||
LOGGING=true \
|
||||
$(if $(CONFIG_PACKAGE_iotivity),liboctbstack) \
|
||||
$(if $(CONFIG_PACKAGE_iotivity-cpp),liboc) \
|
||||
$(if $(CONFIG_PACKAGE_iotivity),octbstack) \
|
||||
$(if $(CONFIG_PACKAGE_iotivity-cpp),oc) \
|
||||
$(if $(CONFIG_PACKAGE_iotivity-oic-middle),examples) \
|
||||
$(if $(CONFIG_PACKAGE_iotivity-resource-container-lib),libResContainer) \
|
||||
$(if $(CONFIG_PACKAGE_iotivity-resource-container-sample),containersample) \
|
||||
@@ -216,9 +209,6 @@ endif
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
$(TAR) -C $(PKG_BUILD_DIR)/extlibs/tinycbor/ -xjf $(DL_DIR)/$(PKG_TINYCBOR_SOURCE)
|
||||
unzip -d $(PKG_BUILD_DIR)/extlibs/sqlite3/ $(DL_DIR)/$(PKG_SQLITE_SOURCE)
|
||||
mv $(PKG_BUILD_DIR)/extlibs/sqlite3/$(PKG_SQLITE_NAME)-amalgamation-$(PKG_SQLITE_VERSION)/sqlite3.h $(PKG_BUILD_DIR)/extlibs/sqlite3/
|
||||
mv $(PKG_BUILD_DIR)/extlibs/sqlite3/$(PKG_SQLITE_NAME)-amalgamation-$(PKG_SQLITE_VERSION)/sqlite3.c $(PKG_BUILD_DIR)/extlibs/sqlite3/
|
||||
endef
|
||||
|
||||
|
||||
@@ -233,6 +223,7 @@ endef
|
||||
|
||||
define Package/iotivity/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/$(APP_OPTIM)/libconnectivity_abstraction.so $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/$(APP_OPTIM)/liboctbstack.so $(1)/usr/lib/
|
||||
ifeq ($(CONFIG_PACKAGE_iotivity_SECURE),y)
|
||||
$(INSTALL_DIR) $(1)/etc/iotivity/
|
||||
@@ -246,6 +237,11 @@ define Package/iotivity-cpp/install
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/$(APP_OPTIM)/liboc_logger.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/iotivity-resource-directory-lib/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/$(APP_OPTIM)/libresource_directory.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/iotivity-oic-middle/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/linux/$(ARCH)/$(APP_OPTIM)/examples/OICMiddle/OICMiddle $(1)/usr/bin/
|
||||
@@ -284,6 +280,7 @@ endef
|
||||
|
||||
$(eval $(call BuildPackage,iotivity))
|
||||
$(eval $(call BuildPackage,iotivity-cpp))
|
||||
$(eval $(call BuildPackage,iotivity-resource-directory-lib))
|
||||
$(eval $(call BuildPackage,iotivity-oic-middle))
|
||||
$(eval $(call BuildPackage,iotivity-resource-container-lib))
|
||||
$(eval $(call BuildPackage,iotivity-resource-container-sample))
|
||||
|
||||
Reference in New Issue
Block a user