| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=libnetconf2 |
| 11 | PKG_VERSION:=2.0.24 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libnetconf2/tar.gz/v$(PKG_VERSION)? |
| 16 | PKG_HASH:=78ffa0bd85823abd321a1dbb09c1ead36612f2a12049638a14bb081567f86ade |
| 17 | |
| 18 | PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr> |
| 19 | PKG_LICENSE:=BSD-3-Clause |
| 20 | PKG_LICENSE_FILES:=LICENSE |
| 21 | |
| 22 | CMAKE_INSTALL:=1 |
| 23 | |
| 24 | include $(INCLUDE_DIR)/package.mk |
| 25 | include $(INCLUDE_DIR)/cmake.mk |
| 26 | |
| 27 | define 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 |
| 33 | endef |
| 34 | |
| 35 | define 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. |
| 40 | endef |
| 41 | |
| 42 | define Package/libnetconf2/install |
| 43 | $(INSTALL_DIR) $(1)/usr/lib |
| 44 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetconf2.so* $(1)/usr/lib/ |
| 45 | endef |
| 46 | |
| 47 | $(eval $(call BuildPackage,libnetconf2)) |