diff options
Diffstat (limited to 'meta/recipes-extended/screen/screen_4.0.3.bb')
-rw-r--r-- | meta/recipes-extended/screen/screen_4.0.3.bb | 52 |
1 files changed, 52 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 new file mode 100644 index 0000000000..c5218ec1db --- /dev/null +++ b/meta/recipes-extended/screen/screen_4.0.3.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | SUMMARY = "Multiplexing terminal manager" | ||
2 | DESCRIPTION = "Screen is a full-screen window manager \ | ||
3 | that multiplexes a physical terminal between several \ | ||
4 | processes, typically interactive shells." | ||
5 | HOMEPAGE = "http://www.gnu.org/software/screen/" | ||
6 | BUGTRACKER = "https://savannah.gnu.org/bugs/?func=additem&group=screen" | ||
7 | |||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=0774d66808b0f602e94448108f59448b \ | ||
10 | file://screen.h;endline=23;md5=9a7ae69a2aafed891bf7c38ddf9f6b7d" | ||
11 | |||
12 | SECTION = "console/utils" | ||
13 | DEPENDS = "ncurses \ | ||
14 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
15 | RDEPENDS_${PN} = "base-files" | ||
16 | |||
17 | PR = "r4" | ||
18 | |||
19 | SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \ | ||
20 | ${DEBIAN_MIRROR}/main/s/screen/screen_4.0.3-14.diff.gz;name=patch \ | ||
21 | file://configure.patch \ | ||
22 | file://fix-parallel-make.patch \ | ||
23 | file://screen-4.0.3-CVE-2009-1214.patch \ | ||
24 | file://screen-4.0.2-CVE-2009-1215.patch \ | ||
25 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | ||
26 | |||
27 | PAM_SRC_URI = "file://screen.pam" | ||
28 | |||
29 | SRC_URI[tarball.md5sum] = "8506fd205028a96c741e4037de6e3c42" | ||
30 | SRC_URI[tarball.sha256sum] = "78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77" | ||
31 | |||
32 | SRC_URI[patch.md5sum] = "5960bdae6782ee9356b7e0e0a1fa7c19" | ||
33 | SRC_URI[patch.sha256sum] = "10acb274b2fb0bb7137a0d66e52fa0f18125bc5198c7a8d5af381b4b30636316" | ||
34 | |||
35 | inherit autotools texinfo | ||
36 | |||
37 | EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 \ | ||
38 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" | ||
39 | |||
40 | do_install_append () { | ||
41 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | ||
42 | install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | pkg_postinst_${PN} () { | ||
47 | grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells | ||
48 | } | ||
49 | |||
50 | pkg_postrm_${PN} () { | ||
51 | printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells | ||
52 | } | ||