summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /networking
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip
build system overhaul
Diffstat (limited to 'networking')
-rw-r--r--networking/Config.in326
-rw-r--r--networking/Kbuild38
-rw-r--r--networking/Makefile23
-rw-r--r--networking/Makefile.in70
-rw-r--r--networking/libiproute/Kbuild58
-rw-r--r--networking/libiproute/Makefile36
-rw-r--r--networking/libiproute/Makefile.in83
-rw-r--r--networking/udhcp/Config.in18
-rw-r--r--networking/udhcp/Kbuild17
-rw-r--r--networking/udhcp/Makefile23
-rw-r--r--networking/udhcp/Makefile.in53
11 files changed, 285 insertions, 460 deletions
diff --git a/networking/Config.in b/networking/Config.in
index b78ae37e7..f9ea56488 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -5,132 +5,132 @@
5 5
6menu "Networking Utilities" 6menu "Networking Utilities"
7 7
8config CONFIG_FEATURE_IPV6 8config FEATURE_IPV6
9 bool "Enable IPv6 support" 9 bool "Enable IPv6 support"
10 default n 10 default n
11 help 11 help
12 Enable IPv6 support in busybox. 12 Enable IPv6 support in busybox.
13 This adds IPv6 support in the networking applets. 13 This adds IPv6 support in the networking applets.
14 14
15config CONFIG_ARPING 15config ARPING
16 bool "arping" 16 bool "arping"
17 default n 17 default n
18 help 18 help
19 Ping hosts by ARP packets 19 Ping hosts by ARP packets
20 20
21config CONFIG_DNSD 21config DNSD
22 bool "dnsd" 22 bool "dnsd"
23 default n 23 default n
24 help 24 help
25 Small and static DNS server daemon. 25 Small and static DNS server daemon.
26 26
27config CONFIG_ETHER_WAKE 27config ETHER_WAKE
28 bool "ether-wake" 28 bool "ether-wake"
29 default n 29 default n
30 help 30 help
31 Send a magic packet to wake up sleeping machines. 31 Send a magic packet to wake up sleeping machines.
32 32
33config CONFIG_FAKEIDENTD 33config FAKEIDENTD
34 bool "fakeidentd" 34 bool "fakeidentd"
35 default n 35 default n
36 select CONFIG_FEATURE_SYSLOG 36 select FEATURE_SYSLOG
37 help 37 help
38 fakeidentd listens on the ident port and returns a predefined 38 fakeidentd listens on the ident port and returns a predefined
39 fake value on any query. 39 fake value on any query.
40 40
41config CONFIG_FTPGET 41config FTPGET
42 bool "ftpget" 42 bool "ftpget"
43 default n 43 default n
44 help 44 help
45 Retrieve a remote file via FTP. 45 Retrieve a remote file via FTP.
46 46
47config CONFIG_FTPPUT 47config FTPPUT
48 bool "ftpput" 48 bool "ftpput"
49 default n 49 default n
50 help 50 help
51 Store a remote file via FTP. 51 Store a remote file via FTP.
52 52
53config CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS 53config FEATURE_FTPGETPUT_LONG_OPTIONS
54 bool "Enable long options in ftpget/ftpput" 54 bool "Enable long options in ftpget/ftpput"
55 default n 55 default n
56 depends on CONFIG_GETOPT_LONG && (CONFIG_FTPGET || CONFIG_FTPPUT) 56 depends on GETOPT_LONG && (CONFIG_FTPGET || FTPPUT)
57 help 57 help
58 Support long options for the ftpget/ftpput applet. 58 Support long options for the ftpget/ftpput applet.
59 59
60config CONFIG_HOSTNAME 60config HOSTNAME
61 bool "hostname" 61 bool "hostname"
62 default n 62 default n
63 help 63 help
64 Show or set the system's host name 64 Show or set the system's host name
65 65
66config CONFIG_HTTPD 66config HTTPD
67 bool "httpd" 67 bool "httpd"
68 default n 68 default n
69 help 69 help
70 Serve web pages via an HTTP server. 70 Serve web pages via an HTTP server.
71 71
72config CONFIG_FEATURE_HTTPD_WITHOUT_INETD 72config FEATURE_HTTPD_WITHOUT_INETD
73 bool "Support using httpd as a daemon (not from inetd)" 73 bool "Support using httpd as a daemon (not from inetd)"
74 default n 74 default n
75 depends on CONFIG_HTTPD 75 depends on HTTPD
76 help 76 help
77 This option enables uid and port options for the httpd applet, 77 This option enables uid and port options for the httpd applet,
78 and eliminates the need to be called from the inetd server daemon. 78 and eliminates the need to be called from the inetd server daemon.
79 79
80config CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP 80config FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP
81 bool "Support reloading the global config file using hup signal" 81 bool "Support reloading the global config file using hup signal"
82 default n 82 default n
83 depends on CONFIG_HTTPD && CONFIG_FEATURE_HTTPD_WITHOUT_INETD 83 depends on HTTPD && FEATURE_HTTPD_WITHOUT_INETD
84 help 84 help
85 This option enables processing of SIGHUP to reload cached 85 This option enables processing of SIGHUP to reload cached
86 configuration settings. 86 configuration settings.
87 87
88config CONFIG_FEATURE_HTTPD_SETUID 88config FEATURE_HTTPD_SETUID
89 bool "Enable support -u <user> option" 89 bool "Enable support -u <user> option"
90 default n 90 default n
91 depends on CONFIG_HTTPD && CONFIG_FEATURE_HTTPD_WITHOUT_INETD 91 depends on HTTPD && FEATURE_HTTPD_WITHOUT_INETD
92 help 92 help
93 This option allows the server to run as a specific user 93 This option allows the server to run as a specific user
94 rather than defaulting to the user that starts the server. 94 rather than defaulting to the user that starts the server.
95 Use of this option requires special privileges to change to a 95 Use of this option requires special privileges to change to a
96 different user. 96 different user.
97 97
98config CONFIG_FEATURE_HTTPD_BASIC_AUTH 98config FEATURE_HTTPD_BASIC_AUTH
99 bool "Enable Basic http Authentication" 99 bool "Enable Basic http Authentication"
100 default y 100 default y
101 depends on CONFIG_HTTPD 101 depends on HTTPD
102 help 102 help
103 Utilizes password settings from /etc/httpd.conf for basic 103 Utilizes password settings from /etc/httpd.conf for basic
104 authentication on a per url basis. 104 authentication on a per url basis.
105 105
106config CONFIG_FEATURE_HTTPD_AUTH_MD5 106config FEATURE_HTTPD_AUTH_MD5
107 bool "Support MD5 crypted passwords for http Authentication" 107 bool "Support MD5 crypted passwords for http Authentication"
108 default n 108 default n
109 depends on CONFIG_FEATURE_HTTPD_BASIC_AUTH 109 depends on FEATURE_HTTPD_BASIC_AUTH
110 help 110 help
111 Enables basic per URL authentication from /etc/httpd.conf 111 Enables basic per URL authentication from /etc/httpd.conf
112 using md5 passwords. 112 using md5 passwords.
113 113
114config CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES 114config FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES
115 bool "Support loading additional MIME types at run-time" 115 bool "Support loading additional MIME types at run-time"
116 default n 116 default n
117 depends on CONFIG_HTTPD 117 depends on HTTPD
118 help 118 help
119 This option enables support for additional MIME types at 119 This option enables support for additional MIME types at
120 run-time to be specified in the configuration file. 120 run-time to be specified in the configuration file.
121 121
122config CONFIG_FEATURE_HTTPD_CGI 122config FEATURE_HTTPD_CGI
123 bool "Support Common Gateway Interface (CGI)" 123 bool "Support Common Gateway Interface (CGI)"
124 default y 124 default y
125 depends on CONFIG_HTTPD 125 depends on HTTPD
126 help 126 help
127 This option allows scripts and executables to be invoked 127 This option allows scripts and executables to be invoked
128 when specific URLs are requested. 128 when specific URLs are requested.
129 129
130config CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR 130config FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
131 bool "Enable support for running scripts through an interpreter" 131 bool "Enable support for running scripts through an interpreter"
132 default n 132 default n
133 depends on CONFIG_FEATURE_HTTPD_CGI 133 depends on FEATURE_HTTPD_CGI
134 help 134 help
135 This option enables support for running scripts through an 135 This option enables support for running scripts through an
136 interpreter. Turn this on if you want PHP scripts to work 136 interpreter. Turn this on if you want PHP scripts to work
@@ -138,81 +138,81 @@ config CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
138 config file: 138 config file:
139 *.php:/path/to/your/php 139 *.php:/path/to/your/php
140 140
141config CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV 141config FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
142 bool "Support the REMOTE_PORT environment variable for CGI" 142 bool "Support the REMOTE_PORT environment variable for CGI"
143 default n 143 default n
144 depends on CONFIG_FEATURE_HTTPD_CGI 144 depends on FEATURE_HTTPD_CGI
145 help 145 help
146 Use of this option can assist scripts in generating 146 Use of this option can assist scripts in generating
147 references that contain a unique port number. 147 references that contain a unique port number.
148 148
149config CONFIG_FEATURE_HTTPD_ENCODE_URL_STR 149config FEATURE_HTTPD_ENCODE_URL_STR
150 bool "Enable the -e option for shell script CGI simplification." 150 bool "Enable the -e option for shell script CGI simplification."
151 default y 151 default y
152 depends on CONFIG_HTTPD 152 depends on HTTPD
153 help 153 help
154 This option allows html encoding arbitrary 154 This option allows html encoding arbitrary
155 strings for display of the browser. Output goes to stdout. 155 strings for display of the browser. Output goes to stdout.
156 For example, httpd -e "<Hello World>" as 156 For example, httpd -e "<Hello World>" as
157 "&#60Hello&#32World&#62". 157 "&#60Hello&#32World&#62".
158 158
159config CONFIG_IFCONFIG 159config IFCONFIG
160 bool "ifconfig" 160 bool "ifconfig"
161 default n 161 default n
162 help 162 help
163 Ifconfig is used to configure the kernel-resident network interfaces. 163 Ifconfig is used to configure the kernel-resident network interfaces.
164 164
165config CONFIG_FEATURE_IFCONFIG_STATUS 165config FEATURE_IFCONFIG_STATUS
166 bool "Enable status reporting output (+7k)" 166 bool "Enable status reporting output (+7k)"
167 default y 167 default y
168 depends on CONFIG_IFCONFIG 168 depends on IFCONFIG
169 help 169 help
170 If ifconfig is called with no arguments it will display the status 170 If ifconfig is called with no arguments it will display the status
171 of the currently active interfaces. 171 of the currently active interfaces.
172 172
173config CONFIG_FEATURE_IFCONFIG_SLIP 173config FEATURE_IFCONFIG_SLIP
174 bool "Enable slip-specific options \"keepalive\" and \"outfill\"" 174 bool "Enable slip-specific options \"keepalive\" and \"outfill\""
175 default n 175 default n
176 depends on CONFIG_IFCONFIG 176 depends on IFCONFIG
177 help 177 help
178 Allow "keepalive" and "outfill" support for SLIP. If you're not 178 Allow "keepalive" and "outfill" support for SLIP. If you're not
179 planning on using serial lines, leave this unchecked. 179 planning on using serial lines, leave this unchecked.
180 180
181config CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ 181config FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
182 bool "Enable options \"mem_start\", \"io_addr\", and \"irq\"" 182 bool "Enable options \"mem_start\", \"io_addr\", and \"irq\""
183 default n 183 default n
184 depends on CONFIG_IFCONFIG 184 depends on IFCONFIG
185 help 185 help
186 Allow the start address for shared memory, start address for I/O, 186 Allow the start address for shared memory, start address for I/O,
187 and/or the interrupt line used by the specified device. 187 and/or the interrupt line used by the specified device.
188 188
189config CONFIG_FEATURE_IFCONFIG_HW 189config FEATURE_IFCONFIG_HW
190 bool "Enable option \"hw\" (ether only)" 190 bool "Enable option \"hw\" (ether only)"
191 default y 191 default y
192 depends on CONFIG_IFCONFIG 192 depends on IFCONFIG
193 help 193 help
194 Set the hardware address of this interface, if the device driver 194 Set the hardware address of this interface, if the device driver
195 supports this operation. Currently, we only support the 'ether' 195 supports this operation. Currently, we only support the 'ether'
196 class. 196 class.
197 197
198config CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS 198config FEATURE_IFCONFIG_BROADCAST_PLUS
199 bool "Set the broadcast automatically" 199 bool "Set the broadcast automatically"
200 default n 200 default n
201 depends on CONFIG_IFCONFIG 201 depends on IFCONFIG
202 help 202 help
203 Setting this will make ifconfig attempt to find the broadcast 203 Setting this will make ifconfig attempt to find the broadcast
204 automatically if the value '+' is used. 204 automatically if the value '+' is used.
205 205
206config CONFIG_IFUPDOWN 206config IFUPDOWN
207 bool "ifupdown" 207 bool "ifupdown"
208 default n 208 default n
209 select CONFIG_RUN_PARTS 209 select RUN_PARTS
210 help 210 help
211 Activate or deactivate the specified interfaces. This applet makes 211 Activate or deactivate the specified interfaces. This applet makes
212 use of either "ifconfig" and "route" or the "ip" command to actually 212 use of either "ifconfig" and "route" or the "ip" command to actually
213 configure network interfaces. Therefore, you will probably also want 213 configure network interfaces. Therefore, you will probably also want
214 to enable either CONFIG_IFCONFIG and CONFIG_ROUTE, or enable 214 to enable either IFCONFIG and ROUTE, or enable
215 CONFIG_FEATURE_IFUPDOWN_IP and the various CONFIG_IP options. Of 215 FEATURE_IFUPDOWN_IP and the various IP options. Of
216 course you could use non-busybox versions of these programs, so 216 course you could use non-busybox versions of these programs, so
217 against my better judgement (since this will surely result in plenty 217 against my better judgement (since this will surely result in plenty
218 of support questions on the mailing list), I do not force you to 218 of support questions on the mailing list), I do not force you to
@@ -220,34 +220,34 @@ config CONFIG_IFUPDOWN
220 "ifconfig" and "route" or the "ip" command, either via busybox or via 220 "ifconfig" and "route" or the "ip" command, either via busybox or via
221 standalone utilities. 221 standalone utilities.
222 222
223config CONFIG_FEATURE_IFUPDOWN_IP 223config FEATURE_IFUPDOWN_IP
224 bool "Use ip applet" 224 bool "Use ip applet"
225 default n 225 default n
226 depends on CONFIG_IFUPDOWN 226 depends on IFUPDOWN
227 help 227 help
228 Use the iproute "ip" command to implement "ifup" and "ifdown", rather 228 Use the iproute "ip" command to implement "ifup" and "ifdown", rather
229 than the default of using the older 'ifconfig' and 'route' utilities. 229 than the default of using the older 'ifconfig' and 'route' utilities.
230 230
231config CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN 231config FEATURE_IFUPDOWN_IP_BUILTIN
232 bool "Use busybox ip applet" 232 bool "Use busybox ip applet"
233 default y 233 default y
234 depends on CONFIG_FEATURE_IFUPDOWN_IP 234 depends on FEATURE_IFUPDOWN_IP
235 select CONFIG_IP 235 select IP
236 select CONFIG_FEATURE_IP_ADDRESS 236 select FEATURE_IP_ADDRESS
237 select CONFIG_FEATURE_IP_LINK 237 select FEATURE_IP_LINK
238 select CONFIG_FEATURE_IP_ROUTE 238 select FEATURE_IP_ROUTE
239 help 239 help
240 Use the busybox iproute "ip" applet to implement "ifupdown". 240 Use the busybox iproute "ip" applet to implement "ifupdown".
241 241
242 If leave this disabled, you must install the full-blown iproute2 242 If leave this disabled, you must install the full-blown iproute2
243 utility or the "ifup" and "ifdown" applets will not work. 243 utility or the "ifup" and "ifdown" applets will not work.
244 244
245config CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN 245config FEATURE_IFUPDOWN_IP_BUILTIN
246 bool "Use busybox ifconfig and route applets" 246 bool "Use busybox ifconfig and route applets"
247 default y 247 default y
248 depends on CONFIG_IFUPDOWN && !CONFIG_FEATURE_IFUPDOWN_IP 248 depends on IFUPDOWN && !CONFIG_FEATURE_IFUPDOWN_IP
249 select CONFIG_IFCONFIG 249 select IFCONFIG
250 select CONFIG_ROUTE 250 select ROUTE
251 help 251 help
252 Use the busybox iproute "ifconfig" and "route" applets to 252 Use the busybox iproute "ifconfig" and "route" applets to
253 implement the "ifup" and "ifdown" utilities. 253 implement the "ifup" and "ifdown" utilities.
@@ -256,87 +256,87 @@ config CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN
256 and route utilities, or the "ifup" and "ifdown" applets will not 256 and route utilities, or the "ifup" and "ifdown" applets will not
257 work. 257 work.
258 258
259config CONFIG_FEATURE_IFUPDOWN_IPV4 259config FEATURE_IFUPDOWN_IPV4
260 bool "Enable support for IPv4" 260 bool "Enable support for IPv4"
261 default y 261 default y
262 depends on CONFIG_IFUPDOWN 262 depends on IFUPDOWN
263 help 263 help
264 If you want busybox to talk IPv4, leave this on. 264 If you want busybox to talk IPv4, leave this on.
265 265
266config CONFIG_FEATURE_IFUPDOWN_IPV6 266config FEATURE_IFUPDOWN_IPV6
267 bool "Enable support for IPv6" 267 bool "Enable support for IPv6"
268 default n 268 default n
269 depends on CONFIG_IFUPDOWN && CONFIG_FEATURE_IPV6 269 depends on IFUPDOWN && FEATURE_IPV6
270 help 270 help
271 If you need support for IPv6, turn this option on. 271 If you need support for IPv6, turn this option on.
272 272
273config CONFIG_FEATURE_IFUPDOWN_IPX 273config FEATURE_IFUPDOWN_IPX
274 bool "Enable support for IPX" 274 bool "Enable support for IPX"
275 default n 275 default n
276 depends on CONFIG_IFUPDOWN 276 depends on IFUPDOWN
277 help 277 help
278 If this option is selected you can use busybox to work with IPX 278 If this option is selected you can use busybox to work with IPX
279 networks. 279 networks.
280 280
281config CONFIG_FEATURE_IFUPDOWN_MAPPING 281config FEATURE_IFUPDOWN_MAPPING
282 bool "Enable mapping support" 282 bool "Enable mapping support"
283 default n 283 default n
284 depends on CONFIG_IFUPDOWN 284 depends on IFUPDOWN
285 help 285 help
286 This enables support for the "mapping" stanza, unless you have 286 This enables support for the "mapping" stanza, unless you have
287 a weird network setup you don't need it. 287 a weird network setup you don't need it.
288 288
289config CONFIG_INETD 289config INETD
290 bool "inetd" 290 bool "inetd"
291 default n 291 default n
292 select CONFIG_FEATURE_SYSLOG 292 select FEATURE_SYSLOG
293 help 293 help
294 Internet superserver daemon 294 Internet superserver daemon
295 295
296config CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO 296config FEATURE_INETD_SUPPORT_BUILTIN_ECHO
297 bool "Support echo service" 297 bool "Support echo service"
298 default y 298 default y
299 depends on CONFIG_INETD 299 depends on INETD
300 help 300 help
301 Echo received data internal inetd service 301 Echo received data internal inetd service
302 302
303config CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD 303config FEATURE_INETD_SUPPORT_BUILTIN_DISCARD
304 bool "Support discard service" 304 bool "Support discard service"
305 default y 305 default y
306 depends on CONFIG_INETD 306 depends on INETD
307 help 307 help
308 Internet /dev/null internal inetd service 308 Internet /dev/null internal inetd service
309 309
310config CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME 310config FEATURE_INETD_SUPPORT_BUILTIN_TIME
311 bool "Support time service" 311 bool "Support time service"
312 default y 312 default y
313 depends on CONFIG_INETD 313 depends on INETD
314 help 314 help
315 Return 32 bit time since 1900 internal inetd service 315 Return 32 bit time since 1900 internal inetd service
316 316
317config CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME 317config FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME
318 bool "Support daytime service" 318 bool "Support daytime service"
319 default y 319 default y
320 depends on CONFIG_INETD 320 depends on INETD
321 help 321 help
322 Return human-readable time internal inetd service 322 Return human-readable time internal inetd service
323 323
324config CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN 324config FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN
325 bool "Support chargen service" 325 bool "Support chargen service"
326 default y 326 default y
327 depends on CONFIG_INETD 327 depends on INETD
328 help 328 help
329 Familiar character generator internal inetd service 329 Familiar character generator internal inetd service
330 330
331config CONFIG_FEATURE_INETD_RPC 331config FEATURE_INETD_RPC
332 bool "Support RPC services" 332 bool "Support RPC services"
333 default n 333 default n
334 depends on CONFIG_INETD 334 depends on INETD
335 help 335 help
336 Suuport Sun-RPC based services 336 Suuport Sun-RPC based services
337 337
338 338
339config CONFIG_IP 339config IP
340 bool "ip" 340 bool "ip"
341 default n 341 default n
342 help 342 help
@@ -344,38 +344,38 @@ config CONFIG_IP
344 utility. You generally don't need "ip" to use busybox with 344 utility. You generally don't need "ip" to use busybox with
345 TCP/IP. 345 TCP/IP.
346 346
347config CONFIG_FEATURE_IP_ADDRESS 347config FEATURE_IP_ADDRESS
348 bool "ip address" 348 bool "ip address"
349 default y 349 default y
350 depends on CONFIG_IP 350 depends on IP
351 help 351 help
352 Address manipulation support for the "ip" applet. 352 Address manipulation support for the "ip" applet.
353 353
354config CONFIG_FEATURE_IP_LINK 354config FEATURE_IP_LINK
355 bool "ip link" 355 bool "ip link"
356 default y 356 default y
357 depends on CONFIG_IP 357 depends on IP
358 help 358 help
359 Configure network devices with "ip". 359 Configure network devices with "ip".
360 360
361config CONFIG_FEATURE_IP_ROUTE 361config FEATURE_IP_ROUTE
362 bool "ip route" 362 bool "ip route"
363 default y 363 default y
364 depends on CONFIG_IP 364 depends on IP
365 help 365 help
366 Add support for routing table management to "ip". 366 Add support for routing table management to "ip".
367 367
368config CONFIG_FEATURE_IP_TUNNEL 368config FEATURE_IP_TUNNEL
369 bool "ip tunnel" 369 bool "ip tunnel"
370 default n 370 default n
371 depends on CONFIG_IP 371 depends on IP
372 help 372 help
373 Add support for tunneling commands to "ip". 373 Add support for tunneling commands to "ip".
374 374
375config CONFIG_FEATURE_IP_SHORT_FORMS 375config FEATURE_IP_SHORT_FORMS
376 bool "Support short forms of ip commands." 376 bool "Support short forms of ip commands."
377 default n 377 default n
378 depends on CONFIG_IP 378 depends on IP
379 help 379 help
380 Also support short-form of ip <OBJECT> commands: 380 Also support short-form of ip <OBJECT> commands:
381 ip addr -> ipaddr 381 ip addr -> ipaddr
@@ -386,51 +386,51 @@ config CONFIG_FEATURE_IP_SHORT_FORMS
386 Say N unless you desparately need the short form of the ip 386 Say N unless you desparately need the short form of the ip
387 object commands. 387 object commands.
388 388
389config CONFIG_IPADDR 389config IPADDR
390 bool 390 bool
391 default y 391 default y
392 depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_ADDRESS 392 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_ADDRESS
393 393
394config CONFIG_IPLINK 394config IPLINK
395 bool 395 bool
396 default y 396 default y
397 depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_LINK 397 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_LINK
398 398
399config CONFIG_IPROUTE 399config IPROUTE
400 bool 400 bool
401 default y 401 default y
402 depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_ROUTE 402 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_ROUTE
403 403
404config CONFIG_IPTUNNEL 404config IPTUNNEL
405 bool 405 bool
406 default y 406 default y
407 depends on CONFIG_FEATURE_IP_SHORT_FORMS && CONFIG_FEATURE_IP_TUNNEL 407 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_TUNNEL
408 408
409config CONFIG_IPCALC 409config IPCALC
410 bool "ipcalc" 410 bool "ipcalc"
411 default n 411 default n
412 help 412 help
413 ipcalc takes an IP address and netmask and calculates the 413 ipcalc takes an IP address and netmask and calculates the
414 resulting broadcast, network, and host range. 414 resulting broadcast, network, and host range.
415 415
416config CONFIG_FEATURE_IPCALC_FANCY 416config FEATURE_IPCALC_FANCY
417 bool "Fancy IPCALC, more options, adds 1 kbyte" 417 bool "Fancy IPCALC, more options, adds 1 kbyte"
418 default y 418 default y
419 depends on CONFIG_IPCALC 419 depends on IPCALC
420 help 420 help
421 Adds the options hostname, prefix and silent to the output of "ipcalc". 421 Adds the options hostname, prefix and silent to the output of "ipcalc".
422 422
423config CONFIG_FEATURE_IPCALC_LONG_OPTIONS 423config FEATURE_IPCALC_LONG_OPTIONS
424 bool "Enable long options" 424 bool "Enable long options"
425 default n 425 default n
426 depends on CONFIG_IPCALC && CONFIG_GETOPT_LONG 426 depends on IPCALC && GETOPT_LONG
427 help 427 help
428 Support long options for the ipcalc applet. 428 Support long options for the ipcalc applet.
429 429
430config CONFIG_NAMEIF 430config NAMEIF
431 bool "nameif" 431 bool "nameif"
432 default n 432 default n
433 select CONFIG_FEATURE_SYSLOG 433 select FEATURE_SYSLOG
434 help 434 help
435 nameif is used to rename network interface by its MAC address. 435 nameif is used to rename network interface by its MAC address.
436 Renamed interfaces MUST be in the down state. 436 Renamed interfaces MUST be in the down state.
@@ -442,107 +442,107 @@ config CONFIG_NAMEIF
442 # Comment 442 # Comment
443 new_interface_name XX:XX:XX:XX:XX:XX 443 new_interface_name XX:XX:XX:XX:XX:XX
444 444
445config CONFIG_NC 445config NC
446 bool "nc" 446 bool "nc"
447 default n 447 default n
448 help 448 help
449 A simple Unix utility which reads and writes data across network 449 A simple Unix utility which reads and writes data across network
450 connections. 450 connections.
451 451
452config CONFIG_NC_SERVER 452config NC_SERVER
453 bool "Netcat server options (-lp)" 453 bool "Netcat server options (-lp)"
454 default n 454 default n
455 depends on CONFIG_NC 455 depends on NC
456 help 456 help
457 Allow netcat to act as a server. 457 Allow netcat to act as a server.
458 458
459config CONFIG_NC_EXTRA 459config NC_EXTRA
460 bool "Netcat extensions (-eiw and filename)" 460 bool "Netcat extensions (-eiw and filename)"
461 default n 461 default n
462 depends on CONFIG_NC 462 depends on NC
463 help 463 help
464 Add -e (support for executing the rest of the command line after 464 Add -e (support for executing the rest of the command line after
465 making or receiving a successful connection), -i (delay interval for 465 making or receiving a successful connection), -i (delay interval for
466 lines sent), -w (timeout for initial connection). 466 lines sent), -w (timeout for initial connection).
467 467
468config CONFIG_NETSTAT 468config NETSTAT
469 bool "netstat" 469 bool "netstat"
470 default n 470 default n
471 help 471 help
472 netstat prints information about the Linux networking subsystem. 472 netstat prints information about the Linux networking subsystem.
473 473
474config CONFIG_NSLOOKUP 474config NSLOOKUP
475 bool "nslookup" 475 bool "nslookup"
476 default n 476 default n
477 help 477 help
478 nslookup is a tool to query Internet name servers. 478 nslookup is a tool to query Internet name servers.
479 479
480config CONFIG_PING 480config PING
481 bool "ping" 481 bool "ping"
482 default n 482 default n
483 help 483 help
484 ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to 484 ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
485 elicit an ICMP ECHO_RESPONSE from a host or gateway. 485 elicit an ICMP ECHO_RESPONSE from a host or gateway.
486 486
487config CONFIG_FEATURE_FANCY_PING 487config FEATURE_FANCY_PING
488 bool "Enable fancy ping output" 488 bool "Enable fancy ping output"
489 default y 489 default y
490 depends on CONFIG_PING 490 depends on PING
491 help 491 help
492 Make the output from the ping applet include statistics, and at the 492 Make the output from the ping applet include statistics, and at the
493 same time provide full support for ICMP packets. 493 same time provide full support for ICMP packets.
494 494
495config CONFIG_PING6 495config PING6
496 bool "ping6" 496 bool "ping6"
497 default n 497 default n
498 depends on CONFIG_FEATURE_IPV6 498 depends on FEATURE_IPV6
499 help 499 help
500 This will give you a ping that can talk IPv6. 500 This will give you a ping that can talk IPv6.
501 501
502config CONFIG_FEATURE_FANCY_PING6 502config FEATURE_FANCY_PING6
503 bool "Enable fancy ping6 output" 503 bool "Enable fancy ping6 output"
504 default y 504 default y
505 depends on CONFIG_PING6 505 depends on PING6
506 help 506 help
507 Make the output from the ping6 applet include statistics, and at the 507 Make the output from the ping6 applet include statistics, and at the
508 same time provide full support for ICMP packets. 508 same time provide full support for ICMP packets.
509 509
510config CONFIG_ROUTE 510config ROUTE
511 bool "route" 511 bool "route"
512 default n 512 default n
513 help 513 help
514 Route displays or manipulates the kernel's IP routing tables. 514 Route displays or manipulates the kernel's IP routing tables.
515 515
516config CONFIG_TELNET 516config TELNET
517 bool "telnet" 517 bool "telnet"
518 default n 518 default n
519 help 519 help
520 Telnet is an interface to the TELNET protocol, but is also commonly 520 Telnet is an interface to the TELNET protocol, but is also commonly
521 used to test other simple protocols. 521 used to test other simple protocols.
522 522
523config CONFIG_FEATURE_TELNET_TTYPE 523config FEATURE_TELNET_TTYPE
524 bool "Pass TERM type to remote host" 524 bool "Pass TERM type to remote host"
525 default y 525 default y
526 depends on CONFIG_TELNET 526 depends on TELNET
527 help 527 help
528 Setting this option will forward the TERM environment variable to the 528 Setting this option will forward the TERM environment variable to the
529 remote host you are connecting to. This is useful to make sure that 529 remote host you are connecting to. This is useful to make sure that
530 things like ANSI colors and other control sequences behave. 530 things like ANSI colors and other control sequences behave.
531 531
532config CONFIG_FEATURE_TELNET_AUTOLOGIN 532config FEATURE_TELNET_AUTOLOGIN
533 bool "Pass USER type to remote host" 533 bool "Pass USER type to remote host"
534 default y 534 default y
535 depends on CONFIG_TELNET 535 depends on TELNET
536 help 536 help
537 Setting this option will forward the USER environment variable to the 537 Setting this option will forward the USER environment variable to the
538 remote host you are connecting to. This is useful when you need to 538 remote host you are connecting to. This is useful when you need to
539 log into a machine without telling the username (autologin). This 539 log into a machine without telling the username (autologin). This
540 option enables `-a' and `-l USER' arguments. 540 option enables `-a' and `-l USER' arguments.
541 541
542config CONFIG_TELNETD 542config TELNETD
543 bool "telnetd" 543 bool "telnetd"
544 default n 544 default n
545 select CONFIG_FEATURE_SYSLOG 545 select FEATURE_SYSLOG
546 help 546 help
547 A daemon for the TELNET protocol, allowing you to log onto the host 547 A daemon for the TELNET protocol, allowing you to log onto the host
548 running the daemon. Please keep in mind that the TELNET protocol 548 running the daemon. Please keep in mind that the TELNET protocol
@@ -554,8 +554,8 @@ config CONFIG_TELNETD
554 554
555 Note that for busybox telnetd to work you need several things: 555 Note that for busybox telnetd to work you need several things:
556 First of all, your kernel needs: 556 First of all, your kernel needs:
557 CONFIG_UNIX98_PTYS=y 557 UNIX98_PTYS=y
558 CONFIG_DEVPTS_FS=y 558 DEVPTS_FS=y
559 559
560 Next, you need a /dev/pts directory on your root filesystem: 560 Next, you need a /dev/pts directory on your root filesystem:
561 561
@@ -572,8 +572,8 @@ config CONFIG_TELNETD
572 572
573 mount -t devpts devpts /dev/pts 573 mount -t devpts devpts /dev/pts
574 574
575 You need to be sure that Busybox has CONFIG_LOGIN and 575 You need to be sure that Busybox has LOGIN and
576 CONFIG_FEATURE_SUID enabled. And finally, you should make 576 FEATURE_SUID enabled. And finally, you should make
577 certain that Busybox has been installed setuid root: 577 certain that Busybox has been installed setuid root:
578 578
579 chown root.root /bin/busybox 579 chown root.root /bin/busybox
@@ -582,15 +582,15 @@ config CONFIG_TELNETD
582 with all that done, telnetd _should_ work.... 582 with all that done, telnetd _should_ work....
583 583
584 584
585config CONFIG_FEATURE_TELNETD_INETD 585config FEATURE_TELNETD_INETD
586 bool "Support call from inetd only" 586 bool "Support call from inetd only"
587 default n 587 default n
588 depends on CONFIG_TELNETD 588 depends on TELNETD
589 help 589 help
590 Selecting this will make telnetd only callable from inetd, 590 Selecting this will make telnetd only callable from inetd,
591 removing the standalone support. 591 removing the standalone support.
592 592
593config CONFIG_TFTP 593config TFTP
594 bool "tftp" 594 bool "tftp"
595 default n 595 default n
596 help 596 help
@@ -598,114 +598,114 @@ config CONFIG_TFTP
598 is usually used for simple, small transfers such as a root image 598 is usually used for simple, small transfers such as a root image
599 for a network-enabled bootloader. 599 for a network-enabled bootloader.
600 600
601config CONFIG_FEATURE_TFTP_GET 601config FEATURE_TFTP_GET
602 bool "Enable \"get\" command" 602 bool "Enable \"get\" command"
603 default y 603 default y
604 depends on CONFIG_TFTP 604 depends on TFTP
605 help 605 help
606 Add support for the GET command within the TFTP client. This allows 606 Add support for the GET command within the TFTP client. This allows
607 a client to retrieve a file from a TFTP server. 607 a client to retrieve a file from a TFTP server.
608 608
609config CONFIG_FEATURE_TFTP_PUT 609config FEATURE_TFTP_PUT
610 bool "Enable \"put\" command" 610 bool "Enable \"put\" command"
611 default y 611 default y
612 depends on CONFIG_TFTP 612 depends on TFTP
613 help 613 help
614 Add support for the PUT command within the TFTP client. This allows 614 Add support for the PUT command within the TFTP client. This allows
615 a client to transfer a file to a TFTP server. 615 a client to transfer a file to a TFTP server.
616 616
617config CONFIG_FEATURE_TFTP_BLOCKSIZE 617config FEATURE_TFTP_BLOCKSIZE
618 bool "Enable \"blocksize\" command" 618 bool "Enable \"blocksize\" command"
619 default n 619 default n
620 depends on CONFIG_TFTP 620 depends on TFTP
621 help 621 help
622 Allow the client to specify the desired block size for transfers. 622 Allow the client to specify the desired block size for transfers.
623 623
624config CONFIG_DEBUG_TFTP 624config DEBUG_TFTP
625 bool "Enable debug" 625 bool "Enable debug"
626 default n 626 default n
627 depends on CONFIG_TFTP 627 depends on TFTP
628 help 628 help
629 Enable debug settings for tftp. This is useful if you're running 629 Enable debug settings for tftp. This is useful if you're running
630 into problems with tftp as the protocol doesn't help you much when 630 into problems with tftp as the protocol doesn't help you much when
631 you run into problems. 631 you run into problems.
632 632
633config CONFIG_TRACEROUTE 633config TRACEROUTE
634 bool "traceroute" 634 bool "traceroute"
635 default n 635 default n
636 help 636 help
637 Utility to trace the route of IP packets 637 Utility to trace the route of IP packets
638 638
639config CONFIG_FEATURE_TRACEROUTE_VERBOSE 639config FEATURE_TRACEROUTE_VERBOSE
640 bool "Enable verbose output" 640 bool "Enable verbose output"
641 default n 641 default n
642 depends on CONFIG_TRACEROUTE 642 depends on TRACEROUTE
643 help 643 help
644 Add some verbosity to traceroute. This includes amongst other things 644 Add some verbosity to traceroute. This includes amongst other things
645 hostnames and ICMP response types. 645 hostnames and ICMP response types.
646 646
647config CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE 647config FEATURE_TRACEROUTE_SOURCE_ROUTE
648 bool "Enable loose source route" 648 bool "Enable loose source route"
649 default n 649 default n
650 depends on CONFIG_TRACEROUTE 650 depends on TRACEROUTE
651 help 651 help
652 Add option to specify a loose source route gateway 652 Add option to specify a loose source route gateway
653 (8 maximum). 653 (8 maximum).
654 654
655config CONFIG_FEATURE_TRACEROUTE_USE_ICMP 655config FEATURE_TRACEROUTE_USE_ICMP
656 bool "Use ICMP instead of UDP" 656 bool "Use ICMP instead of UDP"
657 default n 657 default n
658 depends on CONFIG_TRACEROUTE 658 depends on TRACEROUTE
659 help 659 help
660 Add feature to allow for ICMP ECHO instead of UDP datagrams. 660 Add feature to allow for ICMP ECHO instead of UDP datagrams.
661 661
662source networking/udhcp/Config.in 662source networking/udhcp/Config.in
663 663
664config CONFIG_VCONFIG 664config VCONFIG
665 bool "vconfig" 665 bool "vconfig"
666 default n 666 default n
667 help 667 help
668 Creates, removes, and configures VLAN interfaces 668 Creates, removes, and configures VLAN interfaces
669 669
670config CONFIG_WGET 670config WGET
671 bool "wget" 671 bool "wget"
672 default n 672 default n
673 help 673 help
674 wget is a utility for non-interactive download of files from HTTP, 674 wget is a utility for non-interactive download of files from HTTP,
675 HTTPS, and FTP servers. 675 HTTPS, and FTP servers.
676 676
677config CONFIG_FEATURE_WGET_STATUSBAR 677config FEATURE_WGET_STATUSBAR
678 bool "Enable a nifty process meter (+2k)" 678 bool "Enable a nifty process meter (+2k)"
679 default y 679 default y
680 depends on CONFIG_WGET 680 depends on WGET
681 help 681 help
682 Enable the transfer progress bar for wget transfers. 682 Enable the transfer progress bar for wget transfers.
683 683
684config CONFIG_FEATURE_WGET_AUTHENTICATION 684config FEATURE_WGET_AUTHENTICATION
685 bool "Enable HTTP authentication" 685 bool "Enable HTTP authentication"
686 default y 686 default y
687 depends on CONFIG_WGET 687 depends on WGET
688 help 688 help
689 Support authenticated HTTP transfers. 689 Support authenticated HTTP transfers.
690 690
691config CONFIG_FEATURE_WGET_IP6_LITERAL 691config FEATURE_WGET_IP6_LITERAL
692 bool "Enable IPv6 literal addresses" 692 bool "Enable IPv6 literal addresses"
693 default y 693 default y
694 depends on CONFIG_WGET && CONFIG_FEATURE_IPV6 694 depends on WGET && FEATURE_IPV6
695 help 695 help
696 Support IPv6 address literal notation in URLs. 696 Support IPv6 address literal notation in URLs.
697 697
698config CONFIG_FEATURE_WGET_LONG_OPTIONS 698config FEATURE_WGET_LONG_OPTIONS
699 bool "Enable long options" 699 bool "Enable long options"
700 default n 700 default n
701 depends on CONFIG_WGET && CONFIG_GETOPT_LONG 701 depends on WGET && GETOPT_LONG
702 help 702 help
703 Support long options for the wget applet. 703 Support long options for the wget applet.
704 704
705config CONFIG_ZCIP 705config ZCIP
706 bool "zcip" 706 bool "zcip"
707 default n 707 default n
708 select CONFIG_FEATURE_SYSLOG 708 select FEATURE_SYSLOG
709 help 709 help
710 ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927. 710 ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927.
711 It's a daemon that allocates and defends a dynamically assigned 711 It's a daemon that allocates and defends a dynamically assigned
diff --git a/networking/Kbuild b/networking/Kbuild
new file mode 100644
index 000000000..066475925
--- /dev/null
+++ b/networking/Kbuild
@@ -0,0 +1,38 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7lib-y:=
8lib-$(CONFIG_ARPING) += arping.o
9lib-$(CONFIG_DNSD) += dnsd.o
10lib-$(CONFIG_ETHER_WAKE) += ether-wake.o
11lib-$(CONFIG_FAKEIDENTD) += fakeidentd.o
12lib-$(CONFIG_FTPGET) += ftpgetput.o
13lib-$(CONFIG_FTPPUT) += ftpgetput.o
14lib-$(CONFIG_HOSTNAME) += hostname.o
15lib-$(CONFIG_HTTPD) += httpd.o
16lib-$(CONFIG_IFCONFIG) += ifconfig.o interface.o
17lib-$(CONFIG_IFUPDOWN) += ifupdown.o
18lib-$(CONFIG_INETD) += inetd.o
19lib-$(CONFIG_IP) += ip.o
20lib-$(CONFIG_IPCALC) += ipcalc.o
21lib-$(CONFIG_IPADDR) += ipaddr.o
22lib-$(CONFIG_IPLINK) += iplink.o
23lib-$(CONFIG_IPROUTE) += iproute.o
24lib-$(CONFIG_IPTUNNEL) += iptunnel.o
25lib-$(CONFIG_NAMEIF) += nameif.o
26lib-$(CONFIG_NC) += nc.o
27lib-$(CONFIG_NETSTAT) += netstat.o
28lib-$(CONFIG_NSLOOKUP) += nslookup.o
29lib-$(CONFIG_PING) += ping.o
30lib-$(CONFIG_PING6) += ping6.o
31lib-$(CONFIG_ROUTE) += route.o
32lib-$(CONFIG_TELNET) += telnet.o
33lib-$(CONFIG_TELNETD) += telnetd.o
34lib-$(CONFIG_TFTP) += tftp.o
35lib-$(CONFIG_TRACEROUTE) += traceroute.o
36lib-$(CONFIG_VCONFIG) += vconfig.o
37lib-$(CONFIG_WGET) += wget.o
38lib-$(CONFIG_ZCIP) += zcip.o
diff --git a/networking/Makefile b/networking/Makefile
deleted file mode 100644
index c3f2d79c9..000000000
--- a/networking/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/networking
14NETWORKING_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
23
diff --git a/networking/Makefile.in b/networking/Makefile.in
deleted file mode 100644
index 650fc1a4a..000000000
--- a/networking/Makefile.in
+++ /dev/null
@@ -1,70 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7NETWORKING_AR:=networking.a
8ifndef $(NETWORKING_DIR)
9NETWORKING_DIR:=$(top_builddir)/networking/
10endif
11srcdir=$(top_srcdir)/networking
12
13NETWORKING-y:=
14NETWORKING-$(CONFIG_ARPING) += arping.o
15NETWORKING-$(CONFIG_DNSD) += dnsd.o
16NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o
17NETWORKING-$(CONFIG_FAKEIDENTD) += fakeidentd.o
18NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o
19NETWORKING-$(CONFIG_FTPPUT) += ftpgetput.o
20NETWORKING-$(CONFIG_HOSTNAME) += hostname.o
21NETWORKING-$(CONFIG_HTTPD) += httpd.o
22NETWORKING-$(CONFIG_IFCONFIG) += ifconfig.o interface.o
23NETWORKING-$(CONFIG_IFUPDOWN) += ifupdown.o
24NETWORKING-$(CONFIG_INETD) += inetd.o
25NETWORKING-$(CONFIG_IP) += ip.o
26NETWORKING-$(CONFIG_IPCALC) += ipcalc.o
27NETWORKING-$(CONFIG_IPADDR) += ipaddr.o
28NETWORKING-$(CONFIG_IPLINK) += iplink.o
29NETWORKING-$(CONFIG_IPROUTE) += iproute.o
30NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o
31NETWORKING-$(CONFIG_NAMEIF) += nameif.o
32NETWORKING-$(CONFIG_NC) += nc.o
33NETWORKING-$(CONFIG_NETSTAT) += netstat.o
34NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o
35NETWORKING-$(CONFIG_PING) += ping.o
36NETWORKING-$(CONFIG_PING6) += ping6.o
37NETWORKING-$(CONFIG_ROUTE) += route.o
38NETWORKING-$(CONFIG_TELNET) += telnet.o
39NETWORKING-$(CONFIG_TELNETD) += telnetd.o
40NETWORKING-$(CONFIG_TFTP) += tftp.o
41NETWORKING-$(CONFIG_TRACEROUTE) += traceroute.o
42NETWORKING-$(CONFIG_VCONFIG) += vconfig.o
43NETWORKING-$(CONFIG_WGET) += wget.o
44NETWORKING-$(CONFIG_ZCIP) += zcip.o
45
46NETWORKING-y:=$(sort $(NETWORKING-y))
47ifneq ($(strip $(NETWORKING-y)),)
48libraries-y+=$(NETWORKING_DIR)$(NETWORKING_AR)
49endif
50
51NETWORKING_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(NETWORKING-y))
52NETWORKING_SRC-a:=$(wildcard $(srcdir)/*.c)
53APPLET_SRC-y+=$(NETWORKING_SRC-y)
54APPLET_SRC-a+=$(NETWORKING_SRC-a)
55
56LIBRARY_DEFINE-y+= -I$(top_srcdir)/networking
57LIBRARY_DEFINE-a+= -I$(top_srcdir)/networking
58
59needcrypt-y:=
60needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y
61
62ifeq ($(needcrypt-y),y)
63 LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES))
64endif
65
66$(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y))
67 $(do_ar)
68
69$(NETWORKING_DIR)%.o: $(srcdir)/%.c
70 $(compile.c)
diff --git a/networking/libiproute/Kbuild b/networking/libiproute/Kbuild
new file mode 100644
index 000000000..476374e19
--- /dev/null
+++ b/networking/libiproute/Kbuild
@@ -0,0 +1,58 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8lib-y:=
9lib-$(CONFIG_IP) += \
10 ip_parse_common_args.o \
11 ipaddress.o \
12 iplink.o \
13 iproute.o \
14 iptunnel.o \
15 libnetlink.o \
16 ll_addr.o \
17 ll_map.o \
18 ll_proto.o \
19 ll_types.o \
20 rt_names.o \
21 rtm_map.o \
22 utils.o
23
24lib-$(CONFIG_IPADDR) += \
25 ip_parse_common_args.o \
26 ipaddress.o \
27 libnetlink.o \
28 ll_addr.o \
29 ll_map.o \
30 ll_types.o \
31 rt_names.o \
32 utils.o
33
34lib-$(CONFIG_IPLINK) += \
35 ip_parse_common_args.o \
36 ipaddress.o \
37 iplink.o \
38 libnetlink.o \
39 ll_addr.o \
40 ll_map.o \
41 ll_types.o \
42 rt_names.o \
43 utils.o
44
45lib-$(CONFIG_IPROUTE) += \
46 ip_parse_common_args.o \
47 iproute.o \
48 libnetlink.o \
49 ll_map.o \
50 rt_names.o \
51 rtm_map.o \
52 utils.o
53
54lib-$(CONFIG_IPTUNNEL) += \
55 ip_parse_common_args.o \
56 iptunnel.o \
57 rt_names.o \
58 utils.o
diff --git a/networking/libiproute/Makefile b/networking/libiproute/Makefile
deleted file mode 100644
index 2fafae738..000000000
--- a/networking/libiproute/Makefile
+++ /dev/null
@@ -1,36 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18#
19
20ifndef top_srcdir
21top_srcdir=../..
22endif
23ifndef top_builddir
24top_builddir=../..
25endif
26srcdir=$(top_srcdir)/networking/libiproute
27LIBIPROUTE_DIR:=./
28include $(top_srcdir)/Rules.mak
29include $(top_builddir)/.config
30include Makefile.in
31all: $(libraries-y)
32-include $(top_builddir)/.depend
33
34clean:
35 rm -f *.o *.a $(AR_TARGET)
36
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in
deleted file mode 100644
index f713502b3..000000000
--- a/networking/libiproute/Makefile.in
+++ /dev/null
@@ -1,83 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8LIBIPROUTE_AR:=libiproute.a
9ifndef $(LIBIPROUTE_DIR)
10LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute
11endif
12srcdir=$(top_srcdir)/networking/libiproute
13
14LIBIPROUTE-y:=
15LIBIPROUTE-$(CONFIG_IP) += \
16 ip_parse_common_args.o \
17 ipaddress.o \
18 iplink.o \
19 iproute.o \
20 iptunnel.o \
21 libnetlink.o \
22 ll_addr.o \
23 ll_map.o \
24 ll_proto.o \
25 ll_types.o \
26 rt_names.o \
27 rtm_map.o \
28 utils.o
29
30LIBIPROUTE-$(CONFIG_IPADDR) += \
31 ip_parse_common_args.o \
32 ipaddress.o \
33 libnetlink.o \
34 ll_addr.o \
35 ll_map.o \
36 ll_types.o \
37 rt_names.o \
38 utils.o
39
40LIBIPROUTE-$(CONFIG_IPLINK) += \
41 ip_parse_common_args.o \
42 ipaddress.o \
43 iplink.o \
44 libnetlink.o \
45 ll_addr.o \
46 ll_map.o \
47 ll_types.o \
48 rt_names.o \
49 utils.o
50
51LIBIPROUTE-$(CONFIG_IPROUTE) += \
52 ip_parse_common_args.o \
53 iproute.o \
54 libnetlink.o \
55 ll_map.o \
56 rt_names.o \
57 rtm_map.o \
58 utils.o
59
60LIBIPROUTE-$(CONFIG_IPTUNNEL) += \
61 ip_parse_common_args.o \
62 iptunnel.o \
63 rt_names.o \
64 utils.o
65
66LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y))
67
68LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBIPROUTE-y)))
69LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c)
70LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y)
71LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a)
72
73LIBIPROUTE-obj:=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR)
74
75ifneq ($(strip $(LIBIPROUTE-y)),)
76libraries-y+=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR)
77endif
78
79$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)/%,$(LIBIPROUTE-y))
80 $(do_ar)
81
82$(LIBIPROUTE_DIR)/%.o: $(srcdir)/%.c
83 $(compile.c)
diff --git a/networking/udhcp/Config.in b/networking/udhcp/Config.in
index f01340192..13dbcee9c 100644
--- a/networking/udhcp/Config.in
+++ b/networking/udhcp/Config.in
@@ -3,7 +3,7 @@
3# see scripts/kbuild/config-language.txt. 3# see scripts/kbuild/config-language.txt.
4# 4#
5 5
6config CONFIG_APP_UDHCPD 6config APP_UDHCPD
7 bool "udhcp Server (udhcpd)" 7 bool "udhcp Server (udhcpd)"
8 default n 8 default n
9 help 9 help
@@ -12,10 +12,10 @@ config CONFIG_APP_UDHCPD
12 12
13 See http://udhcp.busybox.net for further details. 13 See http://udhcp.busybox.net for further details.
14 14
15config CONFIG_APP_DUMPLEASES 15config APP_DUMPLEASES
16 bool "Lease display utility (dumpleases)" 16 bool "Lease display utility (dumpleases)"
17 default n 17 default n
18 depends on CONFIG_APP_UDHCPD 18 depends on APP_UDHCPD
19 help 19 help
20 dumpleases displays the leases written out by the udhcpd server. 20 dumpleases displays the leases written out by the udhcpd server.
21 Lease times are stored in the file by time remaining in lease, or 21 Lease times are stored in the file by time remaining in lease, or
@@ -23,7 +23,7 @@ config CONFIG_APP_DUMPLEASES
23 23
24 See http://udhcp.busybox.net for further details. 24 See http://udhcp.busybox.net for further details.
25 25
26config CONFIG_APP_UDHCPC 26config APP_UDHCPC
27 bool "udhcp Client (udhcpc)" 27 bool "udhcp Client (udhcpc)"
28 default n 28 default n
29 help 29 help
@@ -35,21 +35,21 @@ config CONFIG_APP_UDHCPC
35 35
36 See http://udhcp.busybox.net for further details. 36 See http://udhcp.busybox.net for further details.
37 37
38config CONFIG_FEATURE_UDHCP_SYSLOG 38config FEATURE_UDHCP_SYSLOG
39 bool "Log udhcp messages to syslog" 39 bool "Log udhcp messages to syslog"
40 default n 40 default n
41 depends on CONFIG_APP_UDHCPD || CONFIG_APP_UDHCPC 41 depends on APP_UDHCPD || APP_UDHCPC
42 select CONFIG_FEATURE_SYSLOG 42 select FEATURE_SYSLOG
43 help 43 help
44 If not daemonized, udhcpd prints its messages to stdout/stderr. 44 If not daemonized, udhcpd prints its messages to stdout/stderr.
45 If this option is selected, it will also log them to syslog. 45 If this option is selected, it will also log them to syslog.
46 46
47 See http://udhcp.busybox.net for further details. 47 See http://udhcp.busybox.net for further details.
48 48
49config CONFIG_FEATURE_UDHCP_DEBUG 49config FEATURE_UDHCP_DEBUG
50 bool "Compile udhcp with noisy debugging messages" 50 bool "Compile udhcp with noisy debugging messages"
51 default n 51 default n
52 depends on CONFIG_APP_UDHCPD || CONFIG_APP_UDHCPC 52 depends on APP_UDHCPD || APP_UDHCPC
53 help 53 help
54 If selected, udhcpd will output extra debugging output. If using 54 If selected, udhcpd will output extra debugging output. If using
55 this option, compile uDHCP with "-g", and do not fork the daemon to 55 this option, compile uDHCP with "-g", and do not fork the daemon to
diff --git a/networking/udhcp/Kbuild b/networking/udhcp/Kbuild
new file mode 100644
index 000000000..90047c174
--- /dev/null
+++ b/networking/udhcp/Kbuild
@@ -0,0 +1,17 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8lib-y:=
9lib-$(CONFIG_APP_UDHCPC) += common.o options.o packet.o pidfile.o \
10 signalpipe.o socket.o
11lib-$(CONFIG_APP_UDHCPD) += common.o options.o packet.o pidfile.o \
12 signalpipe.o socket.o
13lib-$(CONFIG_APP_UDHCPC) += dhcpc.o clientpacket.o clientsocket.o \
14 script.o
15lib-$(CONFIG_APP_UDHCPD) += dhcpd.o arpping.o files.o leases.o \
16 serverpacket.o static_leases.o
17lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o
diff --git a/networking/udhcp/Makefile b/networking/udhcp/Makefile
deleted file mode 100644
index 23131f8f0..000000000
--- a/networking/udhcp/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
6
7#ifndef top_srcdir
8#top_srcdir=../..
9#endif
10#ifndef top_builddir
11#top_builddir=../..
12#endif
13srcdir=$(top_srcdir)/networking/udhcp
14UDHCP_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
23
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in
deleted file mode 100644
index cbc6f2b39..000000000
--- a/networking/udhcp/Makefile.in
+++ /dev/null
@@ -1,53 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8UDHCP_AR:=udhcp.a
9ifndef $(UDHCP_DIR)
10UDHCP_DIR:=$(top_builddir)/networking/udhcp/
11endif
12srcdir=$(top_srcdir)/networking/udhcp
13
14#ok, so I forgot how to do an or, but this is a quick and dirty hack
15ifeq ($(strip $(CONFIG_APP_UDHCPC)),y)
16CONFIG_UDHCP_SHARED=y
17else
18ifeq ($(strip $(CONFIG_APP_UDHCPD)),y)
19CONFIG_UDHCP_SHARED=y
20else
21CONFIG_UDHCP_SHARED=n
22endif
23endif
24
25UDHCP-y:=
26UDHCP-$(CONFIG_UDHCP_SHARED) += common.c options.c packet.c pidfile.c \
27 signalpipe.c socket.c
28UDHCP-$(CONFIG_APP_UDHCPC) += dhcpc.c clientpacket.c clientsocket.c \
29 script.c
30UDHCP-$(CONFIG_APP_UDHCPD) += dhcpd.c arpping.c files.c leases.c \
31 serverpacket.c static_leases.c
32UDHCP-$(CONFIG_APP_DUMPLEASES) += dumpleases.c
33UDHCP_OBJS:=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y))
34
35ifneq ($(strip $(UDHCP-y)),)
36libraries-y+=$(UDHCP_DIR)$(UDHCP_AR)
37endif
38
39UDHCP-y:=$(patsubst %,$(srcdir)/%,$(UDHCP-y))
40UDHCP-a:=$(wildcard $(srcdir)/*.c)
41APPLET_SRC-y+=$(UDHCP-y)
42APPLET_SRC-a+=$(UDHCP-a)
43
44UDHCP_INCLUDES:=$(srcdir)
45
46APPLETS_DEFINE-y+= -I$(UDHCP_INCLUDES)
47APPLETS_DEFINE-a+= -I$(UDHCP_INCLUDES)
48
49$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
50 $(do_ar)
51
52$(UDHCP_OBJS): $(UDHCP_DIR)%.o : $(srcdir)/%.c
53 $(compile.c)