]>
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 | |
8 | release = 2 | |
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 | ||
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 | |
6f01057b | 68 | |
802ea3af MT |
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 | |
6f01057b | 73 | |
802ea3af | 74 | make install INSTALLROOT=%{BUILDROOT} |
6f01057b | 75 | |
802ea3af MT |
76 | # Move manpages to correct place |
77 | mkdir -pv %{BUILDROOT}/usr/share | |
78 | mv %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/man | |
6f01057b | 79 | |
802ea3af MT |
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 | |
cacad81b | 86 | |
802ea3af MT |
87 | packages |
88 | package %{name} | |
89 | end | |
1f9bc2f0 MT |
90 | |
91 | package %{name}-debuginfo | |
92 | template DEBUGINFO | |
93 | end | |
802ea3af | 94 | end |