You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnetconf2
  9. PKG_VERSION:=2.0.24
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libnetconf2/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=78ffa0bd85823abd321a1dbb09c1ead36612f2a12049638a14bb081567f86ade
  14. PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. CMAKE_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libnetconf2
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=NETCONF library
  24. URL:=https://github.com/CESNET/libnetconf2
  25. DEPENDS:= +libyang +libssh +libopenssl +libpthread
  26. endef
  27. define Package/libnetconf2/description
  28. libnetconf2 is the NETCONF library in C intended for building NETCONF clients and servers.
  29. libnetconf2 provides basic functions to connect NETCONF client and server to each other via
  30. SSH, to send and receive NETCONF messages. NETCONF datastore implementation is not included.
  31. endef
  32. define Package/libnetconf2/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetconf2.so* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,libnetconf2))