]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - telnet/telnet.nm
Merge remote-tracking branch 'stevee/ppp-update'
[people/ms/ipfire-3.x.git] / telnet / telnet.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = telnet
7 version = 0.17
8 release = 2
9
10 groups = Applications/Internet
11 url = http://www.ibiblio.org/pub/Linux/system/network/netkit/
12 license = BSD
13 summary = Telnet is a popular protocol for logging into remote systems over the Internet.
14
15 description
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.
19 end
20
21 source_dl = http://www.ibiblio.org/pub/Linux/system/network/netkit/
22 sources = netkit-%{thisapp}.tar.gz
23 sources += telnet-client.tar.gz
24
25 # Apply patches in a special order
26 patches = \
27 telnet-client-cvs.patch0 \
28 telnetd-0.17.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
44
45 build
46 requires
47 gcc-c++
48 ncurses-devel
49 end
50
51 DIR_APP = %{DIR_SRC}/netkit-%{thisapp}
52
53 # Overwite configure options, because configure script
54 # doesn't accept flags for used compiler or host definition
55 configure_options = \
56 --prefix=/usr
57
58
59 # For the telnet client we have to extract a second tarball into the source
60 # directory of the main tarball.
61 prepare
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
65
66 %{MACRO_PATCHES}
67 end
68
69 install
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
73
74 make install INSTALLROOT=%{BUILDROOT}
75
76 # Move manpages to correct place
77 mkdir -pv %{BUILDROOT}/usr/share
78 mv %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/man
79
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
84 end
85 end
86
87 packages
88 package %{name}
89 end
90
91 package %{name}-debuginfo
92 template DEBUGINFO
93 end
94 end