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