|
|
@ -1,7 +1,7 @@
|
|
|
|
Summary: A screen manager that supports multiple logins on one terminal
|
|
|
|
Summary: A screen manager that supports multiple logins on one terminal
|
|
|
|
Name: screen
|
|
|
|
Name: screen
|
|
|
|
Version: 4.0.3
|
|
|
|
Version: 4.0.3
|
|
|
|
Release: 9%{?dist}
|
|
|
|
Release: 10%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Applications/System
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://www.gnu.org/software/screen
|
|
|
|
URL: http://www.gnu.org/software/screen
|
|
|
@ -9,55 +9,21 @@ Requires(pre): /usr/sbin/groupadd
|
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: gawk ncurses-devel texinfo pam-devel libtool
|
|
|
|
BuildRequires: ncurses-devel pam-devel libutempter-devel autoconf texinfo
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# The one and only true source
|
|
|
|
# The one and only true source
|
|
|
|
#
|
|
|
|
|
|
|
|
Source0: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz
|
|
|
|
Source0: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# Except for the PAM configuration, that is.
|
|
|
|
# Except for the PAM configuration, that is.
|
|
|
|
Source1: screen.pam
|
|
|
|
Source1: screen.pam
|
|
|
|
|
|
|
|
|
|
|
|
# Small tweak for ia64
|
|
|
|
Patch1: screen-4.0.3-libs.patch
|
|
|
|
#
|
|
|
|
|
|
|
|
Patch1: screen-3.9.13-ia64.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Some tweaks of the default screenrc
|
|
|
|
# Some tweaks of the default screenrc
|
|
|
|
# really end users should visit /etc/screenrc and tweak
|
|
|
|
|
|
|
|
# it to suit their personal preferances
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
Patch2: screen-4.0.2-screenrc.patch
|
|
|
|
Patch2: screen-4.0.2-screenrc.patch
|
|
|
|
#Patch3: screen-4.0.1-etcscreenrc.patch
|
|
|
|
Patch3: screen-4.0.3-ptygroup.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Due to the way the build system creates rpms in a buildroot
|
|
|
|
|
|
|
|
# we need this tweak for utf8encodings
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# This is not needed anymore
|
|
|
|
|
|
|
|
#Patch4: screen-3.9.11-utf8-install.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We need to allow rpm to strip the binary and we don't have a
|
|
|
|
|
|
|
|
# libelf dependancy
|
|
|
|
|
|
|
|
Patch5: screen-3.9.11-no-stripping-or-elf.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The maintainers really didn't like this patch, and I couldn't
|
|
|
|
|
|
|
|
# reproduce the "access denied" problem on 4.0.1, so this
|
|
|
|
|
|
|
|
# patch is not applied for now. We'll include it in the srpm
|
|
|
|
|
|
|
|
# in case someone else wants it.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
#Patch6: screen-3.9.15-home-screendir.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fixes potential buffer overflow when > 2^31 semicolons are passed.
|
|
|
|
# Fixes potential buffer overflow when > 2^31 semicolons are passed.
|
|
|
|
#
|
|
|
|
|
|
|
|
Patch7: screen-4.0.1-args.patch
|
|
|
|
Patch7: screen-4.0.1-args.patch
|
|
|
|
#Patch8: screen-4.0.2-logname.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# reassign lockscreen to ^aX so its harder to hit by accident
|
|
|
|
|
|
|
|
#Patch9: screen-4.0.2-lock-shortcut.patch
|
|
|
|
|
|
|
|
Patch10: screen-4.0.2-lib64.patch
|
|
|
|
|
|
|
|
Patch11: screen-4.0.2-maxstr.patch
|
|
|
|
Patch11: screen-4.0.2-maxstr.patch
|
|
|
|
Patch12: screen-4.0.3-ipv6.patch
|
|
|
|
Patch12: screen-4.0.3-ipv6.patch
|
|
|
|
Patch13: screen-4.0.3-perm.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The screen utility allows you to have multiple logins on just one
|
|
|
|
The screen utility allows you to have multiple logins on just one
|
|
|
@ -70,32 +36,15 @@ support multiple logins on one terminal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1 -b .ia64
|
|
|
|
%patch1 -p1 -b .libs
|
|
|
|
%patch2 -p1 -b .screenrc
|
|
|
|
%patch2 -p1 -b .screenrc
|
|
|
|
#%patch3 -p1 -b .etcscreenrc
|
|
|
|
%patch3 -p1 -b .ptygroup
|
|
|
|
#%patch4 -p1 -b .utf8-install
|
|
|
|
|
|
|
|
%patch5 -p1 -b .no-stripping-or-elf
|
|
|
|
|
|
|
|
#%patch8 -p1 -b .logname
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Uncomment if you want screen to first try to use $HOME/.screens
|
|
|
|
|
|
|
|
# and subsequently try to use /tmp/S-<user>
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
#%patch6 -p1 -b .screendir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
%patch7 -p0 -b .args
|
|
|
|
%patch7 -p0 -b .args
|
|
|
|
#%patch9 -p1 -b .lock-shortcut
|
|
|
|
|
|
|
|
%patch10 -p1 -b .lib64
|
|
|
|
|
|
|
|
%patch11 -p1 -b .maxstr
|
|
|
|
%patch11 -p1 -b .maxstr
|
|
|
|
%patch12 -p1 -b .ipv6
|
|
|
|
%patch12 -p1 -b .ipv6
|
|
|
|
%patch13 -p1 -b .perm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
libtoolize --copy --force
|
|
|
|
|
|
|
|
autoconf
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
%configure \
|
|
|
@ -104,64 +53,45 @@ autoconf
|
|
|
|
--enable-rxvt_osc \
|
|
|
|
--enable-rxvt_osc \
|
|
|
|
--enable-locale \
|
|
|
|
--enable-locale \
|
|
|
|
--enable-telnet \
|
|
|
|
--enable-telnet \
|
|
|
|
--with-sys-screenrc="/etc/screenrc" \
|
|
|
|
--with-pty-mode=0620 \
|
|
|
|
--with-socket-dir="/var/run/screen"
|
|
|
|
--without-pty-group \
|
|
|
|
|
|
|
|
--with-sys-screenrc="%{_sysconfdir}/screenrc" \
|
|
|
|
|
|
|
|
--with-socket-dir="%{_localstatedir}/run/screen"
|
|
|
|
|
|
|
|
|
|
|
|
# We would like to have braille support.
|
|
|
|
# We would like to have braille support.
|
|
|
|
#
|
|
|
|
sed -i -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' config.h
|
|
|
|
sed -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' \
|
|
|
|
|
|
|
|
< config.h > config.tmp.h
|
|
|
|
|
|
|
|
mv config.tmp.h config.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We really don't want to be using /usr/local
|
|
|
|
|
|
|
|
# because we wish to be FSB complient
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
#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/g;' < $line > $line.tmp;
|
|
|
|
|
|
|
|
mv $line.tmp $line
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed -i -e 's/\(\/usr\)\?\/local\/etc/\/etc/g;' doc/screen.{1,texinfo}
|
|
|
|
rm doc/screen.info*
|
|
|
|
rm doc/screen.info*
|
|
|
|
make clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" make $BUILD_MAKE_FLAGS
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
mv -f $RPM_BUILD_ROOT%{_bindir}/screen{-%{version},}
|
|
|
|
|
|
|
|
|
|
|
|
( cd $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
rm -f .%{_bindir}/screen.old .%{_bindir}/screen
|
|
|
|
install -m 0644 etc/etcscreenrc $RPM_BUILD_ROOT%{_sysconfdir}/screenrc
|
|
|
|
mv .%{_bindir}/screen-%{version} .%{_bindir}/screen
|
|
|
|
cat etc/screenrc >> $RPM_BUILD_ROOT%{_sysconfdir}/screenrc
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -c -m 0644 etc/etcscreenrc $RPM_BUILD_ROOT/etc/screenrc
|
|
|
|
|
|
|
|
cat etc/screenrc >> $RPM_BUILD_ROOT/etc/screenrc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Better not forget to copy the pam file around
|
|
|
|
# Better not forget to copy the pam file around
|
|
|
|
#
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
|
|
|
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen
|
|
|
|
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/screen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create the socket dir
|
|
|
|
# Create the socket dir
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/run/screen
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/screen
|
|
|
|
|
|
|
|
|
|
|
|
# Remove files from the buildroot which we don't want packaged
|
|
|
|
# Remove files from the buildroot which we don't want packaged
|
|
|
|
#
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd -g 84 -r -f screen
|
|
|
|
/usr/sbin/groupadd -g 84 -r -f screen
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
/sbin/install-info %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer." ||:
|
|
|
|
/sbin/install-info %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer." ||:
|
|
|
@ -171,20 +101,26 @@ if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer." ||:
|
|
|
|
/sbin/install-info --delete %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer." ||:
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc NEWS README doc/FAQ doc/README.DOTSCREEN COPYING
|
|
|
|
%doc NEWS README doc/FAQ doc/README.DOTSCREEN COPYING
|
|
|
|
# group screen is needed for writing into /var/run/screen with "low" permission.
|
|
|
|
|
|
|
|
%attr(2755,root,screen) %{_bindir}/screen
|
|
|
|
%attr(2755,root,screen) %{_bindir}/screen
|
|
|
|
%{_mandir}/man1/screen.*
|
|
|
|
%{_mandir}/man1/screen.*
|
|
|
|
%{_infodir}/screen.info*
|
|
|
|
%{_infodir}/screen.info*
|
|
|
|
%{_datadir}/screen
|
|
|
|
%{_datadir}/screen
|
|
|
|
%attr(775,root,screen) %{_localstatedir}/run/screen
|
|
|
|
%attr(775,root,screen) %{_localstatedir}/run/screen
|
|
|
|
%config(noreplace) /etc/screenrc
|
|
|
|
%config(noreplace) %{_sysconfdir}/screenrc
|
|
|
|
%config(noreplace) /etc/pam.d/screen
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/screen
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Feb 26 2008 Miroslav Lichvar <mlichvar@redhat.com> - 4.0.3-10
|
|
|
|
|
|
|
|
- don't set xterm function keys in default config (#151556)
|
|
|
|
|
|
|
|
- always return 0 in scriptlet (#433882)
|
|
|
|
|
|
|
|
- fix pty permissions
|
|
|
|
|
|
|
|
- enable utempter support
|
|
|
|
|
|
|
|
- link with libtinfo, don't link with libutil
|
|
|
|
|
|
|
|
- spec cleanup
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.0.3-9
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.0.3-9
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
|
|
|
|
|
|
|