2 # Copyright (C) 2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_LICENSE
:=BSD-3-Clause
13 PKG_MAINTAINER
:=Mislav Novakovic
<mislav.novakovic@sartura.hr
>
18 PKG_SOURCE_VERSION
:=cea46db1edb72231c9e009d7e6d6799256676eb8
19 PKG_MIRROR_HASH
:=a686754cef2ef29a511b8ea06d121f0ce562b570d6cea6c6a7562ff47b91d2a2
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.xz
21 PKG_SOURCE_URL
:=https
://github.com
/cesnet
/libnetconf2
/
22 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
)
24 PKG_BUILD_ROOT
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
25 PKG_BUILD_DIR
:=$(PKG_BUILD_ROOT
)
32 include $(INCLUDE_DIR
)/package.mk
33 include $(INCLUDE_DIR
)/cmake.mk
35 define Package
/libnetconf2
38 TITLE
:=NETCONF library
39 URL
:=$(PKG_SOURCE_URL
)
40 DEPENDS
:= +libyang
+libssh
+libopenssl
43 define Package
/libnetconf2
/description
44 libnetconf2 is the NETCONF library in C intended for building NETCONF clients and servers.
46 libnetconf2 provides basic functions to connect NETCONF client and server to each other via
47 SSH
, to send and receive NETCONF messages. NETCONF datastore implementation is not included.
51 -DCMAKE_INSTALL_PREFIX
:PATH
=/usr \
52 -DCMAKE_BUILD_TYPE
:STRING
=Release
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include/libnetconf2
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libnetconf2
/*.h
$(1)/usr
/include/libnetconf2
/
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnetconf2.so
* $(1)/usr
/lib
/
62 $(INSTALL_DIR
) $(1)/usr
/include/libnetconf2
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/include/libnetconf2
/* $(1)/usr
/include/libnetconf2
/
65 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
66 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnetconf2.
pc $(1)/usr
/lib
/pkgconfig
/
69 define Package
/libnetconf2
/install
70 $(INSTALL_DIR
) $(1)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnetconf2.so
* $(1)/usr
/lib
/
73 $(INSTALL_DIR
) $(1)/usr
/share
/libnetconf2
74 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/libnetconf2
/*.yin
$(1)/usr
/share
/libnetconf2
/
77 $(eval
$(call BuildPackage
,libnetconf2
))