|
|
|
@ -3,10 +3,9 @@
|
|
|
|
|
Summary: The client program for the Telnet remote login protocol
|
|
|
|
|
Name: telnet
|
|
|
|
|
Version: 0.17
|
|
|
|
|
Release: 76%{?dist}
|
|
|
|
|
Release: 85%{?dist}
|
|
|
|
|
Epoch: 1
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-%{version}.tar.gz
|
|
|
|
|
Url: http://web.archive.org/web/20070819111735/www.hcs.harvard.edu/~dholland/computers/old-netkit.html
|
|
|
|
|
# telnet-client tarball is snapshot of the OpenBSD client telnet
|
|
|
|
@ -39,13 +38,13 @@ Patch27: telnet-0.17-force-ipv6-ipv4.patch
|
|
|
|
|
Patch28: netkit-telnet-0.17-core-dump.patch
|
|
|
|
|
Patch29: netkit-telnet-0.17-gcc7.patch
|
|
|
|
|
Patch30: netkit-telnet-0.17-manpage.patch
|
|
|
|
|
Patch31: netkit-telnet-0.17-covscan.patch
|
|
|
|
|
Patch31: netkit-telnet-0.17-telnetrc.patch
|
|
|
|
|
Patch32: telnet-log-address.patch
|
|
|
|
|
Patch33: telnet-0.17-overflow-exploit.patch
|
|
|
|
|
Patch34: telnet-0.17-pty-retry.patch
|
|
|
|
|
Patch35: telnet-0.17-sigpipe-segfault.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: ncurses-devel systemd
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: ncurses-devel systemd gcc gcc-c++
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -57,7 +56,6 @@ Requires: systemd
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
Summary: The server program for the Telnet remote login protocol
|
|
|
|
|
|
|
|
|
|
%description server
|
|
|
|
@ -98,11 +96,10 @@ mv telnet telnet-NETKIT
|
|
|
|
|
%patch28 -p1 -b .core-dump
|
|
|
|
|
%patch29 -p1 -b .gcc7
|
|
|
|
|
%patch30 -p1 -b .manpage
|
|
|
|
|
%patch31 -p1 -b .covscan
|
|
|
|
|
%patch31 -p1 -b .telnetrc
|
|
|
|
|
%patch32 -p1 -b .log-address
|
|
|
|
|
%patch33 -p1 -b .overflow
|
|
|
|
|
%patch34 -p1 -b .pty-retry
|
|
|
|
|
%patch35 -p1 -b .sigpipe
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
@ -111,9 +108,9 @@ mv telnet telnet-NETKIT
|
|
|
|
|
export CC_FLAGS="$RPM_OPT_FLAGS -fpie"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
export LD_FLAGS="$LD_FLAGS -z now -pie"
|
|
|
|
|
export LD_FLAGS="$RPM_LD_FLAGS -z now -pie"
|
|
|
|
|
|
|
|
|
|
sh configure --with-c-compiler=gcc
|
|
|
|
|
sh configure --with-c-compiler=%{__cc}
|
|
|
|
|
perl -pi -e '
|
|
|
|
|
s,-O2,\$(CC_FLAGS),;
|
|
|
|
|
s,LDFLAGS=.*,LDFLAGS=\$(LD_FLAGS),;
|
|
|
|
@ -129,20 +126,19 @@ perl -pi -e 's|install[ ]+-s|install|g' \
|
|
|
|
|
./telnetlogin/Makefile \
|
|
|
|
|
./telnet-NETKIT/Makefile
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
|
|
|
|
|
|
|
|
|
make INSTALLROOT=${RPM_BUILD_ROOT} install
|
|
|
|
|
|
|
|
|
|
install -p -m644 %SOURCE5 ${RPM_BUILD_ROOT}%{_unitdir}/telnet@.service
|
|
|
|
|
install -p -m644 %SOURCE6 ${RPM_BUILD_ROOT}%{_unitdir}/telnet.socket
|
|
|
|
|
install -D -p -m644 %SOURCE5 ${RPM_BUILD_ROOT}%{_unitdir}/telnet@.service
|
|
|
|
|
install -D -p -m644 %SOURCE6 ${RPM_BUILD_ROOT}%{_unitdir}/telnet.socket
|
|
|
|
|
|
|
|
|
|
%post server
|
|
|
|
|
%systemd_post telnet.socket
|
|
|
|
@ -155,12 +151,10 @@ install -p -m644 %SOURCE6 ${RPM_BUILD_ROOT}%{_unitdir}/telnet.socket
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_bindir}/telnet
|
|
|
|
|
%{_mandir}/man1/telnet.1*
|
|
|
|
|
|
|
|
|
|
%files server
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_unitdir}/*
|
|
|
|
|
%{_sbindir}/in.telnetd
|
|
|
|
|
%{_mandir}/man5/issue.net.5*
|
|
|
|
@ -168,18 +162,48 @@ install -p -m644 %SOURCE6 ${RPM_BUILD_ROOT}%{_unitdir}/telnet.socket
|
|
|
|
|
%{_mandir}/man8/telnetd.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 15 2020 Michal Ruprich <mruprich@redhat.com> - 1:0.17-76
|
|
|
|
|
- Resolves: #1895387 - telnet crashes on stack overflow due to infinite recursion
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.17-85
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Tue Oct 27 2020 Michal Ruprich <mruprich@redhat.com> - 1:0.17-75
|
|
|
|
|
- Resolves: #1881335 - in.telnetd needs to tolerate temporary EIO errors
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.17-84
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Thu Mar 26 2020 Michal Ruprich <michalruprich@gmail.com> - 1:0.17-74
|
|
|
|
|
- Resolves: #1814474 - Arbitrary remote code execution in utility.c via short writes or urgent data
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-83
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 04 2018 Michal Ruprich <mruprich@redhat.com> - 1:0.17-73
|
|
|
|
|
- Resolves: #1602711 - Please review important issues found by covscan
|
|
|
|
|
- Resolves: #1637085 - Option -i is missing in telnet in el8 but is available in el7
|
|
|
|
|
* Thu Nov 19 2020 Michal Ruprich <mruprich@redhat.com> - 1:0.17-82
|
|
|
|
|
- Changing LD_FLAGS to RPM_LD_FLAGS
|
|
|
|
|
- Use make_build macro and remove hard-coded gcc
|
|
|
|
|
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
|
|
|
|
|
|
|
|
|
* Fri Sep 25 2020 Michal Ruprich <mruprich@redhat.com> - 1:0.17-81
|
|
|
|
|
- Resolves: #1882606 - in.telnetd needs to tolerate temporary EIO errors
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-80
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 27 2020 Michal Ruprich <mruprich@redhat.com> - 1:0.17-79
|
|
|
|
|
- Resolves: #1814478 - Arbitrary remote code execution in utility.c via short writes or urgent data
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-78
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-77
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-76
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Oct 10 2018 Michal Ruprich <mruprich@redhat.com> - 1:0.17-75
|
|
|
|
|
- Adding -i option for disabling reverse DNS lookup
|
|
|
|
|
|
|
|
|
|
* Mon Jul 23 2018 Michal Ruprich <mruprich@redhat.com> - 1:0.17-74
|
|
|
|
|
- Resolves: #1606506 - telnet: FTBFS in Fedora rawhide
|
|
|
|
|
- Resolves: #1505954 - telnet failing to parse .telnetrc due to strncpy used on overlaping buffers
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-73
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17-72
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|