From 873665024ebfaa761ee49b508a79db7178aeb778 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 4 Jun 2022 15:08:04 +0100 Subject: added gnupg --- skip/screen/screen.xibuild | 43 +++++++++++++++++++++++++++++++++++++++++++ skip/screen/utmpx.patch | 21 +++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 skip/screen/screen.xibuild create mode 100644 skip/screen/utmpx.patch (limited to 'skip/screen') diff --git a/skip/screen/screen.xibuild b/skip/screen/screen.xibuild new file mode 100644 index 0000000..e5e08c1 --- /dev/null +++ b/skip/screen/screen.xibuild @@ -0,0 +1,43 @@ +#!/bin/sh + +NAME="screen" +DESC="Window manager that multiplexes a physical terminal" + +MAKEDEPS="autoconf automake utmps ncurses ncurses libutempter" + +PKG_VER=4.9.0 +SOURCE="https://ftp.gnu.org/gnu/screen/screen-$PKG_VER.tar.gz" + +ADDITIONAL=" +utmpx.patch +" + +prepare() { + ./autogen.sh +} + +build() { + CFLAGS="$CFLAGS -DNONETHACK -DGETUTENT -I/usr/include/utmps" \ + LIBS="-lutmps -lskarnet" ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-sys-screenrc=/etc/screenrc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-colors256 \ + --enable-telnet \ + --enable-rxvt_osc + make +} + +package() { + make -j1 DESTDIR="$PKG_DEST" install + + # remove suid root + find "$PKG_DEST" -type f -perm -u+s \ + | xargs chmod -s + + install -Dm644 etc/etcscreenrc "$PKG_DEST"/etc/screenrc + install -Dm644 etc/screenrc "$PKG_DEST"/etc/skel/.screenrc +} + diff --git a/skip/screen/utmpx.patch b/skip/screen/utmpx.patch new file mode 100644 index 0000000..c8c6f44 --- /dev/null +++ b/skip/screen/utmpx.patch @@ -0,0 +1,21 @@ +--- screen-4.6.2/os.h.old 2018-09-27 23:11:11.655480028 -0700 ++++ screen-4.6.2/os.h 2018-09-27 23:11:34.745808665 -0700 +@@ -250,17 +250,13 @@ + #endif + + #if defined(UTMPOK) || defined(BUGGYGETLOGIN) +-# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux) ++# if defined(linux) + # include + # define UTMPFILE UTMPX_FILE + # define utmp utmpx +-# define getutent getutxent + # define getutid getutxid + # define getutline getutxline + # define pututline pututxline +-# define setutent setutxent +-# define endutent endutxent +-# define ut_time ut_xtime + # else /* SVR4 */ + # include + # endif /* SVR4 */ -- cgit v1.2.1