]>
Commit | Line | Data |
---|---|---|
6f01057b | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
6f01057b JPT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = telnet |
7 | version = 0.17 | |
ea2dfcc1 | 8 | release = 3 |
6f01057b | 9 | |
802ea3af MT |
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. | |
6f01057b | 14 | |
802ea3af | 15 | description |
6f01057b JPT |
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. | |
802ea3af | 19 | end |
6f01057b | 20 | |
802ea3af MT |
21 | source_dl = http://www.ibiblio.org/pub/Linux/system/network/netkit/ |
22 | sources = netkit-%{thisapp}.tar.gz | |
23 | sources += telnet-client.tar.gz | |
cacad81b SS |
24 | |
25 | # Apply patches in a special order | |
802ea3af MT |
26 | patches = \ |
27 | telnet-client-cvs.patch0 \ | |
6f01057b JPT |
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 | ||
802ea3af MT |
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 | ||
802ea3af MT |
58 | # For the telnet client we have to extract a second tarball into the source |
59 | # directory of the main tarball. | |
60 | prepare | |
61 | cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/netkit-%{thisapp}.tar.gz | |
62 | cd %{DIR_APP} && mv telnet telnet-netkit | |
63 | cd %{DIR_APP} && %{MACRO_EXTRACT} %{DIR_DL}/telnet-client.tar.gz | |
64 | ||
65 | %{MACRO_PATCHES} | |
ea2dfcc1 MT |
66 | |
67 | sed -i configure \ | |
68 | -e "s/LDFLAGS=/LDFLAGS=\"%{LDFLAGS}\"/" | |
802ea3af | 69 | end |
6f01057b | 70 | |
802ea3af MT |
71 | install |
72 | # We have to create the directories on our own | |
73 | mkdir -pv %{BUILDROOT}/usr/man/man{1,5,8} | |
74 | mkdir -pv %{BUILDROOT}/usr/{,s}bin | |
6f01057b | 75 | |
802ea3af | 76 | make install INSTALLROOT=%{BUILDROOT} |
6f01057b | 77 | |
802ea3af MT |
78 | # Move manpages to correct place |
79 | mkdir -pv %{BUILDROOT}/usr/share | |
80 | mv %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/man | |
6f01057b | 81 | |
802ea3af MT |
82 | # Remove telnetd, we don't want it |
83 | rm -rf %{BUILDROOT}/usr/sbin | |
84 | rm -rf %{BUILDROOT}/usr/share/man/man8 | |
85 | rm -rf %{BUILDROOT}/usr/share/man/man5 | |
86 | end | |
87 | end | |
cacad81b | 88 | |
802ea3af MT |
89 | packages |
90 | package %{name} | |
91 | end | |
1f9bc2f0 MT |
92 | |
93 | package %{name}-debuginfo | |
94 | template DEBUGINFO | |
95 | end | |
802ea3af | 96 | end |