<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 &lt;<a
        moz-do-not-send="true" href="mailto:ming.liu@windriver.com">ming.liu@windriver.com</a>&gt;
      wrote:<br>
      &gt; 1 Add base-files to RDEPENDS.<br>
      &gt; 2 Add pkg_postinst and pkg_postrm to add and remove a entry
      in<br>
      &gt; /etc/shells.<br>
      &gt;<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>
      &gt; Signed-off-by: Ming Liu &lt;<a moz-do-not-send="true"
        href="mailto:ming.liu@windriver.com">ming.liu@windriver.com</a>&gt;<br>
      &gt; ---<br>
      &gt;  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>
      &gt;  1 file changed, 10 insertions(+)<br>
      &gt;<br>
      &gt; 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>
      &gt; index 1a7eb20..be42fb9 100644<br>
      &gt; --- 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>
      &gt; +++ 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>
      &gt; @@ -12,6 +12,8 @@ LIC_FILES_CHKSUM =
      "<a class="moz-txt-link-freetext" href="file://COPYING;md5=0774d66808b0f602e94448108f59448b">file://COPYING;md5=0774d66808b0f602e94448108f59448b</a> \<br>
      &gt;  SECTION = "console/utils"<br>
      &gt;  DEPENDS = "ncurses \<br>
      &gt;            ${@base_contains('DISTRO_FEATURES', 'pam',
      'libpam', '', d)}"<br>
      &gt; +RDEPENDS_${PN} = "base-files"<br>
      &gt; +<br>
      &gt;  PR = "r3"<br>
      &gt;<br>
      &gt;  SRC_URI =
      "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \<br>
      &gt; @@ -41,3 +43,11 @@ do_install_append () {<br>
      &gt;                 fi<br>
      &gt;         done<br>
      &gt;  }<br>
      &gt; +<br>
      &gt; +pkg_postinst_${PN} () {<br>
      &gt; +       grep -q "^${bindir}/screen$" $D${sysconfdir}/shells
      || echo ${bindir}/screen &gt;&gt; $D${sysconfdir}/shells<br>
      &gt; +}<br>
      &gt; +<br>
      &gt; +pkg_postrm_${PN} () {<br>
      &gt; +       printf "$(grep -v "^${bindir}/screen$"
      $D${sysconfdir}/shells)\n" &gt; $D${sysconfdir}/shells<br>
      &gt; +}<br>
      &gt; --<br>
      &gt; 1.8.4.1<br>
      &gt;<br>
      &gt; _______________________________________________<br>
      &gt; Openembedded-core mailing list<br>
      &gt; <a moz-do-not-send="true"
        href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
      &gt; <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>
      &gt;
    </blockquote>
    <br>
  </body>
</html>