|
|
@ -8,12 +8,12 @@ |
|
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=sysrepo |
|
|
|
PKG_VERSION:=0.7.8 |
|
|
|
PKG_RELEASE:=2 |
|
|
|
PKG_VERSION:=1.4.2 |
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/sysrepo/sysrepo/tar.gz/v$(PKG_VERSION)? |
|
|
|
PKG_HASH:=d3066c1776a6727b96bbb3517eb646d0bb6037e8e1addcbe873cae590493843e |
|
|
|
PKG_HASH:=d84d4f092feab83b0a39fef5d0d62bc6ed1f0f8aa274329f2cbf0a95a6528d8a |
|
|
|
|
|
|
|
PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr> |
|
|
|
PKG_LICENSE:=Apache-2.0 |
|
|
@ -33,7 +33,7 @@ define Package/libsysrepo |
|
|
|
CATEGORY:=Libraries |
|
|
|
TITLE:=YANG-based data store library |
|
|
|
URL:=https://www.sysrepo.org/ |
|
|
|
DEPENDS:=+libyang +libprotobuf-c +libev +libredblack +librt +libpthread |
|
|
|
DEPENDS:=+libyang +libatomic +libprotobuf-c +libev +libredblack +librt +libpthread |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/python3-sysrepo |
|
|
@ -42,7 +42,7 @@ define Package/python3-sysrepo |
|
|
|
SUBMENU:=Python |
|
|
|
TITLE:=YANG-based data store library - Python 3 bindings |
|
|
|
URL:=https://www.sysrepo.org/ |
|
|
|
DEPENDS:=+libsysrepo +libstdcpp +python3-base |
|
|
|
DEPENDS:=+libsysrepo +libstdcpp +python3-base +libyang-cpp |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/sysrepo |
|
|
@ -76,46 +76,27 @@ endef |
|
|
|
SWIG_VERSION:=4.0.1 |
|
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DUSE_AVL_LIB:BOOL=FALSE \
|
|
|
|
-DENABLE_TESTS:BOOL=FALSE \
|
|
|
|
-DBUILD_EXAMPLES:BOOL=FALSE \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE="Package" \
|
|
|
|
-DREPOSITORY_LOC:PATH=/etc/sysrepo \
|
|
|
|
-DENABLE_NACM:BOOL=FALSE \
|
|
|
|
-DREQUEST_TIMEOUT=6 \
|
|
|
|
-DLONG_REQUEST_TIMEOUT=30 \
|
|
|
|
-DCOMMIT_VERIFY_TIMEOUT=20 \
|
|
|
|
-DOPER_DATA_PROVIDE_TIMEOUT=4 \
|
|
|
|
-DNOTIF_AGE_TIMEOUT=120 \
|
|
|
|
-DNOTIF_TIME_WINDOW=20 \
|
|
|
|
-DUSE_SR_MEM_MGMT=0 \
|
|
|
|
-DFILE_FORMAT_EXT:STRING=xml \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG=FALSE \
|
|
|
|
-DGEN_LANGUAGE_BINDINGS:BOOL=TRUE \
|
|
|
|
-DSWIG_DIR=$(STAGING_DIR_HOSTPKG)/share/swig/$(SWIG_VERSION) \
|
|
|
|
-DSWIG_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/bin/swig \
|
|
|
|
-DCALL_TARGET_BINS_DIRECTLY=OFF \
|
|
|
|
-DGEN_PYTHON_BINDINGS:BOOL=TRUE \
|
|
|
|
-DGEN_PYTHON_VERSION=3 \
|
|
|
|
-DGEN_PYTHON3_TESTS:BOOL=FALSE |
|
|
|
-DGEN_LANGUAGE_BINDINGS:BOOL=TRUE \
|
|
|
|
-DGEN_PYTHON_BINDINGS:BOOL=TRUE |
|
|
|
|
|
|
|
define Package/libsysrepo/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/libsysrepo.so* $(1)/usr/lib/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/yang/internal |
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/yang/sysrepo-module-dependencies.yang $(1)/etc/sysrepo/yang/internal |
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/yang/sysrepo-notification-store.yang $(1)/etc/sysrepo/yang/internal |
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/yang/sysrepo-persistent-data.yang $(1)/etc/sysrepo/yang/internal |
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysrepo.so* $(1)/usr/lib/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/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 |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/yang/ietf-netconf@2011-06-01.yang $(1)/etc/sysrepo/yang/ietf-netconf@2011-06-01.yang |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/data/internal |
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/data/notifications |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-netconf-with-defaults.yang $(1)/etc/sysrepo/yang/ |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-netconf-notifications.yang $(1)/etc/sysrepo/yang/ |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-netconf.yang $(1)/etc/sysrepo/yang/ |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-origin.yang $(1)/etc/sysrepo/yang/ |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/sysrepo.yang $(1)/etc/sysrepo/yang/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults |
|
|
|
$(INSTALL_BIN) ./files/libsysrepo.default $(1)/etc/uci-defaults/95_libsysrepo |
|
|
@ -123,31 +104,28 @@ endef |
|
|
|
|
|
|
|
define Package/python3-sysrepo/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
|
$(CP) $(PKG_BUILD_DIR)/swig/libSysrepo-cpp.so* $(1)/usr/lib |
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysrepo-cpp.so* $(1)/usr/lib |
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR) |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/swig/python/sysrepo.py $(1)$(PYTHON3_PKG_DIR) |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/swig/python/_sysrepo.so $(1)$(PYTHON3_PKG_DIR) |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/bindings/python/sysrepo.py $(1)$(PYTHON3_PKG_DIR) |
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/bindings/python/_sysrepo.so $(1)$(PYTHON3_PKG_DIR) |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/sysrepo/install |
|
|
|
$(INSTALL_DIR) $(1)/bin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sysrepod $(1)/bin/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/bin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sysrepo-plugind $(1)/bin/ |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysrepo-plugind $(1)/usr/bin/ |
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/ |
|
|
|
$(INSTALL_BIN) ./files/sysrepo.init $(1)/etc/init.d/sysrepo |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/sysrepoctl/install |
|
|
|
$(INSTALL_DIR) $(1)/bin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sysrepoctl $(1)/bin/ |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysrepoctl $(1)/usr/bin/ |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/sysrepocfg/install |
|
|
|
$(INSTALL_DIR) $(1)/bin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sysrepocfg $(1)/bin/ |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysrepocfg $(1)/usr/bin/ |
|
|
|
endef |
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsysrepo)) |
|
|
|