]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
cacad81b | 27 | PKG_NAME = telnet |
6f01057b | 28 | PKG_VER = 0.17 |
cacad81b | 29 | PKG_REL = 2 |
6f01057b JPT |
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 | ||
cacad81b | 45 | PKG_TARBALL = netkit-$(THISAPP).tar.gz |
6f01057b JPT |
46 | PKG_OBJECTS += telnet-client.tar.gz |
47 | ||
cacad81b | 48 | DIR_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 | |
52 | CONFIGURE_OPTIONS = \ | |
53 | --prefix=/usr | |
54 | ||
55 | # Apply patches in a special order | |
6f01057b JPT |
56 | PKG_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 | ||
74 | define 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) | |
80 | endef | |
81 | ||
82 | define 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 | 97 | endef |