Summary: The client program for the Telnet remote login protocol Name: telnet Version: 0.17 Release: 50%{?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 Source2: telnet-client.tar.gz Source3: telnet-xinetd Source4: telnet.wmconfig Patch1: telnet-client-cvs.patch Patch5: telnetd-0.17.diff Patch6: telnet-0.17-env.patch Patch7: telnet-0.17-issue.patch Patch8: telnet-0.17-sa-01-49.patch Patch10: telnet-0.17-pek.patch Patch11: telnet-0.17-8bit.patch Patch12: telnet-0.17-argv.patch Patch13: telnet-0.17-conf.patch Patch14: telnet-0.17-cleanup_race.patch Patch15: telnetd-0.17-pty_read.patch Patch16: telnet-0.17-CAN-2005-468_469.patch Patch18: telnet-gethostbyname.patch Patch19: netkit-telnet-0.17-ipv6.diff Patch20: netkit-telnet-0.17-nodns.patch Patch21: telnet-0.17-errno_test_sys_bsd.patch Patch22: netkit-telnet-0.17-reallynodns.patch Patch23: telnet-rh678324.patch BuildRequires: ncurses-devel Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Telnet is a popular protocol for logging into remote systems over the Internet. The package provides a command line Telnet client %package server Requires: xinetd Group: System Environment/Daemons Summary: The server program for the Telnet remote login protocol %description server Telnet is a popular protocol for logging into remote systems over the Internet. The package includes a daemon that supports Telnet remote logins into the host machine. The daemon is disabled by default. You may enable the daemon by editing /etc/xinetd.d/telnet %prep %setup -q -n netkit-telnet-%{version} mv telnet telnet-NETKIT %setup -T -D -q -a 2 -n netkit-telnet-%{version} %patch1 -p0 -b .cvs %patch5 -p0 -b .fix %patch6 -p1 -b .env %patch10 -p0 -b .pek %patch7 -p1 -b .issue %patch8 -p1 -b .sa-01-49 %patch11 -p1 -b .8bit %patch12 -p1 -b .argv %patch13 -p1 -b .confverb %patch14 -p1 -b .cleanup_race %patch15 -p0 -b .pty_read %patch16 -p1 -b .CAN-2005-468_469 #%patch17 -p1 -b .linemode %patch18 -p1 -b .gethost %patch19 -p1 -b .gethost2 %patch20 -p1 -b .nodns %patch21 -p1 -b .errnosysbsd %patch22 -p1 -b .reallynodns %patch23 -p1 -b .rh678324 %build %ifarch s390 s390x export CC_FLAGS="$RPM_OPT_FLAGS -fPIE" %else export CC_FLAGS="$RPM_OPT_FLAGS -fpie" %endif export LD_FLAGS="$LD_FLAGS -pie" sh configure --with-c-compiler=gcc perl -pi -e ' s,-O2,\$(CC_FLAGS),; s,LDFLAGS=.*,LDFLAGS=\$(LD_FLAGS),; s,^BINDIR=.*$,BINDIR=%{_bindir},; s,^MANDIR=.*$,MANDIR=%{_mandir},; s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; ' MCONFIG # remove stripping perl -pi -e 's|install[ ]+-s|install|g' \ ./telnet/GNUmakefile \ ./telnetd/Makefile \ ./telnetlogin/Makefile \ ./telnet-NETKIT/Makefile make %{?_smp_mflags} %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} 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 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d install -p -m644 %SOURCE3 ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/telnet %clean rm -rf ${RPM_BUILD_ROOT} %files %doc README %defattr(-,root,root,-) %{_bindir}/telnet %{_mandir}/man1/telnet.1* %files server %defattr(-,root,root,-) %config(noreplace) /etc/xinetd.d/telnet %{_sbindir}/in.telnetd %{_mandir}/man5/issue.net.5* %{_mandir}/man8/in.telnetd.8* %{_mandir}/man8/telnetd.8* %changelog * Tue Jun 28 2011 Adam Tkac 1:0.17-50 - telnetd: store "from" address in sockaddr_storage (#678324) * Wed Feb 09 2011 Fedora Release Engineering - 1:0.17-49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jan 20 2011 Karsten Hopp 1:0.17-48 - update telnet-0.17-sa-01-49.patch to make it apply with fuzz=0 * Tue Mar 09 2010 Adam Tkac 1:0.17-47 - add URL and README * Fri Nov 27 2009 Adam Tkac 1:0.17-46 - changes related package review (#226484) - remove unused patches - telnet-0.17-linemode.patch - telnet-0.17-env-5x.patch * Wed Sep 02 2009 Adam Tkac 1:0.17-45 - add new option -N to disable DNS lookups (#490242) * Sun Jul 26 2009 Fedora Release Engineering - 1:0.17-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 1:0.17-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 18 2008 Fedora Release Engineering - 1:0.17-42 - Autorebuild for GCC 4.3 * Tue Sep 25 2007 Adam Tkac 1:0.17-41 - rebased "nodns" patch with patch from Bryn M. Reeves * Thu Sep 20 2007 Adam Tkac 1:0.17-40 - improved patch to #274991 * Wed Aug 22 2007 Harald Hoyer - 1:0.17-39 - added patch to prevent a rare loop in the client * Fri Apr 13 2007 Adam Tkac - 1:0.17-38.fc7 - added -c option which disables reverse dns checking (#223448) - added smp_mflags to make - start using dist macro * Fri Jul 14 2006 Harald Hoyer - 1:0.17-37 - added netkit-telnet-0.17-ipv6.diff from Marek Grác, which adds IPv6 support to telnetd * Wed Jul 12 2006 Jesse Keating - 1:0.17-36.1 - rebuild * Mon May 08 2006 Harald Hoyer - 1:0.17-36 - patch to remove gethostbyname() (bug #190296) * Fri Feb 10 2006 Jesse Keating - 1:0.17-35.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1:0.17-35.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Thu Mar 17 2005 Harald Hoyer - 1:0.17-35 - fixed CAN-2005-468 and CAN-2005-469 * Wed Mar 02 2005 Harald Hoyer - rebuilt * Fri Jan 21 2005 Harald Hoyer - 1:0.17-33 - added patch telnetd-0.17-pty_read.patch, which fixes 145636 * Thu Jan 13 2005 Jason Vas Dias - 1:0.17-31 - bug 143929 / 145004 : fix race condition in telnetd on wtmp lock - when cleanup() is entered from main process and in signal - handler * Mon Jun 28 2004 Harald Hoyer - 1:0.17-30 - fixed 126858: Too long /proc/X/cmdline: bad ps output when piped to less/more * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Feb 5 2004 Harald Hoyer - 1:0.17-27 - added PIE compile flags * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed May 28 2003 Harald Hoyer 1:0.17-26 - cleanup of spec file - 8bit binary patch #91023 * Wed Jan 29 2003 Harald Hoyer 0.17-25 - rebuilt * Wed Jan 22 2003 Tim Powers - rebuilt * Mon Nov 11 2002 Harald Hoyer 0.17-24 - changed description - removed unused .desktop files * Tue Jul 23 2002 Harald Hoyer 0.17-23 - removed prestripping * Tue Jul 9 2002 Harald Hoyer - removed x86 -O gcc-2.96 hack (#59514) * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu Jun 6 2002 Tim Powers - bump release number and rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Thu Sep 06 2001 Harald Hoyer 0.17-20 - hopefully fixed #52817, #52224 * Thu Aug 16 2001 Bill Nottingham - bump version for 7.2 * Wed Aug 15 2001 Bill Nottingham - fix versioning * Tue Jul 31 2001 Harald Hoyer - fixed security issues (#50335) - patched the patches to fit the 5x version - one world -> one spec file for all versions ;) * Sat Jul 21 2001 Tim Powers - no applnk file, it's clutrtering the menus * Wed Jul 17 2001 Bill Nottingham - apply the patch, duh (and fix it while we're here) * Tue Jul 10 2001 Bill Nottingham - make /etc/issue.net parsing match the various gettys * Mon Jun 18 2001 Harald Hoyer - merged Jakubs and Pekka's patches * Wed Apr 4 2001 Jakub Jelinek - don't let configure to guess compiler, it can pick up egcs * Fri Mar 9 2001 Pekka Savola - update to 0.17 - apply latest changes from CVS to telnet client, enable IPv6 - BuildPreReq ncurses-devel * Mon Jan 22 2001 Helge Deller - added swedish & german translation to .desktop-file (#15332) * Sat Dec 30 2000 Nalin Dahyabhai - mark the xinetd config file as config(noreplace) * Fri Dec 01 2000 Trond Eivind Glomsrød - make sure the server is turned off by default * Tue Jul 18 2000 Bill Nottingham - add description & default to xinetd file * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jun 19 2000 Jeff Johnson - FHS packaging. - update to 0.17-pre20000412. * Tue May 23 2000 Trond Eivind Glomsrød - moved the xinet entry to the server * Mon May 22 2000 Trond Eivind Glomsrød - add an entry to /etc/xinetd.d * Tue May 16 2000 Jeff Johnson - permit telnet queries only for exported variables. * Fri Mar 24 2000 Bernhard Rosenkraenzer - 0.17 * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Fri Feb 11 2000 Bill Nottingham - fix description * Mon Feb 07 2000 Preston Brown - wmconfig gone * Wed Feb 02 2000 Cristian Gafton - man pages are compressed - fix description * Tue Jan 4 2000 Bill Nottingham - split client and server * Tue Dec 21 1999 Jeff Johnson - update to 0.16. * Sun Oct 10 1999 Matt Wilson - corrected the Terminal setting of the .desktop (needs to be 'true' not '1') * Sat Sep 24 1999 Preston Brown - red hat .desktop entry * Sat Aug 21 1999 Jeff Johnson - rebuild for 6.1. * Wed Aug 18 1999 Bill Nottingham - don't trust random TERM variables in telnetd (#4560) * Wed Jun 2 1999 Jeff Johnson - fix (#3098). * Thu May 27 1999 Antti Andreimann - fixed the problem with escape character (it could not be disabled) - changed the spec file to use %%setup macro for unpacking telnet-client * Thu Apr 15 1999 Jeff Johnson - use glibc utmp routines. * Thu Apr 8 1999 Jeff Johnson - fix the fix (wrong way memcpy). * Wed Apr 7 1999 Jeff Johnson - fix "telnet localhost" bus error on sparc64 (alpha?). * Tue Apr 6 1999 Jeff Johnson - use OpenBSD telnet client (and fix minor core dump with .telnetrc #247) * Thu Mar 25 1999 Erik Troan - use openpty in telnetd * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 22) * Mon Mar 15 1999 Jeff Johnson - compile for 6.0. * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Fri Apr 24 1998 Cristian Gafton - compile C++ code using egcs * Tue Apr 14 1998 Erik Troan - built against new ncurses * Wed Oct 29 1997 Donnie Barnes - added wmconfig entry * Tue Jul 15 1997 Erik Troan - initial build