similarity index 100%
rename from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/0001-Add-EST-Yang-Models.patch
rename to meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/0001-Add-EST-Yang-Models.patch
similarity index 100%
rename from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server
rename to meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/netopeer2-server
similarity index 100%
rename from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-serverd.service
rename to meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/netopeer2-serverd.service
similarity index 46%
rename from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb
rename to meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb
@@ -1,21 +1,22 @@
-SUMMARY = "Netopeer2 is a set of tools implementing network configuration tools based on the NETCONF Protocol."
-DESCRIPTION = "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."
+SUMMARY = "Implementation of network configuration tools based on NETCONF Protocol"
+DESCRIPTION = "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."
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=41daedff0b24958b2eba4f9086d782e1"
-SRC_URI = "git://github.com/CESNET/Netopeer2.git;protocol=https;branch=master \
- ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \
- 'file://netopeer2-server', '', d)} \
- ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \
- 'file://netopeer2-serverd.service', '', d)} \
- "
+SRC_URI = " \
+ git://github.com/CESNET/Netopeer2.git;protocol=https;branch=master \
+ file://0001-Add-EST-Yang-Models.patch \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'file://netopeer2-server', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://netopeer2-serverd.service', '', d)} \
+"
PV = "2.2.35+git"
SRCREV = "6d1cb61ef3ce2274a91dc9cbc51318bcd0b54697"
S = "${WORKDIR}/git"
-DEPENDS = "libyang libnetconf2 sysrepo systemd"
+DEPENDS = "libyang libnetconf2 sysrepo sysrepo-native"
RDEPENDS:${PN} += "bash curl"
FILES:${PN} += "${datadir}/yang* ${datadir}/netopeer2/* ${libdir}/sysrepo-plugind/*"
@@ -23,8 +24,14 @@ FILES:${PN} += "${datadir}/yang* ${datadir}/netopeer2/* ${libdir}/sysrepo-plugin
inherit cmake pkgconfig
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}
-# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
-EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE:String=Release -DINSTALL_MODULES=OFF -DGENERATE_HOSTKEY=OFF -DMERGE_LISTEN_CONFIG=OFF"
+EXTRA_OECMAKE = " \
+ -DCMAKE_INSTALL_PREFIX=${prefix} \
+ -DCMAKE_BUILD_TYPE:String=Release \
+ -DSYSREPO_SETUP=OFF \
+ -DINSTALL_MODULES=OFF \
+ -DGENERATE_HOSTKEY=OFF \
+ -DMERGE_LISTEN_CONFIG=OFF \
+"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "netopeer2-serverd.service"
@@ -32,12 +39,11 @@ SYSTEMD_AUTO_ENABLE:${PN} = "disable"
do_install:append () {
install -d ${D}${sysconfdir}/netopeer2/scripts
- install -o root -g root ${S}/scripts/setup.sh ${D}${sysconfdir}/netopeer2/scripts/setup.sh
- install -o root -g root ${S}/scripts/merge_hostkey.sh ${D}${sysconfdir}/netopeer2/scripts/merge_hostkey.sh
- install -o root -g root ${S}/scripts/merge_config.sh ${D}${sysconfdir}/netopeer2/scripts/merge_config.sh
- install -d ${D}${sysconfdir}/netopeer2
- install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${S}/scripts/setup.sh ${D}${sysconfdir}/netopeer2/scripts/setup.sh
+ install -m 0755 ${S}/scripts/merge_hostkey.sh ${D}${sysconfdir}/netopeer2/scripts/merge_hostkey.sh
+ install -m 0755 ${S}/scripts/merge_config.sh ${D}${sysconfdir}/netopeer2/scripts/merge_config.sh
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
+ install -d ${D}${sysconfdir}/init.d
install -m 0755 ${UNPACKDIR}/netopeer2-server ${D}${sysconfdir}/init.d/
fi
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
deleted file mode 100644
@@ -1,5 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-
-SRC_URI += "file://0001-Add-EST-Yang-Models.patch"
-
-FILES:${PN} += "/usr/share/yang* /usr/share/netopeer2/* /usr/lib/sysrepo-plugind/*"