|
|
@ -11,12 +11,12 @@ PKG_LICENSE:=ASL-2.0 |
|
|
|
PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr> |
|
|
|
|
|
|
|
PKG_NAME:=sysrepo |
|
|
|
PKG_VERSION:=0.7.4 |
|
|
|
PKG_VERSION:=0.7.5 |
|
|
|
PKG_RELEASE:=3 |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/sysrepo/sysrepo/tar.gz/v$(PKG_VERSION)? |
|
|
|
PKG_HASH:=238456bbb18149fd0fa5ebc9acb3c6e3129474c796db7447c2a95dcd40ab3084 |
|
|
|
PKG_HASH:=3ef20e1e005fd22f13d1996231ccfc72241f3f76c5700397ad59dda0f9b29f72 |
|
|
|
|
|
|
|
CMAKE_INSTALL:=1 |
|
|
|
|
|
|
@ -40,7 +40,7 @@ define Package/libsysrepo |
|
|
|
CATEGORY:=Utilities |
|
|
|
URL:=$(PKG_SOURCE_URL) |
|
|
|
TITLE:=YANG-based data store library |
|
|
|
DEPENDS:=+libyang +libprotobuf-c +libev +libredblack +librt +SYSREPO_BINDINGS:libstdcpp +SYSREPO_PYTHON:python-base +SYSREPO_LUA:lua |
|
|
|
DEPENDS:=+libyang +libprotobuf-c +libev +libredblack +librt +libpthread +SYSREPO_BINDINGS:libstdcpp +SYSREPO_PYTHON:python-base +SYSREPO_LUA:lua |
|
|
|
MENU:=1 |
|
|
|
endef |
|
|
|
|
|
|
@ -90,7 +90,8 @@ CMAKE_OPTIONS += \ |
|
|
|
-DOPER_DATA_PROVIDE_TIMEOUT=4 \
|
|
|
|
-DNOTIF_AGE_TIMEOUT=120 \
|
|
|
|
-DNOTIF_TIME_WINDOW=20 \
|
|
|
|
-DUSE_SR_MEM_MGMT=0 |
|
|
|
-DUSE_SR_MEM_MGMT=0 \
|
|
|
|
-DFILE_FORMAT_EXT:STRING=xml |
|
|
|
|
|
|
|
ifeq ($(CONFIG_SYSREPO_LUA),y) |
|
|
|
CMAKE_OPTIONS += \
|
|
|
@ -108,7 +109,8 @@ ifeq ($(CONFIG_SYSREPO_BINDINGS),y) |
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG=FALSE \
|
|
|
|
-DGEN_LANGUAGE_BINDINGS:BOOL=TRUE \
|
|
|
|
-DSWIG_DIR=$(STAGING_DIR)/host/share/swig |
|
|
|
-DSWIG_DIR=$(STAGING_DIR)/host/share/swig \
|
|
|
|
-DCALL_TARGET_BINS_DIRECTLY=OFF |
|
|
|
endif |
|
|
|
|
|
|
|
define Package/libsysrepo/install |
|
|
@ -121,7 +123,7 @@ define Package/libsysrepo/install |
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/yang/sysrepo-persistent-data.yang $(1)/etc/sysrepo/yang/internal |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/yang |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/yang/ietf-netconf-acm@2012-02-22.yang $(1)/etc/sysrepo/yang/ietf-netconf-acm@2012-02-22.yang |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/yang/ietf-netconf-acm@2018-02-14.yang $(1)/etc/sysrepo/yang/ietf-netconf-acm@2018-02-14.yang |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/yang/ietf-netconf-notifications.yang $(1)/etc/sysrepo/yang/ietf-netconf-notifications@2012-02-06.yang |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/yang/nc-notifications.yang $(1)/etc/sysrepo/yang/nc-notifications@2008-07-14.yang |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/yang/notifications.yang $(1)/etc/sysrepo/yang/notifications@2008-07-14.yang |
|
|
@ -169,6 +171,17 @@ define Package/sysrepocfg/install |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sysrepocfg $(1)/bin/ |
|
|
|
endef |
|
|
|
|
|
|
|
define Build/InstallDev |
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsysrepo.pc $(1)/usr/lib/pkgconfig/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/libsysrepo.so* $(1)/usr/lib/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include |
|
|
|
$(CP) $(PKG_BUILD_DIR)/inc/* $(1)/usr/include/ |
|
|
|
endef |
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsysrepo)) |
|
|
|
$(eval $(call BuildPackage,sysrepo)) |
|
|
|
$(eval $(call BuildPackage,sysrepoctl)) |
|
|
|