summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorMing Liu <ming.liu@windriver.com>2013-10-22 11:12:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-26 15:59:19 +0100
commite75ea493003d95ea39509eb83fc0ac610d4a2c82 (patch)
treebd0d1ef4f87ee15ba38d71a09b2df5997b7139f5 /meta/recipes-extended
parent312cc0f21afe3a8e7a8100f241a10c24026ef6d8 (diff)
downloadpoky-e75ea493003d95ea39509eb83fc0ac610d4a2c82.tar.gz
screen: dynamically add or remove a entry to/from /etc/shells
1 Add base-files to RDEPENDS. 2 Add pkg_postinst and pkg_postrm to add and remove a entry in /etc/shells. (From OE-Core rev: 95618d6d5c4f8e5f0aec632d35e02ad5a33a1f75) Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/screen/screen_4.0.3.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-extended/screen/screen_4.0.3.bb b/meta/recipes-extended/screen/screen_4.0.3.bb
index 1a7eb2031b..be42fb9eec 100644
--- a/meta/recipes-extended/screen/screen_4.0.3.bb
+++ b/meta/recipes-extended/screen/screen_4.0.3.bb
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0774d66808b0f602e94448108f59448b \
12SECTION = "console/utils" 12SECTION = "console/utils"
13DEPENDS = "ncurses \ 13DEPENDS = "ncurses \
14 ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 14 ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
15RDEPENDS_${PN} = "base-files"
16
15PR = "r3" 17PR = "r3"
16 18
17SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \ 19SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \
@@ -41,3 +43,11 @@ do_install_append () {
41 fi 43 fi
42 done 44 done
43} 45}
46
47pkg_postinst_${PN} () {
48 grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells
49}
50
51pkg_postrm_${PN} () {
52 printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
53}