Summary: Client for the telnet remote login protocol Name: netkit-telnet Version: 0.17 Release: %mkrel 4 License: BSD Group: Networking/Remote access URL: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/ Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-%{version}.tar.gz Source2: telnet-client.tar.gz 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 Patch9: telnet-0.17-env-5x.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 Patch17: telnet-0.17-linemode.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 # Patch100: telnet-0.17-sock.patch Patch101: telnet-0.17-cleanup_cleanup.patch Patch102: telnet-0.17-CAN-2005-0488.patch BuildRequires: gpm-devel BuildRequires: ncurses-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Telnet is a popular protocol for logging into remote systems over the Internet. The telnet package provides a command line telnet client. %package server Summary: A extremely unsecure telnet server Group: System/Servers %description server Telnet is a popular protocol for logging into remote systems over the Internet. Install the telnetd package if you want to support extremely unsecure remote logins to your machine. NOTE: because telnetd is unsecure you have to manually activate it, this package will not do that for you. Instead use OpenSSH if you want a secure server. %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 # %patch100 -p1 -b .socket %patch101 -p1 -b .cleanup_cleanup %patch102 -p1 -b .CAN-2005-0488 # only build the telnet client #perl -pi -e "s|^SUB.*|SUB = telnet|g" Makefile %build sh configure --with-c-compiler=gcc perl -pi -e ' s,^CC=.*$,CC=cc,; s,-O2,\$(RPM_OPT_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 %install [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_sbindir} install -d %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_mandir}/man8 install -m0755 telnet/telnet %{buildroot}%{_bindir}/netkit-telnet install -m0644 telnet/telnet.1 %{buildroot}%{_mandir}/man1/netkit-telnet.1 install -m0755 telnetd/telnetd %{buildroot}%{_sbindir}/netkit-telnetd install -m0644 telnetd/telnetd.8 %{buildroot}%{_mandir}/man8/netkit-telnetd.8 %clean [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog README %attr(0755,root,root) %{_bindir}/netkit-telnet %attr(0644,root,root) %{_mandir}/man1/netkit-telnet.1* %files server %defattr(-,root,root) %doc ChangeLog README %attr(0755,root,root) %{_sbindir}/netkit-telnetd %attr(0644,root,root) %{_mandir}/man8/netkit-telnetd.8* %changelog * Tue Jul 29 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.17-4mdv2009.0 + Revision: 253790 - rebuild * Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 0.17-2mdv2008.1 + Revision: 140994 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Sep 15 2007 Oden Eriksson <oeriksson@mandriva.com> 0.17-2mdv2008.0 + Revision: 86376 - sync with telnet-0.17-39.fc8.src.rpm * Sat Jul 07 2007 Oden Eriksson <oeriksson@mandriva.com> 0.17-1mdv2008.0 + Revision: 49461 - make it build * Thu Jun 15 2006 Oden Eriksson <oeriksson@mandriva.com> 0.17-1mdv2007.0 - someone keeps deleting the plain telnet package in contrib, so then i guess it will stay if renamed? * Wed Apr 26 2006 Oden Eriksson <oeriksson@mandriva.com> 0.17-13mdk - re-added to contrib * Thu Jun 16 2005 Oden Eriksson <oeriksson@mandriva.com> 0.17-12mdk - synced with RH (P10-P14), fixes for CAN-2005-0488, CAN-2005-468 and CAN-2005-469 (1:0.17-20.EL4.3) * Tue Jan 18 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.17-11mdk - added the telnetd package, could come handy someday... * Mon Nov 15 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.17-10mdk - sync with fedora (telnet-0.17-30.src.rpm, P7, P8) - added P9 from arklinux: - Add feature to telnet to a PF_UNIX socket (if your app is listening on /tmp/blah.sck, use telnet /tmp/blah.sck) - fix url