From 5886d7b6c309f6986333cbf0c8549e1ff18013fa Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 22 Mar 2023 17:11:04 -0500 Subject: Add a recipe for package coreutils-date --- recipes-core/coreutils/coreutils_%.bbappend | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes-core/coreutils/coreutils_%.bbappend diff --git a/recipes-core/coreutils/coreutils_%.bbappend b/recipes-core/coreutils/coreutils_%.bbappend new file mode 100644 index 0000000..aa2132e --- /dev/null +++ b/recipes-core/coreutils/coreutils_%.bbappend @@ -0,0 +1,16 @@ +PACKAGES =+ "${PN}-date" + +FILES_${PN}-date = "/bin/date" + + +python do_package_append() { + pkgdest = d.getVar("PKGDEST",True) + pn = d.getVar("PN",True) + base_bindir = d.getVar("base_bindir",True) + fromf = pkgdest + "/" + pn + "/" + base_bindir + "/date.coreutils" + todir = pkgdest + "/" + pn + "-date/" + base_bindir + tof = todir + "/date" + os.mkdir(todir,mode=0o755) + os.rename(fromf,tof) + # mv ${PKGDEST}/${PN}/${base_bindir}/date.coreutils ${PKGDEST}/${PN}-date/${base_bindir}/date +} -- cgit v1.2.3