1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
27 PKG_NAME = netkit-telnet
32 PKG_GROUPS = Applications/Internet
33 PKG_URL = http://www.ibiblio.org/pub/Linux/system/network/netkit/
35 PKG_SUMMARY = Telnet is a popular protocol for logging into remote systems over the Internet.
37 PKG_BUILD_DEPS+= gcc-c++ ncurses-devel
39 define PKG_DESCRIPTION
40 Telnet is a popular protocol for logging into remote systems over the
41 Internet. The package includes a daemon that supports Telnet remote
42 logins into the host machine.
45 PKG_TARBALL = $(THISAPP).tar.gz
46 PKG_OBJECTS += telnet-client.tar.gz
50 PKG_PATCHES = telnet-client-cvs.patch0 \
52 telnet-0.17-env.patch \
53 telnet-0.17-pek.patch0 \
54 telnet-0.17-issue.patch \
55 telnet-0.17-sa-01-49.patch \
56 telnet-0.17-8bit.patch \
57 telnet-0.17-argv.patch \
58 telnet-0.17-conf.patch \
59 telnet-0.17-cleanup_race.patch \
60 telnetd-0.17-pty_read.patch0 \
61 telnet-0.17-CAN-2005-468_469.patch \
62 telnet-gethostbyname.patch \
63 netkit-telnet-0.17-ipv6.diff \
64 netkit-telnet-0.17-nodns.patch \
65 telnet-0.17-errno_test_sys_bsd.patch \
66 netkit-telnet-0.17-reallynodns.patch
69 cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
70 cd $(DIR_APP) && mv telnet telnet-netkit
71 cd $(DIR_APP) && $(DO_EXTRACT) $(DIR_DL)/telnet-client.tar.gz
77 -mkdir -pv $(BUILDROOT)/usr/man/man{1,5,8}
78 -mkdir -pv $(BUILDROOT)/usr/{,s}bin
80 cd $(DIR_APP) && make install INSTALLROOT=$(BUILDROOT)
82 -mkdir -pv $(BUILDROOT)/usr/share
83 mv $(BUILDROOT)/usr/man $(BUILDROOT)/usr/share/man
84 rm -rf $(BUILDROOT)/usr/sbin
85 rm -rf $(BUILDROOT)/usr/share/man/man8
86 rm -rf $(BUILDROOT)/usr/share/man/man5