screen: fix socket dir and utmp

This commit is contained in:
Gonzalo Tornaría 2024-11-17 18:43:59 -03:00 committed by Leah Neukirchen
parent ff78d269be
commit 0f6da077a4
2 changed files with 13 additions and 9 deletions

View File

@ -0,0 +1,10 @@
--- a/utmp.c
+++ b/utmp.c
@@ -30,6 +30,7 @@
#include "utmp.h"
+#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -1,12 +1,9 @@
# Template file for 'screen' # Template file for 'screen'
pkgname=screen pkgname=screen
version=5.0.0 version=5.0.0
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--with-sys-screenrc=/etc/screenrc --enable-pam configure_args="--enable-telnet --enable-utmp --enable-socket-dir=/run/screens"
--enable-colors256 --enable-rxvt_osc --enable-telnet
--enable-use-locale --with-socket-dir=/run/screens --with-pty-group=5"
hostmakedepends="automake"
makedepends="libutempter-devel ncurses-devel pam-devel" makedepends="libutempter-devel ncurses-devel pam-devel"
conf_files="/etc/screenrc /etc/skel/.screenrc" conf_files="/etc/screenrc /etc/skel/.screenrc"
short_desc="GNU screen manager with VT100/ANSI terminal emulation" short_desc="GNU screen manager with VT100/ANSI terminal emulation"
@ -15,6 +12,7 @@ license="GPL-3.0-or-later"
homepage="http://www.gnu.org/s/screen/" homepage="http://www.gnu.org/s/screen/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz" distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=f04a39d00a0e5c7c86a55338808903082ad5df4d73df1a2fd3425976aed94971 checksum=f04a39d00a0e5c7c86a55338808903082ad5df4d73df1a2fd3425976aed94971
make_check=no # check is broken in 5.0.0
build_options="multiuser" build_options="multiuser"
@ -22,10 +20,6 @@ if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel" makedepends+=" libxcrypt-devel"
fi fi
pre_configure() {
./autogen.sh
}
post_install() { post_install() {
vinstall etc/etcscreenrc 0644 etc screenrc vinstall etc/etcscreenrc 0644 etc screenrc
vinstall etc/screenrc 0644 etc/skel .screenrc vinstall etc/screenrc 0644 etc/skel .screenrc