diff options
-rw-r--r-- | meta/recipes-extended/screen/screen_4.0.3.bb | 10 |
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 \ | |||
12 | SECTION = "console/utils" | 12 | SECTION = "console/utils" |
13 | DEPENDS = "ncurses \ | 13 | DEPENDS = "ncurses \ |
14 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 14 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
15 | RDEPENDS_${PN} = "base-files" | ||
16 | |||
15 | PR = "r3" | 17 | PR = "r3" |
16 | 18 | ||
17 | SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \ | 19 | SRC_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 | |||
47 | pkg_postinst_${PN} () { | ||
48 | grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells | ||
49 | } | ||
50 | |||
51 | pkg_postrm_${PN} () { | ||
52 | printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells | ||
53 | } | ||