1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Internet
11 url = http://www.ibiblio.org/pub/Linux/system/network/netkit/
13 summary = Telnet is a popular protocol for logging into remote systems over the Internet.
16 Telnet is a popular protocol for logging into remote systems over the
17 Internet. The package includes a daemon that supports Telnet remote
18 logins into the host machine.
21 source_dl = http://www.ibiblio.org/pub/Linux/system/network/netkit/
22 sources = netkit-%{thisapp}.tar.gz
23 sources += telnet-client.tar.gz
25 # Apply patches in a special order
27 telnet-client-cvs.patch0 \
29 telnet-0.17-env.patch \
30 telnet-0.17-pek.patch0 \
31 telnet-0.17-issue.patch \
32 telnet-0.17-sa-01-49.patch \
33 telnet-0.17-8bit.patch \
34 telnet-0.17-argv.patch \
35 telnet-0.17-conf.patch \
36 telnet-0.17-cleanup_race.patch \
37 telnetd-0.17-pty_read.patch0 \
38 telnet-0.17-CAN-2005-468_469.patch \
39 telnet-gethostbyname.patch \
40 netkit-telnet-0.17-ipv6.diff \
41 netkit-telnet-0.17-nodns.patch \
42 telnet-0.17-errno_test_sys_bsd.patch \
43 netkit-telnet-0.17-reallynodns.patch
51 DIR_APP = %{DIR_SRC}/netkit-%{thisapp}
53 # Overwite configure options, because configure script
54 # doesn't accept flags for used compiler or host definition
59 # For the telnet client we have to extract a second tarball into the source
60 # directory of the main tarball.
62 cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/netkit-%{thisapp}.tar.gz
63 cd %{DIR_APP} && mv telnet telnet-netkit
64 cd %{DIR_APP} && %{MACRO_EXTRACT} %{DIR_DL}/telnet-client.tar.gz
70 # We have to create the directories on our own
71 mkdir -pv %{BUILDROOT}/usr/man/man{1,5,8}
72 mkdir -pv %{BUILDROOT}/usr/{,s}bin
74 make install INSTALLROOT=%{BUILDROOT}
76 # Move manpages to correct place
77 mkdir -pv %{BUILDROOT}/usr/share
78 mv %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/man
80 # Remove telnetd, we don't want it
81 rm -rf %{BUILDROOT}/usr/sbin
82 rm -rf %{BUILDROOT}/usr/share/man/man8
83 rm -rf %{BUILDROOT}/usr/share/man/man5
91 package %{name}-debuginfo