Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / net / sysrepo / Makefile
index 721b2052b186645be3e6bc3030bc4ee0dff38102..b832162db15b9213ea22a4a23ab2b2790f2ee3eb 100644 (file)
@@ -11,17 +11,18 @@ PKG_LICENSE:=ASL-2.0
 PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
 
 PKG_NAME:=sysrepo
-PKG_VERSION:=0.6.0
+PKG_VERSION:=0.7.0
 PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=e4a5705a4c5293ba121048c71899b98243d99edf
-PKG_MIRROR_HASH:=aa0fb5d7c947dd428d9f573c84edf6237c8c1a4db92dcd4d7552a68d25277a39
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
+PKG_SOURCE_VERSION:=7aa2f18d234267403147df92c0005c871f0aa840
+PKG_MIRROR_HASH:=31125596ae1c4dbf8dd48c639bf78043060ab1b89678c860eb2b10606fe4b686
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/sysrepo/sysrepo.git
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
+PKG_BUILD_ROOT:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
+PKG_BUILD_DIR:=$(PKG_BUILD_ROOT)
 
 CMAKE_INSTALL:=1
 
@@ -32,15 +33,15 @@ include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
 
 define Package/libsysrepo
-  SECTION:=util
+  SECTION:=utils
   CATEGORY:=Utilities
   URL:=$(PKG_SOURCE_URL)
   TITLE:=YANG-based data store library
-  DEPENDS:=+libyang +libprotobuf-c +libev +libavl
+  DEPENDS:=+libyang +libprotobuf-c +libev +libredblack +librt
 endef
 
 define Package/sysrepo
-  SECTION:=util
+  SECTION:=utils
   CATEGORY:=Utilities
   URL:=$(PKG_SOURCE_URL)
   TITLE:=YANG-based data store daemon and plugin
@@ -48,7 +49,7 @@ define Package/sysrepo
 endef
 
 define Package/sysrepoctl
-  SECTION:=util
+  SECTION:=utils
   CATEGORY:=Utilities
   URL:=$(PKG_SOURCE_URL)
   TITLE:=sysrepo cli tool
@@ -56,7 +57,7 @@ define Package/sysrepoctl
 endef
 
 define Package/sysrepocfg
-  SECTION:=util
+  SECTION:=utils
   CATEGORY:=Utilities
   URL:=$(PKG_SOURCE_URL)
   TITLE:=sysrepo configuration tool
@@ -69,13 +70,21 @@ endef
 
 CMAKE_OPTIONS += \
        -DCMAKE_BUILD_TYPE:STRING=Release \
+       -DUSE_AVL_LIB:BOOL=FALSE \
        -DENABLE_TESTS:BOOL=FALSE \
        -DBUILD_EXAMPLES:BOOL=FALSE \
        -DCMAKE_DISABLE_FIND_PACKAGE_SWIG=TRUE \
        -DGEN_LANGUAGE_BINDINGS:BOOL=FALSE \
        -DREPOSITORY_LOC:PATH=/etc/sysrepo \
        -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-       -DENABLE_NACM:BOOL=FALSE
+       -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
 
 define Package/libsysrepo/install
        $(INSTALL_DIR) $(1)/usr/lib