blob: 2b201f283ff4b314525189ec3f12d61fde0733aa [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2017 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libnetconf2
11PKG_VERSION:=2.0.24
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libnetconf2/tar.gz/v$(PKG_VERSION)?
16PKG_HASH:=78ffa0bd85823abd321a1dbb09c1ead36612f2a12049638a14bb081567f86ade
17
18PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr>
19PKG_LICENSE:=BSD-3-Clause
20PKG_LICENSE_FILES:=LICENSE
21
22CMAKE_INSTALL:=1
23
24include $(INCLUDE_DIR)/package.mk
25include $(INCLUDE_DIR)/cmake.mk
26
27define Package/libnetconf2
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=NETCONF library
31 URL:=https://github.com/CESNET/libnetconf2
32 DEPENDS:= +libyang +libssh +libopenssl +libpthread
33endef
34
35define Package/libnetconf2/description
36 libnetconf2 is the NETCONF library in C intended for building NETCONF clients and servers.
37
38 libnetconf2 provides basic functions to connect NETCONF client and server to each other via
39 SSH, to send and receive NETCONF messages. NETCONF datastore implementation is not included.
40endef
41
42define Package/libnetconf2/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetconf2.so* $(1)/usr/lib/
45endef
46
47$(eval $(call BuildPackage,libnetconf2))