]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/telnet/telnet.nm
Merge remote-tracking branch 'maniacikarus/clamav'
[ipfire-3.x.git] / pkgs / telnet / telnet.nm
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
25 include $(PKGROOT)/Include
26
27 PKG_NAME = netkit-telnet
28 PKG_VER = 0.17
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Applications/Internet
33 PKG_URL = http://www.ibiblio.org/pub/Linux/system/network/netkit/
34 PKG_LICENSE = BSD
35 PKG_SUMMARY = Telnet is a popular protocol for logging into remote systems over the Internet.
36
37 PKG_BUILD_DEPS+= gcc-c++ ncurses-devel
38
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.
43 endef
44
45 PKG_TARBALL = $(THISAPP).tar.gz
46 PKG_OBJECTS += telnet-client.tar.gz
47
48 CONFIGURE_OPTIONS =
49
50 PKG_PATCHES = telnet-client-cvs.patch0 \
51 telnetd-0.17.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
67
68 define STAGE_PREPARE
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
72
73 $(DO_PATCHES)
74 endef
75
76 define STAGE_INSTALL
77 -mkdir -pv $(BUILDROOT)/usr/man/man{1,5,8}
78 -mkdir -pv $(BUILDROOT)/usr/{,s}bin
79
80 cd $(DIR_APP) && make install INSTALLROOT=$(BUILDROOT)
81
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
87
88 endef