PKGNAME=screen
PKGSEC=utils
PKGDEP="ncurses linux-pam libutempter"
PKGDES="Full-screen window manager that multiplexes a physical terminal"

# Note: PTY group ID 5: tty.
#
# Note: --with-pty-rofs=no, no is upstream default.
#
# From configure.ac:
#   AH_TEMPLATE([PTY_ROFS], [pty devices are on read only filesystem])
#
# Our devtmpfs is mounted read-write so I'm assuming that PTY_ROFS does not
# suit our needs.
AUTOTOOLS_AFTER="--enable-pam \
                 --enable-utmp \
                 --enable-telnet \
                 --enable-socket-dir \
                 --with-system_screenrc=/etc/screenrc \
                 --with-pty-mode=0622 \
                 --with-pty-group=5 \
                 --with-pty-rofs=no"

# FIXME: fatal error: kmapdef.h: No such file or directory
ABSHADOW=0

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
