void-packages/srcpkgs/screen/template
Érico Nogueira 56db43e832 screen: fix launch.
When screen isn't suid, it can't create the directory under /run/screens
for sessions to sit in. We went with the approach of creating the
directory at boot time instead of removing --with-socket-dir so screen
would default to using ~/.screen, because it would require users with
currently running screen sessions to launch the screen client with
SCREENDIR set correctly, and an INSTALL.msg to warn users.
2021-07-23 15:01:28 -03:00

30 lines
1,022 B
Bash

# Template file for 'screen'
pkgname=screen
version=4.8.0
revision=4
build_style=gnu-configure
configure_args="--with-sys-screenrc=/etc/screenrc --enable-pam
--enable-colors256 --enable-rxvt_osc --enable-telnet
--enable-use-locale --with-socket-dir=/run/screens --with-pty-group=5"
makedepends="pam-devel ncurses-devel"
conf_files="/etc/screenrc /etc/skel/.screenrc"
short_desc="GNU screen manager with VT100/ANSI terminal emulation"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/s/screen/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
build_options="multiuser"
post_install() {
vinstall etc/etcscreenrc 0644 etc screenrc
vinstall etc/screenrc 0644 etc/skel .screenrc
vinstall ${FILESDIR}/screen 0644 etc/pam.d
if [ "$build_option_multiuser" ]; then
chmod 4755 ${DESTDIR}/usr/bin/screen-${version}
fi
vinstall $FILESDIR/20-screen.sh 644 etc/runit/core-services
}