From patchwork Thu Mar 13 10:40:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Eatmon X-Patchwork-Id: 58934 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF11EC3DA4A for ; Thu, 13 Mar 2025 10:40:39 +0000 (UTC) Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) by mx.groups.io with SMTP id smtpd.web11.11394.1741862432913206516 for ; Thu, 13 Mar 2025 03:40:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yKljCVOI; spf=pass (domain: ti.com, ip: 198.47.19.246, mailfrom: reatmon@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 52DAeVSZ1799199 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Mar 2025 05:40:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1741862431; bh=wYXJKX5ACxhKJgfebLjS4YhnNrWlLU2deZkZyQ5t2Z4=; h=From:To:Subject:Date:In-Reply-To:References; b=yKljCVOIkAX5cQliEmRZ4umgfzltY0NpkP1bFI2Y3yKTKmicUk85fU6T03b6zAJ9t ywxrS6/t24BA13Y/EtZCCM2fhJTc2OQBnOchSWTEp90OWY76LvgCgSHmoDXnBKhqm3 CKnqi8C5s5GzHSgo2+2jG9BmWcavyqtBB8B9otck= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 52DAeVVh056879 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Mar 2025 05:40:31 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Mar 2025 05:40:31 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 13 Mar 2025 05:40:31 -0500 Received: from uda0214219 (uda0214219.dhcp.ti.com [128.247.81.222]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52DAeVmF083647; Thu, 13 Mar 2025 05:40:31 -0500 Received: from reatmon by uda0214219 with local (Exim 4.90_1) (envelope-from ) id 1tsfzL-0003vg-0T; Thu, 13 Mar 2025 05:40:31 -0500 From: Ryan Eatmon To: Praneeth Bajjuri , Denys Dmytriyenko , Subject: [meta-arago][master][PATCH 13/13] netopeer2-server: move and clean up Date: Thu, 13 Mar 2025 05:40:29 -0500 Message-ID: <20250313104029.14977-14-reatmon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250313104029.14977-1-reatmon@ti.com> References: <20250313104029.14977-1-reatmon@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Mar 2025 10:40:39 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16028 From: Denys Dmytriyenko * Move into recipes-extended * Combine with bbappend * Shorten SUMMARY, split DESCRIPTION * Update DEPENDS - remove systemd and add sysrepo-native * Don't hardcode /usr when passing to CMake * Also pass -DSYSREPO_SETUP=OFF to CMake * Update installing scripts - remove user/group, add permissions Signed-off-by: Denys Dmytriyenko Signed-off-by: Ryan Eatmon --- .../0001-Add-EST-Yang-Models.patch | 0 .../netopeer2-server/netopeer2-server | 0 .../netopeer2-serverd.service | 0 .../sysrepo/netopeer2-server_git.bb | 53 +++++++++++++++++++ .../netopeer2-server/netopeer2-server_git.bb | 47 ---------------- .../netopeer2-server_git.bbappend | 5 -- 6 files changed, 53 insertions(+), 52 deletions(-) rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/0001-Add-EST-Yang-Models.patch (100%) rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/netopeer2-server (100%) rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/netopeer2-serverd.service (100%) create mode 100644 meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb delete mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb delete mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappend diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/0001-Add-EST-Yang-Models.patch b/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/0001-Add-EST-Yang-Models.patch rename to meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/0001-Add-EST-Yang-Models.patch diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server b/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-server rename to meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/netopeer2-server diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-serverd.service b/meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/netopeer2-serverd.service 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 diff --git a/meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb b/meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb new file mode 100644 index 00000000..073aed5e --- /dev/null +++ b/meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb @@ -0,0 +1,53 @@ +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 \ + 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 sysrepo-native" +RDEPENDS:${PN} += "bash curl" + +FILES:${PN} += "${datadir}/yang* ${datadir}/netopeer2/* ${libdir}/sysrepo-plugind/*" + +inherit cmake pkgconfig +inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} + +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" +SYSTEMD_AUTO_ENABLE:${PN} = "disable" + +do_install:append () { + install -d ${D}${sysconfdir}/netopeer2/scripts + 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 + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${UNPACKDIR}/netopeer2-serverd.service ${D}${systemd_system_unitdir} + fi +} diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb b/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb deleted file mode 100644 index 89a05b2b..00000000 --- a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb +++ /dev/null @@ -1,47 +0,0 @@ -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." -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)} \ - " - -PV = "2.2.35+git" -SRCREV = "6d1cb61ef3ce2274a91dc9cbc51318bcd0b54697" - -S = "${WORKDIR}/git" - -DEPENDS = "libyang libnetconf2 sysrepo systemd" -RDEPENDS:${PN} += "bash curl" - -FILES:${PN} += "${datadir}/yang* ${datadir}/netopeer2/* ${libdir}/sysrepo-plugind/*" - -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" - -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE:${PN} = "netopeer2-serverd.service" -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 - if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -m 0755 ${UNPACKDIR}/netopeer2-server ${D}${sysconfdir}/init.d/ - fi - if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then - install -d ${D}${systemd_system_unitdir} - install -m 0644 ${UNPACKDIR}/netopeer2-serverd.service ${D}${systemd_system_unitdir} - fi -} diff --git a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappend b/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappend deleted file mode 100644 index f8a9febe..00000000 --- a/meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappend +++ /dev/null @@ -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/*"