]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/telnet/telnet.nm
avahi: Update to 0.6.30.
[people/ms/ipfire-3.x.git] / pkgs / telnet / telnet.nm
CommitLineData
6f01057b
JPT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
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. #
10# #
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. #
15# #
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/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
cacad81b 27PKG_NAME = telnet
6f01057b 28PKG_VER = 0.17
cacad81b 29PKG_REL = 2
6f01057b
JPT
30
31PKG_MAINTAINER =
32PKG_GROUPS = Applications/Internet
33PKG_URL = http://www.ibiblio.org/pub/Linux/system/network/netkit/
34PKG_LICENSE = BSD
35PKG_SUMMARY = Telnet is a popular protocol for logging into remote systems over the Internet.
36
37PKG_BUILD_DEPS+= gcc-c++ ncurses-devel
38
39define 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.
43endef
44
cacad81b 45PKG_TARBALL = netkit-$(THISAPP).tar.gz
6f01057b
JPT
46PKG_OBJECTS += telnet-client.tar.gz
47
cacad81b 48DIR_APP = $(DIR_SRC)/netkit-$(THISAPP)
6f01057b 49
cacad81b
SS
50# Overwite configure options, because configure script
51# doesn't accept flags for used compiler or host definition
52CONFIGURE_OPTIONS = \
53 --prefix=/usr
54
55# Apply patches in a special order
6f01057b
JPT
56PKG_PATCHES = telnet-client-cvs.patch0 \
57 telnetd-0.17.patch0 \
58 telnet-0.17-env.patch \
59 telnet-0.17-pek.patch0 \
60 telnet-0.17-issue.patch \
61 telnet-0.17-sa-01-49.patch \
62 telnet-0.17-8bit.patch \
63 telnet-0.17-argv.patch \
64 telnet-0.17-conf.patch \
65 telnet-0.17-cleanup_race.patch \
66 telnetd-0.17-pty_read.patch0 \
67 telnet-0.17-CAN-2005-468_469.patch \
68 telnet-gethostbyname.patch \
69 netkit-telnet-0.17-ipv6.diff \
70 netkit-telnet-0.17-nodns.patch \
71 telnet-0.17-errno_test_sys_bsd.patch \
72 netkit-telnet-0.17-reallynodns.patch
73
74define STAGE_PREPARE
75 cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
76 cd $(DIR_APP) && mv telnet telnet-netkit
77 cd $(DIR_APP) && $(DO_EXTRACT) $(DIR_DL)/telnet-client.tar.gz
78
79 $(DO_PATCHES)
80endef
81
82define STAGE_INSTALL
cacad81b 83 # We have to create the directories on our own
6f01057b
JPT
84 -mkdir -pv $(BUILDROOT)/usr/man/man{1,5,8}
85 -mkdir -pv $(BUILDROOT)/usr/{,s}bin
86
87 cd $(DIR_APP) && make install INSTALLROOT=$(BUILDROOT)
88
cacad81b 89 # Move manpages to correct place
6f01057b
JPT
90 -mkdir -pv $(BUILDROOT)/usr/share
91 mv $(BUILDROOT)/usr/man $(BUILDROOT)/usr/share/man
cacad81b
SS
92
93 # Remove telnetd, we don't want it
6f01057b
JPT
94 rm -rf $(BUILDROOT)/usr/sbin
95 rm -rf $(BUILDROOT)/usr/share/man/man8
96 rm -rf $(BUILDROOT)/usr/share/man/man5
6f01057b 97endef