blob: 67aa5f1fc6a861f70e6cd55338db3bf67ffc06e0 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "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=3971142989289a8198a544220703c2bf"
13
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014DEPENDS = "ncurses virtual/crypt \
Brad Bishop316dfdd2018-06-25 12:45:53 -040015 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
16RDEPENDS_${PN} = "base-files"
17
18SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz \
19 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'file://screen.pam', '', d)} \
Brad Bishop316dfdd2018-06-25 12:45:53 -040020 file://0002-comm.h-now-depends-on-term.h.patch \
21 file://0001-fix-for-multijob-build.patch \
Brad Bishop08902b02019-08-20 09:16:51 -040022 file://0001-Remove-more-compatibility-stuff.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040023 "
24
Brad Bishop64c979e2019-11-04 13:55:29 -050025SRC_URI[md5sum] = "b8971ebd68d046f2814d1040cb8e6641"
26SRC_URI[sha256sum] = "da775328fa783bd2a787d722014dbd99c6093effc11f337827604c2efc5d20c1"
Brad Bishop316dfdd2018-06-25 12:45:53 -040027
28inherit autotools texinfo
29
30PACKAGECONFIG ??= ""
31PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"
32
Brad Bishopa34c0302019-09-23 22:34:48 -040033EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 --with-sys-screenrc=${sysconfdir}/screenrc \
Brad Bishop316dfdd2018-06-25 12:45:53 -040034 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}"
35
36do_install_append () {
Brad Bishopa34c0302019-09-23 22:34:48 -040037 install -D -m 644 ${S}/etc/etcscreenrc ${D}/${sysconfdir}/screenrc
Brad Bishop316dfdd2018-06-25 12:45:53 -040038 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
39 install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen
40 fi
41}
42
43pkg_postinst_${PN} () {
44 grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells
45}
46
47pkg_postrm_${PN} () {
48 printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
49}