[OE-core] [PATCH 2/2] screen: add pkg_postinst to register entry to /etc/shells

Saul Wold sgw at linux.intel.com
Wed Oct 16 18:33:19 UTC 2013


On 10/16/2013 02:58 AM, Ming Liu wrote:
> Signed-off-by: Ming Liu <ming.liu at windriver.com>
> ---
>   meta/recipes-extended/screen/screen_4.0.3.bb | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-extended/screen/screen_4.0.3.bb b/meta/recipes-extended/screen/screen_4.0.3.bb
> index 1a7eb20..456f970 100644
> --- a/meta/recipes-extended/screen/screen_4.0.3.bb
> +++ b/meta/recipes-extended/screen/screen_4.0.3.bb
> @@ -41,3 +41,8 @@ do_install_append () {
>   		fi
>   	done
>   }
> +
> +pkg_postinst_${PN} () {
> +        touch $D${sysconfdir}/shells
> +        grep -q "usr/bin/screen" $D${sysconfdir}/shells || echo /usr/bin/screen >> $D${sysconfdir}/shells
> +}
>
should you be using ${bindir} here instead of usr/bin? since it's 
possible to have different ${prefix}.

Sau!




More information about the Openembedded-core mailing list