2020-08-22 14:17:58 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Warning by default OpenWrt does not have a root password which is necessery for NETCONF server.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=netopeer2
|
2021-11-12 03:17:59 +00:00
|
|
|
PKG_VERSION:=2.0.35
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2020-08-22 14:17:58 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/CESNET/Netopeer2/tar.gz/v$(PKG_VERSION)?
|
2021-11-12 03:17:59 +00:00
|
|
|
PKG_HASH:=dedae40419cfddd09c1be7bb536b3a762ec8dcd568c2bfe803c0f6789a5ca834
|
2020-08-22 14:17:58 +00:00
|
|
|
|
2021-03-20 23:09:02 +00:00
|
|
|
PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES=LICENSE
|
2020-08-22 14:17:58 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2020-08-22 14:17:58 +00:00
|
|
|
|
|
|
|
define Package/netopeer2-server
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=NETCONF server
|
|
|
|
URL:=https://github.com/CESNET/Netopeer2
|
|
|
|
DEPENDS:=+libcurl +libpthread +libyang +libnetconf2 +libsysrepo +sysrepocfg +sysrepoctl +sysrepo
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/netopeer2-cli
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Netopeer2 cli tool
|
|
|
|
URL:=https://github.com/CESNET/Netopeer2
|
|
|
|
DEPENDS:=+libpthread +libyang +libnetconf2 +libopenssl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/netopeer2/description
|
|
|
|
Netopeer2 is a set of tools implementing network configuration tools based on the NETCONF
|
|
|
|
Protocol. This is the second generation of the toolset, originally available as the Netopeer
|
|
|
|
project. Netopeer2 is based on the new generation of the NETCONF and YANG libraries -
|
|
|
|
libyang and libnetconf2. The Netopeer server uses sysrepo as a NETCONF datastore implementation.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
|
|
|
-DGENERATE_HOSTKEY:BOOL=OFF \
|
|
|
|
-DINSTALL_MODULES:BOOL=OFF \
|
|
|
|
-DMERGE_LISTEN_CONFIG:BOOL=OFF
|
|
|
|
|
|
|
|
define Package/netopeer2-server/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/netopeer2-server $(1)/usr/bin/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/yang
|
|
|
|
$(INSTALL_DIR) $(1)/etc/netopeer2/modules
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/* $(1)/etc/netopeer2/modules/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
$(INSTALL_BIN) ./files/netopeer2-server-setup.default $(1)/etc/uci-defaults/97_netopeer2-server
|
|
|
|
$(INSTALL_BIN) ./files/netopeer2-server-merge-hostkey.default $(1)/etc/uci-defaults/98_netopeer2-server
|
|
|
|
$(INSTALL_BIN) ./files/netopeer2-server-merge-config.default $(1)/etc/uci-defaults/99_netopeer2-server
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/netopeer2-server.init $(1)/etc/init.d/netopeer2-server
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/netopeer2-cli/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/netopeer2-cli $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,netopeer2-server))
|
|
|
|
$(eval $(call BuildPackage,netopeer2-cli))
|