blob: 6d307d5abcd82b076026e9696f914b370c496a6e [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Multiplexing terminal manager"
2DESCRIPTION = "Screen is a full-screen window manager \
3that multiplexes a physical terminal between several \
4processes, typically interactive shells."
5HOMEPAGE = "http://www.gnu.org/software/screen/"
6BUGTRACKER = "https://savannah.gnu.org/bugs/?func=additem&group=screen"
7
8SECTION = "console/utils"
9
10LICENSE = "GPLv3+"
11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
12 file://screen.h;endline=26;md5=b8dc717c9a3dba842ae6c44ca0f73f52 \
13 "
14
15DEPENDS = "ncurses virtual/crypt \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
Patrick Williams213cb262021-08-07 19:21:33 -050017RDEPENDS:${PN} = "base-files"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
19SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz \
20 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'file://screen.pam', '', d)} \
21 file://0002-comm.h-now-depends-on-term.h.patch \
22 file://0001-fix-for-multijob-build.patch \
23 file://0001-Remove-more-compatibility-stuff.patch \
Andrew Geissler90fd73c2021-03-05 15:25:55 -060024 file://CVE-2021-26937.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050025 "
26
27SRC_URI[md5sum] = "d276213d3acd10339cd37848b8c4ab1e"
28SRC_URI[sha256sum] = "6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1"
29
30inherit autotools texinfo
31
32PACKAGECONFIG ??= ""
33PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"
34
35EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 --with-sys-screenrc=${sysconfdir}/screenrc \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}"
37
Patrick Williams213cb262021-08-07 19:21:33 -050038do_install:append () {
Andrew Geissler82c905d2020-04-13 13:39:40 -050039 install -D -m 644 ${S}/etc/etcscreenrc ${D}/${sysconfdir}/screenrc
40 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
41 install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen
42 fi
43}
44
Patrick Williams213cb262021-08-07 19:21:33 -050045pkg_postinst:${PN} () {
Andrew Geissler82c905d2020-04-13 13:39:40 -050046 grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells
47}
48
Patrick Williams213cb262021-08-07 19:21:33 -050049pkg_postrm:${PN} () {
Andrew Geissler82c905d2020-04-13 13:39:40 -050050 printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
51}