1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://net-tools.berlios.de/
13 summary = Basic networking tools.
16 The net-tools package contains basic networking tools,
17 including ifconfig, netstat, route, and others.
21 sources = %{thisapp}.tar.bz2
23 # Manual list patches because they need to be applied in speical order
24 patches = net-tools-1.57-bug22040.patch
25 patches += %{thisapp}-miiioctl.patch
26 patches += %{thisapp}-virtualname.patch
27 patches += %{thisapp}-cycle.patch
28 patches += %{thisapp}-nameif.patch
29 patches += %{thisapp}-ipx.patch
30 patches += %{thisapp}-inet6-lookup.patch
31 patches += %{thisapp}-man.patch
32 patches += %{thisapp}-gcc33.patch
33 patches += %{thisapp}-trailingblank.patch
34 patches += %{thisapp}-interface.patch
35 patches += %{thisapp}-gcc34.patch
36 patches += %{thisapp}-overflow.patch
37 patches += %{thisapp}-siunits.patch
38 patches += %{thisapp}-trunc.patch
39 patches += %{thisapp}-return.patch
40 patches += %{thisapp}-parse.patch
41 patches += %{thisapp}-netmask.patch
42 patches += %{thisapp}-ulong.patch
43 patches += %{thisapp}-bcast.patch
44 patches += %{thisapp}-mii-tool-obsolete.patch
45 patches += %{thisapp}-netstat_ulong.patch
46 patches += %{thisapp}-note.patch
47 patches += %{thisapp}-num-ports.patch
48 patches += %{thisapp}-duplicate-tcp.patch
49 patches += %{thisapp}-statalias.patch
50 patches += %{thisapp}-isofix.patch
51 patches += %{thisapp}-ifconfig_ib.patch
52 patches += %{thisapp}-de.patch
53 patches += %{thisapp}-pie.patch
54 patches += %{thisapp}-ifaceopt.patch
55 patches += %{thisapp}-trim_iface.patch
56 patches += %{thisapp}-stdo.patch
57 patches += %{thisapp}-statistics.patch
58 patches += %{thisapp}-ifconfig.patch
59 patches += %{thisapp}-arp_overflow.patch
60 patches += %{thisapp}-hostname_man.patch
61 patches += %{thisapp}-interface_stack.patch
62 patches += %{thisapp}-selinux.patch
63 patches += %{thisapp}-netstat_stop_trim.patch
64 patches += %{thisapp}-netstat_inode.patch
65 patches += %{thisapp}-fgets.patch
66 patches += %{thisapp}-ifconfig_man.patch
67 patches += %{thisapp}-x25-proc.patch
68 patches += %{thisapp}-sctp.patch
69 patches += %{thisapp}-arp_man.patch
70 patches += %{thisapp}-ifconfig-long-iface-crasher.patch
71 patches += %{thisapp}-netdevice.patch
72 patches += %{thisapp}-skip.patch
73 patches += %{thisapp}-netstat-I-fix.patch
74 patches += %{thisapp}-nameif_strncpy.patch
75 patches += %{thisapp}-arp-unaligned-access.patch
76 patches += %{thisapp}-sctp-quiet.patch
77 patches += %{thisapp}-remove_node.patch
78 patches += %{thisapp}-netstat-interfaces-crash.patch
79 patches += %{thisapp}-ec_hw_null.patch
80 patches += %{thisapp}-statistics_buffer.patch
81 patches += %{thisapp}-sctp-addrs.patch
82 patches += %{thisapp}-i-option.patch
83 patches += %{thisapp}-a-option.patch
84 patches += %{thisapp}-clear-flag.patch
85 patches += %{thisapp}-metric-tunnel-man.patch
86 patches += %{thisapp}-netstat-probe.patch
87 patches += %{thisapp}-scanf-format.patch
88 patches += %{thisapp}-avoid-name-resolution.patch
89 patches += %{thisapp}-continous-flush-stdout.patch
90 patches += %{thisapp}-debug-fix.patch
91 patches += %{thisapp}-ib-warning.patch
92 patches += %{thisapp}-man-obsolete.patch
93 patches += %{thisapp}-man-RHEL-bugs.patch
94 patches += %{thisapp}-masqinfo-raw-ip.patch
95 patches += %{thisapp}-makefile-berlios.patch
96 patches += %{thisapp}-slattach-fchown.patch
97 patches += %{thisapp}-hostname-short.patch
98 patches += %{thisapp}-mii-refactor.patch
99 patches += %{thisapp}-IA64.patch
100 patches += %{thisapp}-large-indexes.patch
101 patches += %{thisapp}-statistics-doubleword.patch
102 patches += %{thisapp}-mii-gigabit.patch
103 patches += %{thisapp}-netstat-leak.patch
113 cp %{DIR_SOURCE}/config.h %{DIR_APP}
114 cp %{DIR_SOURCE}/config.make %{DIR_APP}
116 # Copy additional man pages
117 cp %{DIR_SOURCE}/*.8 %{DIR_APP}/man/en_US
119 # Copy source for ether-wake and mii-diag
120 cp %{DIR_SOURCE}/ether-wake.c %{DIR_APP}
121 cp %{DIR_SOURCE}/mii-diag.c %{DIR_APP}
124 make_build_targets += \
129 gcc %{CFLAGS} -o ether-wake ether-wake.c
132 gcc %{CFLAGS} -o mii-diag mii-diag.c
140 make BASEDIR=%{BUILDROOT} mandir=/usr/share/man install
142 # Install ether-wake and mii-diag
143 install -m 755 %{DIR_APP}/ether-wake %{BUILDROOT}/sbin
144 install -m 755 %{DIR_APP}/mii-diag %{BUILDROOT}/sbin
146 # Remove tools we do not want
148 %{BUILDROOT}/sbin/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}* \
149 %{BUILDROOT}/usr/share/man/{,*}/man*/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}*
158 package %{name}-debuginfo