]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - net-tools/net-tools.nm
gnome-themes-standard: Update to 3.11.5.
[people/ms/ipfire-3.x.git] / net-tools / net-tools.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = net-tools
7 version = 1.60
8 release = 3
9
10 groups = System/Base
11 url = http://net-tools.berlios.de/
12 license = GPL+
13 summary = Basic networking tools.
14
15 description
16 The net-tools package contains basic networking tools,
17 including ifconfig, netstat, route, and others.
18 end
19
20 source_dl =
21 sources = %{thisapp}.tar.bz2
22
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
104
105 build
106 requires
107 gettext
108 libselinux-devel
109 end
110
111 prepare_cmds
112 # Copy config files
113 cp %{DIR_SOURCE}/config.h %{DIR_APP}
114 cp %{DIR_SOURCE}/config.make %{DIR_APP}
115
116 # Copy additional man pages
117 cp %{DIR_SOURCE}/*.8 %{DIR_APP}/man/en_US
118
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}
122 end
123
124 make_build_targets += \
125 CC=gcc
126
127 # Compiling in parallel mode is unsafe for this pkg.
128 PARALLELISMFLAGS =
129
130 build_cmds
131 # Compile ether-wake
132 gcc %{CFLAGS} -o ether-wake ether-wake.c
133
134 # Compile mii-diag
135 gcc %{CFLAGS} -o mii-diag mii-diag.c
136 end
137
138 install
139 mv man/de_DE man/de
140 mv man/fr_FR man/fr
141 mv man/pt_BR man/pt
142
143 make BASEDIR=%{BUILDROOT} mandir=/usr/share/man install
144
145 # Install ether-wake and mii-diag
146 install -m 755 %{DIR_APP}/ether-wake %{BUILDROOT}/sbin
147 install -m 755 %{DIR_APP}/mii-diag %{BUILDROOT}/sbin
148
149 # Remove tools we do not want
150 rm -rvf \
151 %{BUILDROOT}/sbin/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}* \
152 %{BUILDROOT}/usr/share/man/{,*}/man*/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}*
153 end
154 end
155
156 packages
157 package %{name}
158 groups += Base
159 end
160
161 package %{name}-debuginfo
162 template DEBUGINFO
163 end
164 end