diff mbox series

[meta-arago,master,13/26] shadow-securetty: Wrap the bbappend in a compliant manner

Message ID 20250320181047.18035-14-reatmon@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Wrap bbappends in a compliant manner | expand

Commit Message

Ryan Eatmon March 20, 2025, 6:10 p.m. UTC
Wrap the bbappend in a yocto-check-layer compliant manner so that only
if you are building this recipe under meta-arago-distro with the arago
DISTRO_OVERRIDE would the bbappend apply.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 ...ty_%.bbappend => shadow-securetty-arago.inc} |  0
 .../shadow/shadow-securetty_%.bbappend          | 17 +++--------------
 2 files changed, 3 insertions(+), 14 deletions(-)
 copy meta-arago-distro/recipes-extended/shadow/{shadow-securetty_%.bbappend => shadow-securetty-arago.inc} (100%)
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend b/meta-arago-distro/recipes-extended/shadow/shadow-securetty-arago.inc
similarity index 100%
copy from meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend
copy to meta-arago-distro/recipes-extended/shadow/shadow-securetty-arago.inc
diff --git a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend b/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend
index 62999d2a..eea8f292 100644
--- a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend
+++ b/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend
@@ -1,15 +1,4 @@ 
-PR:append = ".arago0"
+SHADOW_SECURETTY_ARAGO = ""
+SHADOW_SECURETTY_ARAGO:arago = "shadow-securetty-arago.inc"
 
-do_install:append () {
-    # Allow telnet sessions to login as root
-    securetty_file=${D}${sysconfdir}/securetty
-
-    echo '' >> $securetty_file
-    echo '# Allow 5 telnet login' >> $securetty_file
-    echo 'pts/0' >> $securetty_file
-    echo 'pts/1' >> $securetty_file
-    echo 'pts/2' >> $securetty_file
-    echo 'pts/3' >> $securetty_file
-    echo 'pts/4' >> $securetty_file
-
-}
+require ${SHADOW_SECURETTY_ARAGO}