ifupdown-ng: Add recipe
PATCH 1/1 ifupdown-ng: Add recipe
ifupdown-ng is a network device manager that is largely compatible with Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.
Signed-off-by Alex Kiernan <[email protected]>
Signed-off-by Alex Kiernan <[email protected]>
--- ...w-sbin-to-be-overridden-for-usrmerge.patch | 42 +++++++++++++++++ .../ifupdown-ng/ifupdown-ng_0.11.3.bb | 47 +++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 meta-networking/recipes-support/ifupdown-ng/ifupdown-ng/0001-build-Allow-sbin-to-be-overridden-for-usrmerge.patch create mode 100644 meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb
meta-networking/recipes-support/ifupdown-ng/ifupdown-ng/0001-build-Allow-sbin-to-be-overridden-for-usrmerge.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 8df83410c0db4a9688c76529d9396859a8cf25a7 Mon Sep 17 00:00:00 2001 +From: Alex Kiernan <[email protected]> +Date: Thu, 30 Dec 2021 17:35:22 +0000 +Subject: [PATCH] build: Allow /sbin to be overridden for usrmerge + +To support usrmerge installation in Yocto, make SBINDIR a variable which +can be overridden. + +Upstream-Status: Submitted [https://github.com/ifupdown-ng/ifupdown-ng/pull/164] +Signed-off-by: Alex Kiernan <[email protected]> +Signed-off-by: Alex Kiernan <[email protected]> +--- + Makefile | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 9fb6199a5e80..527fbd7a911f 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,6 +7,7 @@ PACKAGE_NAME := ifupdown-ng + PACKAGE_VERSION := 0.11.3 + PACKAGE_BUGREPORT := https://github.com/ifupdown-ng/ifupdown-ng/issues/new + ++SBINDIR := /sbin + + INTERFACES_FILE := /etc/network/interfaces + STATE_FILE := /run/ifstate +@@ -146,9 +147,9 @@ check: ${LIBIFUPDOWN_LIB} ${CMDS} + kyua test || (kyua report --verbose && exit 1) + + install: all +- install -D -m755 ${MULTICALL} ${DESTDIR}/sbin/${MULTICALL} ++ install -D -m755 ${MULTICALL} ${DESTDIR}${SBINDIR}/${MULTICALL} + for i in ${CMDS}; do \ +- ln -s /sbin/${MULTICALL} ${DESTDIR}/sbin/$$i; \ ++ ln -s ${SBINDIR}/${MULTICALL} ${DESTDIR}${SBINDIR}/$$i; \ + done + for i in ${EXECUTOR_SCRIPTS}; do \ + install -D -m755 executor-scripts/${LAYOUT}/$$i ${DESTDIR}${EXECUTOR_PATH}/$$i; \ +-- +2.34.1 +
meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.34.1