From 92a9d59fccdfb6587fbd12f686899a8ace5e1d2f Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 9 Feb 2011 18:13:50 -0600 Subject: recipes: pre/post actions A number of the recipes did not properly label their pre and post actions, causing the actions to occur in all split packages. This was corrected by defaulting to _${PN} in most cases. Signed-off-by: Mark Hatle --- meta/recipes-extended/bash/bash.inc | 2 +- meta/recipes-extended/bash/bash_3.2.48.bb | 2 +- meta/recipes-extended/sudo/sudo.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/recipes-extended') diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index a87b87ff4b..ecbd75dadd 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc @@ -27,7 +27,7 @@ do_configure () { oe_runconf } -pkg_postinst () { +pkg_postinst_${PN} () { touch $D${sysconfdir}/shells grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells diff --git a/meta/recipes-extended/bash/bash_3.2.48.bb b/meta/recipes-extended/bash/bash_3.2.48.bb index e5a3e3643d..0912ad6aa8 100644 --- a/meta/recipes-extended/bash/bash_3.2.48.bb +++ b/meta/recipes-extended/bash/bash_3.2.48.bb @@ -28,7 +28,7 @@ do_configure () { oe_runconf } -pkg_postinst () { +pkg_postinst_${PN} () { touch $D${sysconfdir}/shells grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc index 1407bf10c5..6a04a9c0b0 100644 --- a/meta/recipes-extended/sudo/sudo.inc +++ b/meta/recipes-extended/sudo/sudo.inc @@ -23,7 +23,7 @@ do_configure_prepend () { fi } -pkg_postinst() { +pkg_postinst_${PN} () { if [ "x$D" != "x" ]; then exit 1 fi -- cgit 1.2.3-korg