%define __spec_install_post %{nil} Summary: A screen manager that supports multiple logins on one terminal. Name: screen Version: 3.9.9 Release: 2 License: GPL Group: Applications/System Source0: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz Patch0: screen-3.7.6-compat21.patch Patch1: screen-3.9.8-osdef.patch Patch2: screen-ia64.patch Patch3: screen-3.9.9-deletehack.patch Patch4: screen-3.9.8-select.patch # Doesnt work, but needs to. Patch5: screen-3.9.9-pam.patch Patch6: screen-3.9.9-doc.patch Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-root %description The screen utility allows you to have multiple logins on just one terminal. Screen is useful for users who telnet into a machine or are connected via a dumb terminal, but want to use more than just one login. Install the screen package if you need a screen manager that can support multiple logins on one terminal. %prep %setup -q %patch0 -p1 -b .compat21 %patch1 -p0 -b .osdef %patch2 -p1 -b .ia64 %patch3 -p1 -b .deletehack %patch4 -p1 -b .select #This thrashes the screen, but would be nice if it worked #%patch5 -p1 -b .pam %patch6 -p1 -b .doc %build autoconf %configure sed -e 's/.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/; s/.*BUILTIN_TELNET.*/#define BUILTIN_TELNET 1/; s/ETCSCREENRC \/usr\/etc\/screenrc/ETCSCREENRC \/etc\/screenrc/;' < config.h > config.tmp.h mv config.tmp.h config.h sed -e 's/\/usr\/local\/etc/\/etc/;g' < etc/etcscreenrc > etc/etcscreenrc.tmp mv etc/etcscreenrc.tmp etc/etcscreenrc find doc -type f | ( while read line; do sed -e 's/\(\/usr\)\?\/local\/etc/\/etc/;' < $line > $line.tmp; mv $line.tmp $line done; ) rm doc/screen.info* #CFLAGS="-O1 -ggdb -DDEBUG -D_GNU_SOURCE" CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" make CFLAGS="$CFLAGS" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/skel %makeinstall ( cd $RPM_BUILD_ROOT gzip -9nf .%{_infodir}/screen.info* strip .%{_bindir}/screen rm -f .%{_bindir}/screen.old .%{_bindir}/screen mv .%{_bindir}/screen-%{version} .%{_bindir}/screen ) install -c -m 0444 etc/etcscreenrc $RPM_BUILD_ROOT/etc/screenrc install -c -m 0644 etc/screenrc $RPM_BUILD_ROOT/etc/skel/.screenrc pushd %{buildroot}%{_mandir} gzip -9 */*.1 popd %clean rm -rf $RPM_BUILD_ROOT %post /sbin/install-info %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer." if [ -d /tmp/screens ]; then # we're not setuid root anymore chmod 777 /tmp/screens fi %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer." fi %files %defattr(-,root,root) %doc NEWS README doc/FAQ doc/README.DOTSCREEN %attr(755,root,root) %{_bindir}/screen %{_mandir}/man1/screen.* %{_infodir}/screen.info* %config /etc/screenrc %config /etc/skel/.screenrc %changelog * Tue Jul 10 2001 Tim Powers - gzip manpage * Mon Jun 25 2001 Crutcher Dunnavant - itterate to 3.9.9 - fixed FAQ - added electro@mrduck.net's PAM patch, crazy :) * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Tue Feb 13 2001 Florian La Roche - fix configure.in to use correct code to check for select() * Wed Jan 10 2001 Tim Waugh - Rebuild, which will hopefully fix bug #22537 * Sun Oct 01 2000 Florian La Roche - update to 3.9.8 - change the .jbj patch and add some more "user" -> "auser" cases * Thu Aug 15 2000 Crutcher Dunnavant - Patched the documentation to change the 'C-a C-\' to 'C-a \', - which is what is the real behaviour. this fixes bug #16103 * Thu Aug 3 2000 Crutcher Dunnavant - Fixed my fix, so that the hack goes in the /global/ file :) * Thu Aug 3 2000 Crutcher Dunnavant - Stuck an entry into the default screenrc file that forces - '^?' (backspace) to send '^H'. - Its an ugly fix for a termcap inheritance problem, - but it works, if anyone REALLY needs '^?' they can change it, - and I think we anger less people with this than the way it - currently behaves. (Read: vi and emacs work now) - POST NOTE (Aug 15): emacs is NOT happy with ^H, BUT screen thinks - that this is what backspace is supposed to do, so we don't change it. * Thu Aug 3 2000 Crutcher Dunnavant - Fixed some conflicting descriptions in the documentation * Thu Aug 3 2000 Crutcher Dunnavant - got a patch from rzm@icm.edu.pl to fix bug #10353 - which caused screen to crash when copying to a file buffer * Wed Jul 12 2000 Prospector - automatic rebuild * Sat Jun 10 2000 Bill Nottingham - rebuild, FHS tweaks * Sat May 6 2000 Bill Nottingham - fix build for ia64 * Mon Apr 3 2000 Bernhard Rosenkränzer - rebuild with new ncurses * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Tue Feb 15 2000 Bernhard Rosenkränzer - Fix MD5 password support (Bug #9463) * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Fri Dec 10 1999 Bill Nottingham - update to 3.9.5 * Wed Oct 20 1999 Bill Nottingham - you know, we weren't just patching in Unix98 pty support for fun. * Wed Aug 18 1999 Bill Nottingham - put screendir in ~ * Wed Aug 18 1999 Jeff Johnson - update to 3.9.4. * Wed Jun 16 1999 Bill Nottingham - force tty permissions/group * Wed Jun 5 1999 Dale Lovelace - permissions on /etc/skel/.screenrc to 644 * Mon Apr 26 1999 Bill Nottingham - take out warning of directory permissions so root can still use screen * Wed Apr 07 1999 Bill Nottingham - take out warning of directory ownership so root can still use screen * Wed Apr 07 1999 Erik Troan - patched in utempter support, turned off setuid bit * Fri Mar 26 1999 Erik Troan - fixed unix98 pty support * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Thu Mar 11 1999 Bill Nottingham - add patch for Unix98 pty support * Mon Dec 28 1998 Jeff Johnson - update to 3.7.6. * Sun Aug 16 1998 Jeff Johnson - build root * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Wed Oct 21 1997 Cristian Gafton - upgraded to 3.7.4 * Wed Oct 08 1997 Erik Troan - removed glibc 1.99 specific patch * Tue Sep 23 1997 Erik Troan - added install-info support * Mon Jul 21 1997 Erik Troan - built against glibc