summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/screen
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2011-07-20 10:16:47 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 12:02:41 +0100
commit27b2d3dc1cd660a254d7007d5e379a1b5f68b9ec (patch)
treeba43eceaed85f8c591cb5f5aab3ec69eb038882b /meta/recipes-extended/screen
parent03bf55e6a4661877ba65617e5bbe904d37b97612 (diff)
downloadpoky-27b2d3dc1cd660a254d7007d5e379a1b5f68b9ec.tar.gz
screen: add pam support
According to DISTRO_FEATURES then add screen pam support or not. Press "Ctrl+a x" will lock the screen terminal, then unlock it will use pam. Add pam related configure file sceen.pam from Fedora. (From OE-Core rev: 7c08305f8008ab322d19d0a0852a851fd44ae510) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/screen')
-rw-r--r--meta/recipes-extended/screen/screen-4.0.3/screen.pam2
-rw-r--r--meta/recipes-extended/screen/screen_4.0.3.bb23
2 files changed, 20 insertions, 5 deletions
diff --git a/meta/recipes-extended/screen/screen-4.0.3/screen.pam b/meta/recipes-extended/screen/screen-4.0.3/screen.pam
new file mode 100644
index 0000000000..ff657fa07c
--- /dev/null
+++ b/meta/recipes-extended/screen/screen-4.0.3/screen.pam
@@ -0,0 +1,2 @@
1#%PAM-1.0
2auth include common-auth
diff --git a/meta/recipes-extended/screen/screen_4.0.3.bb b/meta/recipes-extended/screen/screen_4.0.3.bb
index dac28936bc..27f39ddfce 100644
--- a/meta/recipes-extended/screen/screen_4.0.3.bb
+++ b/meta/recipes-extended/screen/screen_4.0.3.bb
@@ -10,12 +10,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0774d66808b0f602e94448108f59448b \
10 file://screen.h;endline=23;md5=9a7ae69a2aafed891bf7c38ddf9f6b7d" 10 file://screen.h;endline=23;md5=9a7ae69a2aafed891bf7c38ddf9f6b7d"
11 11
12SECTION = "console/utils" 12SECTION = "console/utils"
13DEPENDS = "ncurses" 13DEPENDS = "ncurses \
14PR = "r0" 14 ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
15PR = "r1"
15 16
16SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \ 17SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \
17 ${DEBIAN_MIRROR}/main/s/screen/screen_4.0.3-11+lenny1.diff.gz;name=patch \ 18 ${DEBIAN_MIRROR}/main/s/screen/screen_4.0.3-11+lenny1.diff.gz;name=patch \
18 file://configure.patch" 19 file://configure.patch \
20 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
21
22PAM_SRC_URI = "file://screen.pam"
19 23
20SRC_URI[tarball.md5sum] = "8506fd205028a96c741e4037de6e3c42" 24SRC_URI[tarball.md5sum] = "8506fd205028a96c741e4037de6e3c42"
21SRC_URI[tarball.sha256sum] = "78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77" 25SRC_URI[tarball.sha256sum] = "78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77"
@@ -25,5 +29,14 @@ SRC_URI[patch.sha256sum] = "19130d097e9ed897c84a2c640634dd36ee3233c17b0bf5d18549
25 29
26inherit autotools 30inherit autotools
27 31
28EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5" 32EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 \
29 33 ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}"
34
35do_install_append () {
36 for feature in ${DISTRO_FEATURES}; do
37 if [ "$feature" = "pam" ]; then
38 install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen
39 break
40 fi
41 done
42}