<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/22/2013 06:32 AM, Khem Raj wrote:<br>
</div>
<blockquote
cite="mid:CAMKF1srMtfiN_dNRhnY8=cmTexkMpYFVHunnCr49ULvqdCdWdA@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<br>
<br>
On Sunday, October 20, 2013, Ming Liu <<a
moz-do-not-send="true" href="mailto:ming.liu@windriver.com">ming.liu@windriver.com</a>>
wrote:<br>
> 1 Add base-files to RDEPENDS.<br>
> 2 Add pkg_postinst and pkg_postrm to add and remove a entry
in<br>
> /etc/shells.<br>
><br>
<br>
will it affect upgradability of the package which is providing
/etc/shells ?<br>
</blockquote>
Yes, you are right, it will. So we need put /etc/shells to CONFFILES
in base-files package.<br>
<br>
//Ming Liu<br>
<br>
<blockquote
cite="mid:CAMKF1srMtfiN_dNRhnY8=cmTexkMpYFVHunnCr49ULvqdCdWdA@mail.gmail.com"
type="cite"><br>
> Signed-off-by: Ming Liu <<a moz-do-not-send="true"
href="mailto:ming.liu@windriver.com">ming.liu@windriver.com</a>><br>
> ---<br>
> meta/recipes-extended/screen/<a moz-do-not-send="true"
href="http://screen_4.0.3.bb">screen_4.0.3.bb</a> | 10
++++++++++<br>
> 1 file changed, 10 insertions(+)<br>
><br>
> diff --git a/meta/recipes-extended/screen/<a
moz-do-not-send="true" href="http://screen_4.0.3.bb">screen_4.0.3.bb</a>
b/meta/recipes-extended/screen/<a moz-do-not-send="true"
href="http://screen_4.0.3.bb">screen_4.0.3.bb</a><br>
> index 1a7eb20..be42fb9 100644<br>
> --- a/meta/recipes-extended/screen/<a moz-do-not-send="true"
href="http://screen_4.0.3.bb">screen_4.0.3.bb</a><br>
> +++ b/meta/recipes-extended/screen/<a moz-do-not-send="true"
href="http://screen_4.0.3.bb">screen_4.0.3.bb</a><br>
> @@ -12,6 +12,8 @@ LIC_FILES_CHKSUM =
"<a class="moz-txt-link-freetext" href="file://COPYING;md5=0774d66808b0f602e94448108f59448b">file://COPYING;md5=0774d66808b0f602e94448108f59448b</a> \<br>
> SECTION = "console/utils"<br>
> DEPENDS = "ncurses \<br>
> ${@base_contains('DISTRO_FEATURES', 'pam',
'libpam', '', d)}"<br>
> +RDEPENDS_${PN} = "base-files"<br>
> +<br>
> PR = "r3"<br>
><br>
> SRC_URI =
"${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \<br>
> @@ -41,3 +43,11 @@ do_install_append () {<br>
> fi<br>
> done<br>
> }<br>
> +<br>
> +pkg_postinst_${PN} () {<br>
> + grep -q "^${bindir}/screen$" $D${sysconfdir}/shells
|| echo ${bindir}/screen >> $D${sysconfdir}/shells<br>
> +}<br>
> +<br>
> +pkg_postrm_${PN} () {<br>
> + printf "$(grep -v "^${bindir}/screen$"
$D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells<br>
> +}<br>
> --<br>
> 1.8.4.1<br>
><br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
> <a moz-do-not-send="true"
href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
>
</blockquote>
<br>
</body>
</html>