@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := sysrepo
PKG_NAME := sysrepo
PKG_VERSION := 0.7.8
PKG_VERSION := 0.7.8
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/sysrepo/sysrepo/tar.gz/v$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/sysrepo/sysrepo/tar.gz/v$( PKG_VERSION) ?
@ -21,25 +21,27 @@ PKG_LICENSE_FILES:=LICENSE
CMAKE_INSTALL := 1
CMAKE_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DEPENDS := SYSREPO_BINDINGS: swig/host
PKG_BUILD_DEPENDS := swig/host
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
i f e q ( $( CONFIG_SYSREPO_PYTHON ) , y )
$( call include_mk , python 3-package .mk )
e n d i f
d e f i n e P a c k a g e / l i b s y s r e p o / c o n f i g
source " $( SOURCE) /Config_libsysrepo.in "
e n d e f
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n 3 - p a c k a g e . m k
d e f i n e P a c k a g e / l i b s y s r e p o
d e f i n e P a c k a g e / l i b s y s r e p o
SECTION:= libs
SECTION:= libs
CATEGORY:= Libraries
CATEGORY:= Libraries
TITLE:= YANG-based data store library
TITLE:= YANG-based data store library
URL:= https://www.sysrepo.org/
URL:= https://www.sysrepo.org/
DEPENDS:= +libyang +libprotobuf-c +libev +libredblack +librt +libpthread +SYSREPO_BINDINGS:libstdcpp +SYSREPO_PYTHON:python3-base +SYSREPO_LUA:lua
MENU:= 1
DEPENDS:= +libyang +libprotobuf-c +libev +libredblack +librt +libpthread
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - s y s r e p o
SECTION:= lang
CATEGORY:= Languages
SUBMENU:= Python
TITLE:= YANG-based data store library - Python 3 bindings
URL:= https://www.sysrepo.org/
DEPENDS:= +libsysrepo +libstdcpp +python3-base
e n d e f
e n d e f
d e f i n e P a c k a g e / s y s r e p o
d e f i n e P a c k a g e / s y s r e p o
@ -70,14 +72,12 @@ define Package/sysrepo/description
S y s r e p o i s a n Y A N G - b a s e d c o n f i g u r a t i o n a n d o p e r a t i o n a l s t a t e d a t a s t o r e f o r U n i x / L i n u x a p p l i c a t i o n s .
S y s r e p o i s a n Y A N G - b a s e d c o n f i g u r a t i o n a n d o p e r a t i o n a l s t a t e d a t a s t o r e f o r U n i x / L i n u x a p p l i c a t i o n s .
e n d e f
e n d e f
SWIG_VERSION := 4.0.1
CMAKE_OPTIONS += \
CMAKE_OPTIONS += \
-DUSE_AVL_LIB:BOOL= FALSE \
-DUSE_AVL_LIB:BOOL= FALSE \
-DENABLE_TESTS:BOOL= FALSE \
-DENABLE_TESTS:BOOL= FALSE \
-DBUILD_EXAMPLES:BOOL= FALSE \
-DBUILD_EXAMPLES:BOOL= FALSE \
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG= TRUE \
-DGEN_LANGUAGE_BINDINGS:BOOL= FALSE \
-DGEN_PYTHON_BINDINGS= 0 \
-DGEN_LUA_BINDINGS= 0 \
-DREPOSITORY_LOC:PATH= /etc/sysrepo \
-DREPOSITORY_LOC:PATH= /etc/sysrepo \
-DENABLE_NACM:BOOL= FALSE \
-DENABLE_NACM:BOOL= FALSE \
-DREQUEST_TIMEOUT= 6 \
-DREQUEST_TIMEOUT= 6 \
@ -87,29 +87,15 @@ CMAKE_OPTIONS += \
-DNOTIF_AGE_TIMEOUT= 120 \
-DNOTIF_AGE_TIMEOUT= 120 \
-DNOTIF_TIME_WINDOW= 20 \
-DNOTIF_TIME_WINDOW= 20 \
-DUSE_SR_MEM_MGMT= 0 \
-DUSE_SR_MEM_MGMT= 0 \
-DFILE_FORMAT_EXT:STRING= xml
i f e q ( $( CONFIG_SYSREPO_LUA ) , y )
CMAKE_OPTIONS += \
-DGEN_LUA_BINDINGS:BOOL= TRUE \
-DGEN_LUA_VERSION= 5.1
e n d i f
i f e q ( $( CONFIG_SYSREPO_PYTHON ) , y )
CMAKE_OPTIONS += \
-DGEN_PYTHON_BINDINGS:BOOL= TRUE \
-DGEN_PYTHON_VERSION= 3 \
-DGEN_PYTHON3_TESTS:BOOL= FALSE
e n d i f
i f e q ( $( CONFIG_SYSREPO_BINDINGS ) , y )
CMAKE_OPTIONS += \
-DFILE_FORMAT_EXT:STRING= xml \
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG= FALSE \
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG= FALSE \
-DGEN_LANGUAGE_BINDINGS:BOOL= TRUE \
-DGEN_LANGUAGE_BINDINGS:BOOL= TRUE \
-DSWIG_DIR= $( STAGING_DIR_HOSTPKG) /share/swig \
-DSWIG_DIR= $( STAGING_DIR_HOSTPKG) /share/swig/$( SWIG_VERSION) \
-DSWIG_EXECUTABLE= $( STAGING_DIR_HOSTPKG) /bin/swig \
-DSWIG_EXECUTABLE= $( STAGING_DIR_HOSTPKG) /bin/swig \
-DCALL_TARGET_BINS_DIRECTLY= OFF
e n d i f
-DCALL_TARGET_BINS_DIRECTLY= OFF \
-DGEN_PYTHON_BINDINGS:BOOL= TRUE \
-DGEN_PYTHON_VERSION= 3 \
-DGEN_PYTHON3_TESTS:BOOL= FALSE
d e f i n e P a c k a g e / l i b s y s r e p o / i n s t a l l
d e f i n e P a c k a g e / l i b s y s r e p o / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
@ -132,20 +118,14 @@ define Package/libsysrepo/install
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_BIN) ./files/libsysrepo.default $( 1) /etc/uci-defaults/95_libsysrepo
$( INSTALL_BIN) ./files/libsysrepo.default $( 1) /etc/uci-defaults/95_libsysrepo
e n d e f
i f e q ( $( CONFIG_SYSREPO_PYTHON ) , y )
d e f i n e P a c k a g e / p y t h o n 3 - s y s r e p o / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /swig/libSysrepo-cpp.so* $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /swig/libSysrepo-cpp.so* $( 1) /usr/lib
$( INSTALL_DIR) $( 1) $( PYTHON_PKG_DIR)
$( INSTALL_DATA) $( PKG_BUILD_DIR) /swig/python3/libsysrepoPython3.py $( 1) $( PYTHON_PKG_DIR)
$( INSTALL_DATA) $( PKG_BUILD_DIR) /swig/python3/_libsysrepoPython3.so $( 1) $( PYTHON_PKG_DIR)
e n d i f
i f e q ( $( CONFIG_SYSREPO_LUA ) , y )
$( INSTALL_DIR) $( 1) /usr/lib/lua/
$( CP) $( PKG_BUILD_DIR) /swig/lua/libSysrepo_Lua.so* $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_BUILD_DIR) /swig/lua/libsysrepoLua.so $( 1) /usr/lib/lua/libsysrepoLua.so
e n d i f
$( 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)
e n d e f
e n d e f
d e f i n e P a c k a g e / s y s r e p o / i n s t a l l
d e f i n e P a c k a g e / s y s r e p o / i n s t a l l
@ -170,6 +150,7 @@ define Package/sysrepocfg/install
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,libsysrepo ) )
$( eval $ ( call BuildPackage ,libsysrepo ) )
$( eval $ ( call BuildPackage ,python 3-sysrepo ) )
$( eval $ ( call BuildPackage ,sysrepo ) )
$( eval $ ( call BuildPackage ,sysrepo ) )
$( eval $ ( call BuildPackage ,sysrepoctl ) )
$( eval $ ( call BuildPackage ,sysrepoctl ) )
$( eval $ ( call BuildPackage ,sysrepocfg ) )
$( eval $ ( call BuildPackage ,sysrepocfg ) )