Changeset 993
- Timestamp:
- 10/23/06 18:34:57 (6 years ago)
- Files:
-
- trunk/freewrt/package/busybox/Makefile (modified) (1 diff)
- trunk/freewrt/package/busybox/config/Config.in (modified) (23 diffs)
- trunk/freewrt/package/busybox/config/archival/Config.in (modified) (18 diffs)
- trunk/freewrt/package/busybox/config/console-tools/Config.in (modified) (2 diffs)
- trunk/freewrt/package/busybox/config/coreutils/Config.in (modified) (34 diffs)
- trunk/freewrt/package/busybox/config/debianutils/Config.in (modified) (3 diffs)
- trunk/freewrt/package/busybox/config/editors/Config.in (modified) (12 diffs)
- trunk/freewrt/package/busybox/config/findutils/Config.in (modified) (15 diffs)
- trunk/freewrt/package/busybox/config/init/Config.in (modified) (6 diffs)
- trunk/freewrt/package/busybox/config/loginutils/Config.in (modified) (3 diffs)
- trunk/freewrt/package/busybox/config/miscutils/Config.in (modified) (17 diffs)
- trunk/freewrt/package/busybox/config/modutils/Config.in (modified) (7 diffs)
- trunk/freewrt/package/busybox/config/networking/Config.in (modified) (41 diffs)
- trunk/freewrt/package/busybox/config/networking/udhcp/Config.in (modified) (5 diffs)
- trunk/freewrt/package/busybox/config/procps/Config.in (modified) (4 diffs)
- trunk/freewrt/package/busybox/config/shell/Config.in (modified) (28 diffs)
- trunk/freewrt/package/busybox/config/sysklogd/Config.in (modified) (5 diffs)
- trunk/freewrt/package/busybox/config/util-linux/Config.in (modified) (20 diffs)
- trunk/freewrt/package/busybox/patches/100-killall5.patch (modified) (5 diffs)
- trunk/freewrt/package/busybox/patches/110-telnetd.patch (modified) (5 diffs)
- trunk/freewrt/package/busybox/patches/140-unlink-passwd.patch (modified) (2 diffs)
- trunk/freewrt/package/busybox/patches/150-udhcp-release.patch (modified) (8 diffs)
- trunk/freewrt/package/busybox/patches/170-udhcp-options.patch (modified) (1 diff)
- trunk/freewrt/package/busybox/patches/180-telnetd_ipv6.patch (modified) (1 diff)
- trunk/freewrt/package/busybox/patches/190-ash_performance.patch (modified) (5 diffs)
- trunk/freewrt/package/busybox/patches/200-etc_crontabs.patch (modified) (2 diffs)
- trunk/freewrt/package/busybox/patches/210-passwd_limit.patch (modified) (1 diff)
- trunk/freewrt/package/busybox/patches/220-awk_bitops.patch (modified) (5 diffs)
- trunk/freewrt/package/busybox/patches/230-grep_C.patch (added)
- trunk/freewrt/package/busybox/patches/300-netmsg.patch (modified) (3 diffs)
- trunk/freewrt/package/busybox/patches/310-passwd_access.patch (modified) (3 diffs)
- trunk/freewrt/package/busybox/patches/320-httpd_address_binding.patch (modified) (4 diffs)
- trunk/freewrt/package/busybox/patches/330-httpd_user_agent.patch (modified) (3 diffs)
- trunk/freewrt/package/busybox/patches/340-lock_util.patch (modified) (3 diffs)
- trunk/freewrt/package/busybox/patches/350-ping-opt-srcaddr.patch (modified) (6 diffs)
- trunk/freewrt/package/busybox/patches/911-ipkg.patch (modified) (77 diffs)
- trunk/freewrt/package/busybox/patches/912-ipkg-no_warnings.patch (modified) (1 diff)
- trunk/freewrt/package/busybox/patches/913-libbb_hash.patch (modified) (10 diffs)
- trunk/freewrt/package/busybox/patches/914-ipkg-fixes.patch (modified) (1 diff)
- trunk/freewrt/package/busybox/patches/920-ifupdown-manual.patch (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/package/busybox/Makefile
r894 r993 8 8 9 9 PKG_NAME:= busybox 10 PKG_ RELEASE:= 511 PKG_ VERSION:= 1.1.312 PKG_MD5SUM:= 19a0b475169335f17e421cf644616fe710 PKG_VERSION:= 1.2.1 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 362b3dc0f2023ddfda901dc1f1a74391 13 13 PKG_INIT:= 60 14 14 trunk/freewrt/package/busybox/config/Config.in
r443 r993 4 4 # 5 5 6 #mainmenu "BusyBox Configuration" 6 7 7 8 config BUSYBOX_HAVE_DOT_CONFIG … … 13 14 menu "General Configuration" 14 15 16 config BUSYBOX_CONFIG_NITPICK 17 bool "See lots more (probably unnecessary) configuration options." 18 default n 19 help 20 Some BusyBox applets have more configuration options than anyone 21 will ever care about. To avoid drowining people in complexity, most 22 of the applet features that can be set to a sane default value are 23 hidden, unless you hit the above switch. 24 25 This is better than to telling people to edit the busybox source 26 code, but not by much. 27 28 See http://en.wikipedia.org/wiki/Fibber_McGee_and_Molly#The_Closet 29 30 You have been warned. 31 15 32 choice 16 33 prompt "Buffer allocation policy" 17 default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK 34 default BUSYBOX_CONFIG_FEATURE_BUFFERS_USE_MALLOC 35 depends on BUSYBOX_CONFIG_NITPICK 18 36 help 19 37 There are 3 ways BusyBox can handle buffer allocations: … … 37 55 endchoice 38 56 57 config BUSYBOX_CONFIG_SHOW_USAGE 58 bool "Show terse applet usage messages" 59 default y 60 help 61 All BusyBox applets will show help messages when invoked with 62 wrong arguments. You can turn off printing these terse usage 63 messages if you say no here. 64 This will save you up to 7k. 65 39 66 config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE 40 67 bool "Show verbose applet usage messages" 41 default y 68 default n 69 select BUSYBOX_CONFIG_SHOW_USAGE 42 70 help 43 71 All BusyBox applets will show more verbose help messages when … … 46 74 13k, but it can add much more depending on your configuration. 47 75 76 config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE 77 bool "Store applet usage messages in compressed form" 78 default y 79 depends on BUSYBOX_CONFIG_SHOW_USAGE && BUSYBOX_CONFIG_NITPICK 80 help 81 Store usage messages in compressed form, uncompress them on-the-fly 82 when <applet> --help is called. 83 84 If you have a really tiny busybox with few applets enabled (and 85 bunzip2 isn't one of them), the overhead of the decompressor might 86 be noticeable. Also, if you run executables directly from ROM 87 and have very little memory, this might not be a win. Otherwise, 88 you probably want this. 89 48 90 config BUSYBOX_CONFIG_FEATURE_INSTALLER 49 91 bool "Support --install [-s] to install applet links at runtime" … … 62 104 busybox to support locale settings. 63 105 64 config BUSYBOX_CONFIG_FEATURE_DEVFS 65 bool "Support for devfs" 66 default y 67 help 68 Enable if you want BusyBox to work with devfs. 106 config BUSYBOX_CONFIG_GETOPT_LONG 107 bool 108 default y 109 # bool "Enable support for --long-options" 110 # default n 111 # help 112 # Enable this if you want busybox applets to use the gnu --long-option 113 # style, in addition to single character -a -b -c style options. 69 114 70 115 config BUSYBOX_CONFIG_FEATURE_DEVPTS 71 116 bool "Use the devpts filesystem for Unix98 PTYs" 72 default y if BUSYBOX_CONFIG_FEATURE_DEVFS117 default y 73 118 help 74 119 Enable if you want BusyBox to use Unix98 PTY support. If enabled, … … 76 121 and /dev/pts/<number> for the slave side. Otherwise, BSD style 77 122 /dev/ttyp<number> will be used. To use this option, you should have 78 devpts or devfsmounted.123 devpts mounted. 79 124 80 125 config BUSYBOX_CONFIG_FEATURE_CLEAN_UP 81 126 bool "Clean up all memory before exiting (usually not needed)" 82 127 default n 128 depends on BUSYBOX_CONFIG_NITPICK 83 129 help 84 130 As a size optimization, busybox normally exits without explicitly … … 92 138 config BUSYBOX_CONFIG_FEATURE_SUID 93 139 bool "Support for SUID/SGID handling" 94 default y 95 help 96 Support SUID and SGID binaries. 140 default n 141 help 142 With this option you can install the busybox binary belonging 143 to root with the suid bit set, and it'll and it'll automatically drop 144 priviledges for applets that don't need root access. 145 146 If you're really paranoid and don't want to do this, build two 147 busybox binaries with different applets in them (and the appropriate 148 symlinks pointing to each binary), and only set the suid bit on the 149 one that needs it. The applets currently marked to need the suid bit 150 are login, passwd, su, ping, traceroute, crontab, dnsd, ipcrm, ipcs, 151 and vlock. 97 152 98 153 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG … … 101 156 depends on BUSYBOX_CONFIG_FEATURE_SUID 102 157 help 103 Allow the SUID / SGID state of an applet to be determined runtime by 104 checking /etc/busybox.conf. The format of this file is as follows: 158 Allow the SUID / SGID state of an applet to be determined at runtime 159 by checking /etc/busybox.conf. (This is sort of a poor man's sudo.) 160 The format of this file is as follows: 105 161 106 162 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) … … 129 185 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG_QUIET 130 186 bool "Suppress warning message if /etc/busybox.conf is not readable" 131 default n187 default y 132 188 depends on BUSYBOX_CONFIG_FEATURE_SUID_CONFIG 133 189 help … … 139 195 default n 140 196 help 141 Enable support for SE Linux in applets ls, ps, and id. Also provide142 the option of compiling in SE Linux applets.143 144 If you do not have a complete SE Linux Full Userland installed, this145 stuff will not compile.Go visit197 Enable support for SELinux in applets ls, ps, and id. Also provide 198 the option of compiling in SELinux applets. 199 200 If you do not have a complete SELinux userland installed, this stuff 201 will not compile. Go visit 146 202 http://www.nsa.gov/selinux/index.html 147 to download the necessary stuff to allow busybox to compile with this 148 option enabled. 203 to download the necessary stuff to allow busybox to compile with 204 this option enabled. Specifially, libselinux 1.28 or better is 205 directly required by busybox. If the installation is located in a 206 non-standard directory, provide it by invoking make as follows: 207 CFLAGS=-I<libselinux-include-path> \ 208 LDFLAGS=-L<libselinux-lib-path> \ 209 make 149 210 150 211 Most people will leave this set to 'N'. 212 213 config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH 214 string "Path to BusyBox executable" 215 default "/proc/self/exe" 216 help 217 When Busybox applets need to run other busybox applets, BusyBox 218 sometimes needs to exec() itself. When the /proc filesystem is 219 mounted, /proc/self/exe always points to the currently running 220 executable. If you haven't got /proc, set this to wherever you 221 want to run BusyBox from. 151 222 152 223 endmenu … … 168 239 Most people will leave this set to 'N'. 169 240 170 # The busybox shared library feature is there so make standalone can produce171 # smaller applets. Since make standalone isn't in yet, there's nothing using172 # this yet, and so it's disabled.173 config BUSYBOX_CONFIG_DISABLE_SHARED174 bool175 default n176 177 241 config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX 178 242 bool "Build shared libbusybox" 179 243 default n 180 depends on BUSYBOX_CONFIG_DISABLE_SHARED181 244 help 182 245 Build a shared library libbusybox.so which contains all 183 246 libraries used inside busybox. 184 247 248 This is an experimental feature intended to support the upcoming 249 "make standalone" mode. Enabling it against the one big busybox 250 binary serves no purpose (and increases the size). You should 251 almost certainly say "no" to this right now. 252 185 253 config BUSYBOX_CONFIG_FEATURE_FULL_LIBBUSYBOX 186 254 bool "Feature-complete libbusybox" 187 default n if ! CONFIG_FEATURE_SHARED_BUSYBOX255 default n if !BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX 188 256 depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX 189 257 help … … 204 272 config BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX 205 273 bool "Use shared libbusybox for busybox" 206 default nif BUSYBOX_CONFIG_BUILD_LIBBUSYBOX207 depends on ! CONFIG_STATIC && BUSYBOX_CONFIG_BUILD_LIBBUSYBOX274 default y if BUSYBOX_CONFIG_BUILD_LIBBUSYBOX 275 depends on !BUSYBOX_CONFIG_STATIC && BUSYBOX_CONFIG_BUILD_LIBBUSYBOX 208 276 help 209 277 Use libbusybox.so also for busybox itself. … … 211 279 212 280 config BUSYBOX_CONFIG_LFS 213 bool 281 bool "Build with Large File Support (for accessing files > 2 GB)" 214 282 default y 215 283 select BUSYBOX_FDISK_SUPPORT_LARGE_DISKS … … 223 291 224 292 config BUSYBOX_USING_CROSS_COMPILER 225 bool 293 bool "Do you want to build BusyBox with a Cross Compiler?" 226 294 default y 227 295 help … … 230 298 231 299 config BUSYBOX_CROSS_COMPILER_PREFIX 300 #string "Cross Compiler prefix" 232 301 string 233 302 default "mipsel-uclibc-" … … 240 309 which will ensure the correct compiler is used. 241 310 242 config BUSYBOX_EXTRA_CFLAGS_OPTIONS243 string244 default "-Os "245 help246 Do you want to pass any extra CFLAGS options to the compiler as247 you build BusyBox? If so, this is the option for you... For example,248 if you want to add some simple compiler switches (like -march=i686),249 or check for warnings using -Werror, just those options here.250 251 311 config BUSYBOX_CONFIG_BUILD_AT_ONCE 252 312 bool "Compile all sources at once" … … 273 333 274 334 config BUSYBOX_CONFIG_DEBUG 275 bool "Build BusyBox with Debugging symbols" 276 default n 277 help 278 Say Y here if you wish to compile BusyBox with debugging symbols. 279 This will allow you to use a debugger to examine BusyBox internals 280 while applets are running. This increases the size of the binary 281 considerably and should only be used when doing development. 282 If you are doing development and want to debug BusyBox, answer Y. 335 bool "Build BusyBox with extra Debugging symbols" 336 default n 337 help 338 Say Y here if you wish to examine BusyBox internals while applets are 339 running. This increases the size of the binary considerably, and 340 should only be used when doing development. If you are doing 341 development and want to debug BusyBox, answer Y. 283 342 284 343 Most people should answer N. 344 345 config BUSYBOX_CONFIG_DEBUG_PESSIMIZE 346 bool "Disable compiler optimizations." 347 default n 348 depends on BUSYBOX_CONFIG_DEBUG 349 help 350 The compiler's optimization of source code can eliminate and reorder 351 code, resulting in an executable that's hard to understand when 352 stepping through it with a debugger. This switches it off, resulting 353 in a much bigger executable that more closely matches the source 354 code. 285 355 286 356 choice … … 330 400 default y 331 401 help 332 This option will disable backwards compat ability with SuSv2,402 This option will disable backwards compatibility with SuSv2, 333 403 specifically, old-style numeric options ('command -1 <file>') 334 404 will not be supported in head, tail, and fold. (Note: should … … 345 415 Disable use of /usr. Don't activate this option if you don't know 346 416 that you really want this behaviour. 417 418 # we always want to use symlinks 419 config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS 420 bool 421 default y 347 422 348 423 #choice … … 351 426 # help 352 427 # Choose how you install applets links. 353 354 config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS 355 bool #"as soft-links" 356 default y 428 # 429 #config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS 430 # bool "as soft-links" 357 431 # help 358 432 # Install applets as soft-links to the busybox binary. This needs some 359 433 # free inodes on the filesystem, but might help with filesystem 360 434 # generators that can't cope with hard-links. 361 435 # 362 436 #config BUSYBOX_CONFIG_INSTALL_APPLET_HARDLINKS 363 437 # bool "as hard-links" … … 365 439 # Install applets as hard-links to the busybox binary. This might count 366 440 # on a filesystem with few inodes. 367 441 # 368 442 #config BUSYBOX_CONFIG_INSTALL_APPLET_DONT 369 443 # bool … … 373 447 # Do not install applets links. Usefull when using the -install feature 374 448 # or a standalone shell for rescue pruposes. 375 449 # 376 450 #endchoice 377 451 378 452 config BUSYBOX_PREFIX 379 string 453 string "BusyBox installation prefix" 380 454 default "./_install" 381 455 help … … 404 478 source package/busybox/config/networking/Config.in 405 479 source package/busybox/config/procps/Config.in 480 #source package/busybox/config/shell/Config.in 406 481 source package/busybox/config/sysklogd/Config.in trunk/freewrt/package/busybox/config/archival/Config.in
r1 r993 30 30 31 31 config BUSYBOX_CONFIG_FEATURE_AR_LONG_FILENAMES 32 bool " Enable support for long filenames (not need for debs)"32 bool "Enable support for long filenames (not need for debs)" 33 33 default n 34 34 depends on BUSYBOX_CONFIG_AR … … 41 41 config BUSYBOX_CONFIG_BUNZIP2 42 42 bool "bunzip2" 43 default y43 default n 44 44 help 45 45 bunzip2 is a compression utility using the Burrows-Wheeler block … … 90 90 91 91 config BUSYBOX_CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY 92 bool " extract only (-x)"92 bool "extract only (-x)" 93 93 default n 94 94 depends on BUSYBOX_CONFIG_DPKG_DEB … … 107 107 108 108 config BUSYBOX_CONFIG_FEATURE_GUNZIP_UNCOMPRESS 109 bool " Uncompress support"109 bool "Uncompress support" 110 110 default y 111 111 depends on BUSYBOX_CONFIG_GUNZIP … … 151 151 152 152 config BUSYBOX_CONFIG_FEATURE_TAR_CREATE 153 bool " Enable archive creation"153 bool "Enable archive creation" 154 154 default y 155 155 depends on BUSYBOX_CONFIG_TAR … … 159 159 160 160 config BUSYBOX_CONFIG_FEATURE_TAR_BZIP2 161 bool " Enable -j option to handle .tar.bz2 files"161 bool "Enable -j option to handle .tar.bz2 files" 162 162 default y 163 163 depends on BUSYBOX_CONFIG_TAR … … 167 167 168 168 config BUSYBOX_CONFIG_FEATURE_TAR_LZMA 169 bool " Enable -a option to handle .tar.lzma files"169 bool "Enable -a option to handle .tar.lzma files" 170 170 default n 171 171 depends on BUSYBOX_CONFIG_TAR … … 175 175 176 176 config BUSYBOX_CONFIG_FEATURE_TAR_FROM 177 bool " Enable -X (exclude from) and -T (include from) options)"177 bool "Enable -X (exclude from) and -T (include from) options)" 178 178 default y 179 179 depends on BUSYBOX_CONFIG_TAR … … 183 183 184 184 config BUSYBOX_CONFIG_FEATURE_TAR_GZIP 185 bool " Enable -z option"185 bool "Enable -z option" 186 186 default y 187 187 depends on BUSYBOX_CONFIG_TAR … … 191 191 192 192 config BUSYBOX_CONFIG_FEATURE_TAR_COMPRESS 193 bool " Enable -Z option"193 bool "Enable -Z option" 194 194 default n 195 195 depends on BUSYBOX_CONFIG_TAR … … 198 198 when extracting .tar.Z archives. 199 199 200 config BUSYBOX_CONFIG_FEATURE_TAR_OLDGNU_COMPAT ABILITY201 bool " Enable support for old tar header format"202 default n200 config BUSYBOX_CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY 201 bool "Enable support for old tar header format" 202 default N 203 203 depends on BUSYBOX_CONFIG_TAR 204 204 help … … 208 208 209 209 config BUSYBOX_CONFIG_FEATURE_TAR_GNU_EXTENSIONS 210 bool " Enable support for some GNU tar extensions"210 bool "Enable support for some GNU tar extensions" 211 211 default y 212 212 depends on BUSYBOX_CONFIG_TAR … … 216 216 217 217 config BUSYBOX_CONFIG_FEATURE_TAR_LONG_OPTIONS 218 bool " Enable long options"219 default n 220 depends on BUSYBOX_CONFIG_TAR 218 bool "Enable long options" 219 default n 220 depends on BUSYBOX_CONFIG_TAR && BUSYBOX_CONFIG_GETOPT_LONG 221 221 help 222 222 Enable use of long options, increases size by about 400 Bytes … … 245 245 246 246 config BUSYBOX_CONFIG_FEATURE_LZMA_FAST 247 bool " Optimze unlzma for speed"247 bool "Optimze unlzma for speed" 248 248 default n 249 249 depends on BUSYBOX_CONFIG_UNLZMA 250 250 help 251 This option reduce decompression time by about 33% at the cost of251 This option reduces decompression time by about 33% at the cost of 252 252 a 2K bigger binary. 253 253 … … 266 266 267 267 config BUSYBOX_CONFIG_FEATURE_UNARCHIVE_TAPE 268 bool " Enable tape drive support"268 bool "Enable tape drive support" 269 269 default n 270 270 depends on BUSYBOX_CONFIG_CPIO || BUSYBOX_CONFIG_TAR … … 276 276 277 277 config BUSYBOX_CONFIG_FEATURE_DEB_TAR_GZ 278 bool " gzip debian packages (normal)"279 default nif BUSYBOX_CONFIG_DPKG || BUSYBOX_CONFIG_DPKG_DEB278 bool "gzip debian packages (normal)" 279 default y if BUSYBOX_CONFIG_DPKG || BUSYBOX_CONFIG_DPKG_DEB 280 280 depends on BUSYBOX_CONFIG_DPKG || BUSYBOX_CONFIG_DPKG_DEB 281 281 help … … 285 285 286 286 config BUSYBOX_CONFIG_FEATURE_DEB_TAR_BZ2 287 bool " bzip2 debian packages"287 bool "bzip2 debian packages" 288 288 default n 289 289 depends on BUSYBOX_CONFIG_DPKG || BUSYBOX_CONFIG_DPKG_DEB … … 296 296 297 297 config BUSYBOX_CONFIG_FEATURE_DEB_TAR_LZMA 298 bool " lzma debian packages"298 bool "lzma debian packages" 299 299 default n 300 300 depends on BUSYBOX_CONFIG_DPKG || BUSYBOX_CONFIG_DPKG_DEB trunk/freewrt/package/busybox/config/console-tools/Config.in
r1 r993 66 66 like the current tty while logged in via telnet. 67 67 68 config BUSYBOX_CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS 69 bool "Enable long options" 70 default n 71 depends on BUSYBOX_CONFIG_SET_CONSOLE && BUSYBOX_CONFIG_GETOPT_LONG 72 help 73 Support long options for the setconsole applet. 74 68 75 config BUSYBOX_CONFIG_SETKEYCODES 69 76 bool "setkeycodes" … … 73 80 map, allowing unusual keyboards to generate usable keycodes. 74 81 82 config BUSYBOX_CONFIG_SETLOGCONS 83 bool "setlogcons" 84 default n 85 help 86 This program redirects the output console of kernel messages. 87 75 88 endmenu trunk/freewrt/package/busybox/config/coreutils/Config.in
r1 r993 27 27 output. Enable this option if you wish to enable the 'cat' utility. 28 28 29 config BUSYBOX_CONFIG_CATV 30 bool "catv" 31 default n 32 help 33 Display nonprinting characters as escape sequences (like some 34 implementations' cat -v option). 35 29 36 config BUSYBOX_CONFIG_CHGRP 30 37 bool "chgrp" … … 53 60 The default command is `/bin/sh'. 54 61 62 config BUSYBOX_CONFIG_CKSUM 63 bool "cksum" 64 default n 65 help 66 cksum is used to calculate the CRC32 checksum of a file. 67 55 68 config BUSYBOX_CONFIG_CMP 56 69 bool "cmp" … … 88 101 89 102 config BUSYBOX_CONFIG_FEATURE_DATE_ISOFMT 90 bool " Enable ISO date format output (-I)"103 bool "Enable ISO date format output (-I)" 91 104 default y 92 105 depends on BUSYBOX_CONFIG_DATE … … 103 116 while optionally performing conversions on it. 104 117 118 config BUSYBOX_CONFIG_FEATURE_DD_SIGNAL_HANDLING 119 bool "Enable DD signal handling for status reporting" 120 default y 121 depends on BUSYBOX_CONFIG_DD 122 help 123 sending a SIGUSR1 signal to a running `dd' process makes it 124 print to standard error the number of records read and written 125 so far, then to resume copying. 126 127 $ dd if=/dev/zero of=/dev/null& pid=$! $ kill -USR1 $pid; sleep 1; kill $pid 128 10899206+0 records in 10899206+0 records out 129 130 config BUSYBOX_CONFIG_FEATURE_DD_IBS_OBS 131 bool "Enable ibs, obs and conv options" 132 default n 133 depends on BUSYBOX_CONFIG_DD 134 help 135 Enables support for writing a certain number of bytes in and out, 136 at a time, and performing conversions on the data stream. 137 105 138 config BUSYBOX_CONFIG_DF 106 139 bool "df" … … 110 143 on filesystems. 111 144 145 config BUSYBOX_CONFIG_DIFF 146 bool "diff" 147 default n 148 help 149 diff compares two files or directories and outputs the 150 differences between them in a form that can be given to 151 the patch command. 152 153 config BUSYBOX_CONFIG_FEATURE_DIFF_BINARY 154 bool "Enable checks for binary files" 155 default y 156 depends on BUSYBOX_CONFIG_DIFF 157 help 158 This option enables support for checking for binary files 159 before a comparison is carried out. 160 161 config BUSYBOX_CONFIG_FEATURE_DIFF_DIR 162 bool "Enable directory support" 163 default y 164 depends on BUSYBOX_CONFIG_DIFF 165 help 166 This option enables support for directory and subdirectory 167 comparison. 168 169 config BUSYBOX_CONFIG_FEATURE_DIFF_MINIMAL 170 bool "Enable -d option to find smaller sets of changes" 171 default n 172 depends on BUSYBOX_CONFIG_DIFF 173 help 174 Enabling this option allows the use of -d to make diff 175 try hard to find the smallest possible set of changes. 176 112 177 config BUSYBOX_CONFIG_DIRNAME 113 178 bool "dirname" … … 126 191 config BUSYBOX_CONFIG_UNIX2DOS 127 192 bool 128 default n193 default y 129 194 depends on BUSYBOX_CONFIG_DOS2UNIX 195 help 196 unix2dos is used to convert a text file from UNIX format to 197 DOS format, and vice versa. 130 198 131 199 config BUSYBOX_CONFIG_DU … … 136 204 for specified files. 137 205 138 config BUSYBOX_CONFIG_FEATURE_DU_DEFA LT_BLOCKSIZE_1K139 bool " Use a default blocksize of 1024 bytes (1K)"206 config BUSYBOX_CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K 207 bool "Use a default blocksize of 1024 bytes (1K)" 140 208 default y 141 209 depends on BUSYBOX_CONFIG_DU … … 151 219 # this entry also appears in shell/Config.in, next to the echo builtin 152 220 config BUSYBOX_CONFIG_FEATURE_FANCY_ECHO 153 bool " Enable echo options (-n and -e)"221 bool "Enable echo options (-n and -e)" 154 222 default y 155 223 depends on BUSYBOX_CONFIG_ECHO … … 165 233 environment. 166 234 235 config BUSYBOX_CONFIG_FEATURE_ENV_LONG_OPTIONS 236 bool "Enable long options" 237 default n 238 depends on BUSYBOX_CONFIG_ENV && BUSYBOX_CONFIG_GETOPT_LONG 239 help 240 Support long options for the env applet. 241 167 242 config BUSYBOX_CONFIG_EXPR 168 243 bool "expr" … … 173 248 174 249 config BUSYBOX_CONFIG_EXPR_MATH_SUPPORT_64 175 bool " Extend Posix numbers support to 64 bit"250 bool "Extend Posix numbers support to 64 bit" 176 251 default n 177 252 depends on BUSYBOX_CONFIG_EXPR … … 201 276 202 277 config BUSYBOX_CONFIG_FEATURE_FANCY_HEAD 203 bool " Enable head options (-c, -q, and -v)"278 bool "Enable head options (-c, -q, and -v)" 204 279 default y 205 280 depends on BUSYBOX_CONFIG_HEAD … … 226 301 Copy files and set attributes. 227 302 303 config BUSYBOX_CONFIG_FEATURE_INSTALL_LONG_OPTIONS 304 bool "Enable long options" 305 default n 306 depends on BUSYBOX_CONFIG_INSTALL && BUSYBOX_CONFIG_GETOPT_LONG 307 help 308 Support long options for the install applet. 309 228 310 config BUSYBOX_CONFIG_LENGTH 229 311 bool "length" … … 251 333 252 334 config BUSYBOX_CONFIG_FEATURE_LS_FILETYPES 253 bool " Enable filetyping options (-p and -F)"335 bool "Enable filetyping options (-p and -F)" 254 336 default y 255 337 depends on BUSYBOX_CONFIG_LS … … 258 340 259 341 config BUSYBOX_CONFIG_FEATURE_LS_FOLLOWLINKS 260 bool " Enable symlinks dereferencing (-L)"342 bool "Enable symlinks dereferencing (-L)" 261 343 default y 262 344 depends on BUSYBOX_CONFIG_LS … … 265 347 266 348 config BUSYBOX_CONFIG_FEATURE_LS_RECURSIVE 267 bool " Enable recursion (-R)"349 bool "Enable recursion (-R)" 268 350 default y 269 351 depends on BUSYBOX_CONFIG_LS … … 272 354 273 355 config BUSYBOX_CONFIG_FEATURE_LS_SORTFILES 274 bool " Sort the file names"356 bool "Sort the file names" 275 357 default y 276 358 depends on BUSYBOX_CONFIG_LS … … 279 361 280 362 config BUSYBOX_CONFIG_FEATURE_LS_TIMESTAMPS 281 bool " Show file timestamps"363 bool "Show file timestamps" 282 364 default y 283 365 depends on BUSYBOX_CONFIG_LS … … 286 368 287 369 config BUSYBOX_CONFIG_FEATURE_LS_USERNAME 288 bool " Show username/groupnames"370 bool "Show username/groupnames" 289 371 default y 290 372 depends on BUSYBOX_CONFIG_LS … … 293 375 294 376 config BUSYBOX_CONFIG_FEATURE_LS_COLOR 295 bool " Allow use of color to identify file types"296 default y 297 depends on BUSYBOX_CONFIG_LS 377 bool "Allow use of color to identify file types" 378 default y 379 depends on BUSYBOX_CONFIG_LS && BUSYBOX_CONFIG_GETOPT_LONG 298 380 help 299 381 This enables the --color option to ls. 300 382 301 383 config BUSYBOX_CONFIG_FEATURE_LS_COLOR_IS_DEFAULT 302 bool " Produce colored ls output by default"384 bool "Produce colored ls output by default" 303 385 default y 304 386 depends on BUSYBOX_CONFIG_FEATURE_LS_COLOR … … 322 404 mkdir is used to create directories with the specified names. 323 405 406 config BUSYBOX_CONFIG_FEATURE_MKDIR_LONG_OPTIONS 407 bool "Enable long options" 408 default n 409 depends on BUSYBOX_CONFIG_MKDIR && BUSYBOX_CONFIG_GETOPT_LONG 410 help 411 Support long options for the mkdir applet. 412 324 413 config BUSYBOX_CONFIG_MKFIFO 325 414 bool "mkfifo" … … 342 431 mv is used to move or rename files or directories. 343 432 433 config BUSYBOX_CONFIG_FEATURE_MV_LONG_OPTIONS 434 bool "Enable long options" 435 default n 436 depends on BUSYBOX_CONFIG_MV && BUSYBOX_CONFIG_GETOPT_LONG 437 help 438 Support long options for the mv applet. 439 344 440 config BUSYBOX_CONFIG_NICE 345 441 bool "nice" … … 417 513 418 514 config BUSYBOX_CONFIG_FEATURE_FANCY_SLEEP 419 bool " Enable multiple integer args and optional time suffixes"515 bool "Enable multiple integer args and optional time suffixes" 420 516 default y 421 517 depends on BUSYBOX_CONFIG_SLEEP … … 430 526 431 527 config BUSYBOX_CONFIG_FEATURE_SORT_BIG 432 bool " full SuSv3 compliant sort (Support -ktcsbdfiozgM)"528 bool "full SuSv3 compliant sort (Support -ktcsbdfiozgM)" 433 529 default n 434 530 depends on BUSYBOX_CONFIG_SORT … … 448 544 449 545 config BUSYBOX_CONFIG_FEATURE_STAT_FORMAT 450 bool " Enable custom formats (-c)"546 bool "Enable custom formats (-c)" 451 547 default n 452 548 depends on BUSYBOX_CONFIG_STAT … … 482 578 483 579 config BUSYBOX_CONFIG_FEATURE_FANCY_TAIL 484 bool " Enable extra tail options (-q, -s, and -v)"580 bool "Enable extra tail options (-q, -s, and -v)" 485 581 default y 486 582 depends on BUSYBOX_CONFIG_TAIL … … 497 593 498 594 config BUSYBOX_CONFIG_FEATURE_TEE_USE_BLOCK_IO 499 bool " Enable block i/o (larger/faster) instead of byte i/o."595 bool "Enable block i/o (larger/faster) instead of byte i/o." 500 596 default y 501 597 depends on BUSYBOX_CONFIG_TEE … … 508 604 help 509 605 test is used to check file types and compare values, 510 returning an appropriate exit code. The shells (ash511 and bash) have test builtin.606 returning an appropriate exit code. The bash shell 607 has test built in, ash can build it in optionally. 512 608 513 609 config BUSYBOX_CONFIG_FEATURE_TEST_64 514 bool " Extend test to 64 bit"610 bool "Extend test to 64 bit" 515 611 default n 516 612 depends on BUSYBOX_CONFIG_TEST … … 533 629 534 630 config BUSYBOX_CONFIG_FEATURE_TR_CLASSES 535 bool " Enable character classes (such as [:upper:])"631 bool "Enable character classes (such as [:upper:])" 536 632 default n 537 633 depends on BUSYBOX_CONFIG_TR … … 541 637 542 638 config BUSYBOX_CONFIG_FEATURE_TR_EQUIV 543 bool " Enable equivalence classes"639 bool "Enable equivalence classes" 544 640 default n 545 641 depends on BUSYBOX_CONFIG_TR … … 611 707 config BUSYBOX_CONFIG_WHO 612 708 bool "who" 613 default n709 default y 614 710 select BUSYBOX_CONFIG_FEATURE_UTMP 615 711 help … … 634 730 635 731 config BUSYBOX_CONFIG_FEATURE_PRESERVE_HARDLINKS 636 bool " Preserve hard links"732 bool "Preserve hard links" 637 733 default y 638 734 depends on BUSYBOX_CONFIG_CP || BUSYBOX_CONFIG_MV … … 644 740 645 741 config BUSYBOX_CONFIG_FEATURE_AUTOWIDTH 646 bool " Calculate terminal & column widths"742 bool "Calculate terminal & column widths" 647 743 default y 648 744 depends on BUSYBOX_CONFIG_LS || BUSYBOX_CONFIG_MORE || BUSYBOX_CONFIG_TELNET … … 658 754 659 755 config BUSYBOX_CONFIG_FEATURE_HUMAN_READABLE 660 bool " Support for human readable output (example 13k, 23M, 235G)"756 bool "Support for human readable output (example 13k, 23M, 235G)" 661 757 default y 662 758 depends on BUSYBOX_CONFIG_DF || BUSYBOX_CONFIG_DU || BUSYBOX_CONFIG_LS … … 668 764 669 765 config BUSYBOX_CONFIG_FEATURE_MD5_SHA1_SUM_CHECK 670 bool " Enable -c, -s and -w options"766 bool "Enable -c, -s and -w options" 671 767 default y 672 768 depends on BUSYBOX_CONFIG_MD5SUM || BUSYBOX_CONFIG_SHA1SUM trunk/freewrt/package/busybox/config/debianutils/Config.in
r1 r993 26 26 27 27 config BUSYBOX_CONFIG_FEATURE_READLINK_FOLLOW 28 bool " Enable canonicalization by following all symlinks (-f)"28 bool "Enable canonicalization by following all symlinks (-f)" 29 29 default n 30 30 depends on BUSYBOX_CONFIG_READLINK … … 47 47 you can safely say N here. 48 48 49 config BUSYBOX_CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS 50 bool "Enable long options" 51 default n 52 depends on BUSYBOX_CONFIG_RUN_PARTS && BUSYBOX_CONFIG_GETOPT_LONG 53 help 54 Support long options for the run-parts applet. 55 49 56 config BUSYBOX_CONFIG_START_STOP_DAEMON 50 57 bool "start-stop-daemon" … … 54 61 termination of system-level processes, usually the ones 55 62 started during the startup of the system. 63 64 config BUSYBOX_CONFIG_FEATURE_START_STOP_DAEMON_FANCY 65 bool "Support additional arguments" 66 default y 67 depends on BUSYBOX_CONFIG_START_STOP_DAEMON 68 help 69 Support additional arguments. 70 -o|--oknodo ignored since we exit with 0 anyway 71 -v|--verbose 72 73 config BUSYBOX_CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS 74 bool "Enable long options" 75 default n 76 depends on BUSYBOX_CONFIG_START_STOP_DAEMON && BUSYBOX_CONFIG_GETOPT_LONG 77 help 78 Support long options for the start-stop-daemon applet. 56 79 57 80 config BUSYBOX_CONFIG_WHICH trunk/freewrt/package/busybox/config/editors/Config.in
r1 r993 14 14 15 15 config BUSYBOX_CONFIG_FEATURE_AWK_MATH 16 bool " Enable math functions (requires libm)"16 bool "Enable math functions (requires libm)" 17 17 default y 18 18 depends on BUSYBOX_CONFIG_AWK … … 20 20 Enable math functions of the Awk programming language. 21 21 NOTE: This will require libm to be present for linking. 22 23 config BUSYBOX_CONFIG_ED 24 bool "ed" 25 default n 26 help 27 The original 1970's Unix text editor, from the days of teletypes. 28 Small, simple, evil. Part of SUSv3. If you're not already using 29 this, you don't need it. 22 30 23 31 config BUSYBOX_CONFIG_PATCH … … 44 52 45 53 config BUSYBOX_CONFIG_FEATURE_VI_COLON 46 bool " Enable \":\" colon commands (no \"ex\" mode)"54 bool "Enable \":\" colon commands (no \"ex\" mode)" 47 55 default y 48 56 depends on BUSYBOX_CONFIG_VI … … 52 60 53 61 config BUSYBOX_CONFIG_FEATURE_VI_YANKMARK 54 bool " Enable yank/put commands and mark cmds"62 bool "Enable yank/put commands and mark cmds" 55 63 default y 56 64 depends on BUSYBOX_CONFIG_VI … … 60 68 61 69 config BUSYBOX_CONFIG_FEATURE_VI_SEARCH 62 bool " Enable search and replace cmds"70 bool "Enable search and replace cmds" 63 71 default y 64 72 depends on BUSYBOX_CONFIG_VI … … 68 76 69 77 config BUSYBOX_CONFIG_FEATURE_VI_USE_SIGNALS 70 bool " Catch signals"78 bool "Catch signals" 71 79 default y 72 80 depends on BUSYBOX_CONFIG_VI … … 77 85 78 86 config BUSYBOX_CONFIG_FEATURE_VI_DOT_CMD 79 bool " Remember previous cmd and \".\" cmd"87 bool "Remember previous cmd and \".\" cmd" 80 88 default y 81 89 depends on BUSYBOX_CONFIG_VI … … 84 92 85 93 config BUSYBOX_CONFIG_FEATURE_VI_READONLY 86 bool " Enable -R option and \"view\" mode"94 bool "Enable -R option and \"view\" mode" 87 95 default y 88 96 depends on BUSYBOX_CONFIG_VI … … 92 100 93 101 config BUSYBOX_CONFIG_FEATURE_VI_SETOPTS 94 bool " Enable set-able options, ai ic showmatch"102 bool "Enable set-able options, ai ic showmatch" 95 103 default y 96 104 depends on BUSYBOX_CONFIG_VI … … 99 107 100 108 config BUSYBOX_CONFIG_FEATURE_VI_SET 101 bool " Support for :set"109 bool "Support for :set" 102 110 default y 103 111 depends on BUSYBOX_CONFIG_VI … … 106 114 107 115 config BUSYBOX_CONFIG_FEATURE_VI_WIN_RESIZE 108 bool " Handle window resize"116 bool "Handle window resize" 109 117 default y 110 118 depends on BUSYBOX_CONFIG_VI … … 113 121 114 122 config BUSYBOX_CONFIG_FEATURE_VI_OPTIMIZE_CURSOR 115 bool " Optimize cursor movement"123 bool "Optimize cursor movement" 116 124 default y 117 125 depends on BUSYBOX_CONFIG_VI trunk/freewrt/package/busybox/config/findutils/Config.in
r1 r993 12 12 find is used to search your system to find specified files. 13 13 14 config BUSYBOX_CONFIG_FEATURE_FIND_PRINT0 15 bool "Enable -print0 option" 16 default y 17 depends on BUSYBOX_CONFIG_FIND 18 help 19 Causes output names to be separated by a null character 20 rather than a newline. This allows names that contain 21 newlines and other whitespace to be more easily 22 interpreted by other programs. 23 14 24 config BUSYBOX_CONFIG_FEATURE_FIND_MTIME 15 bool " Enable modified time matching (-mtime) option"16 default n25 bool "Enable modified time matching (-mtime) option" 26 default y 17 27 depends on BUSYBOX_CONFIG_FIND 18 28 help … … 21 31 22 32 config BUSYBOX_CONFIG_FEATURE_FIND_MMIN 23 bool " Enable modified time matching (-min) option"24 default n33 bool "Enable modified time matching (-min) option" 34 default y 25 35 depends on BUSYBOX_CONFIG_FIND 26 36 help … … 29 39 30 40 config BUSYBOX_CONFIG_FEATURE_FIND_PERM 31 bool " Enable permissions matching (-perm) option"41 bool "Enable permissions matching (-perm) option" 32 42 default y 33 43 depends on BUSYBOX_CONFIG_FIND … … 36 46 37 47 config BUSYBOX_CONFIG_FEATURE_FIND_TYPE 38 bool " Enable filetype matching (-type) option"48 bool "Enable filetype matching (-type) option" 39 49 default y 40 50 depends on BUSYBOX_CONFIG_FIND … … 44 54 45 55 config BUSYBOX_CONFIG_FEATURE_FIND_XDEV 46 bool " Enable stay in filesystem (-xdev) option"56 bool "Enable stay in filesystem (-xdev) option" 47 57 default y 48 58 depends on BUSYBOX_CONFIG_FIND … … 52 62 53 63 config BUSYBOX_CONFIG_FEATURE_FIND_NEWER 54 bool " Enable -newer option for comparing file mtimes"55 default n64 bool "Enable -newer option for comparing file mtimes" 65 default y 56 66 depends on BUSYBOX_CONFIG_FIND 57 67 help … … 60 70 61 71 config BUSYBOX_CONFIG_FEATURE_FIND_INUM 62 bool " Enable inode number matching (-inum) option"63 default n72 bool "Enable inode number matching (-inum) option" 73 default y 64 74 depends on BUSYBOX_CONFIG_FIND 65 75 help … … 67 77 68 78 config BUSYBOX_CONFIG_FEATURE_FIND_EXEC 69 bool " Enable (-exec) option allowing execution of commands"79 bool "Enable (-exec) option allowing execution of commands" 70 80 default y 71 81 depends on BUSYBOX_CONFIG_FIND … … 81 91 82 92 config BUSYBOX_CONFIG_FEATURE_GREP_EGREP_ALIAS 83 bool " Support extended regular expressions (egrep & grep -E)"93 bool "Support extended regular expressions (egrep & grep -E)" 84 94 default y 85 95 depends on BUSYBOX_CONFIG_GREP … … 90 100 91 101 config BUSYBOX_CONFIG_FEATURE_GREP_FGREP_ALIAS 92 bool " Alias fgrep to grep -F"102 bool "Alias fgrep to grep -F" 93 103 default y 94 104 depends on BUSYBOX_CONFIG_GREP … … 99 109 100 110 config BUSYBOX_CONFIG_FEATURE_GREP_CONTEXT 101 bool " Enable before and after context flags (-A, -B and -C)"111 bool "Enable before and after context flags (-A, -B and -C)" 102 112 default y 103 113 depends on BUSYBOX_CONFIG_GREP … … 115 125 116 126 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION 117 bool " Enable prompt and confirmation option -p"127 bool "Enable prompt and confirmation option -p" 118 128 default y 119 129 depends on BUSYBOX_CONFIG_XARGS … … 123 133 124 134 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_QUOTES 125 bool " Enable support single and double quotes and backslash"135 bool "Enable support single and double quotes and backslash" 126 136 default y 127 137 depends on BUSYBOX_CONFIG_XARGS … … 131 141 132 142 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT 133 bool " Enable support options -x"143 bool "Enable support options -x" 134 144 default y 135 145 depends on BUSYBOX_CONFIG_XARGS … … 139 149 140 150 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM 141 bool " Enable options -0"151 bool "Enable options -0" 142 152 default y 143 153 depends on BUSYBOX_CONFIG_XARGS trunk/freewrt/package/busybox/config/init/Config.in
r1 r993 12 12 init is the first program run when the system boots. 13 13 14 config BUSYBOX_CONFIG_DEBUG_INIT 15 bool "debugging aid" 16 default n 17 depends on BUSYBOX_CONFIG_INIT 18 help 19 Turn this on to disable all the dangerous 20 rebooting stuff when debugging. 21 14 22 config BUSYBOX_CONFIG_FEATURE_USE_INITTAB 15 bool " Support reading an inittab file"23 bool "Support reading an inittab file" 16 24 default y 17 25 depends on BUSYBOX_CONFIG_INIT … … 20 28 21 29 config BUSYBOX_CONFIG_FEATURE_INIT_SCTTY 22 bool " Support running commands with a controlling-tty"30 bool "Support running commands with a controlling-tty" 23 31 default n 24 32 depends on BUSYBOX_CONFIG_INIT … … 31 39 32 40 config BUSYBOX_CONFIG_FEATURE_EXTRA_QUIET 33 bool " Be _extra_ quiet on boot"41 bool "Be _extra_ quiet on boot" 34 42 default n 35 43 depends on BUSYBOX_CONFIG_INIT … … 38 46 39 47 config BUSYBOX_CONFIG_FEATURE_INIT_COREDUMPS 40 bool " Support dumping core for child processes (debugging only)"48 bool "Support dumping core for child processes (debugging only)" 41 49 default n 42 50 depends on BUSYBOX_CONFIG_INIT … … 50 58 51 59 config BUSYBOX_CONFIG_FEATURE_INITRD 52 bool " Support running init from within an initrd (not initramfs)"60 bool "Support running init from within an initrd (not initramfs)" 53 61 default n 54 62 depends on BUSYBOX_CONFIG_INIT … … 73 81 used to allow or disallow other users to write to your terminal 74 82 75 default y76 help77 Stop all processes and (try to) power off the system.78 79 83 endmenu 80 trunk/freewrt/package/busybox/config/loginutils/Config.in
r30 r993 85 85 86 86 config BUSYBOX_CONFIG_FEATURE_UTMP 87 bool " Support utmp file"87 bool "Support utmp file" 88 88 depends on BUSYBOX_CONFIG_GETTY || BUSYBOX_CONFIG_LOGIN || BUSYBOX_CONFIG_SU || BUSYBOX_CONFIG_WHO 89 89 default y … … 92 92 93 93 config BUSYBOX_CONFIG_FEATURE_WTMP 94 bool " Support wtmp file"94 bool "Support wtmp file" 95 95 depends on BUSYBOX_CONFIG_GETTY || BUSYBOX_CONFIG_LOGIN || BUSYBOX_CONFIG_SU || BUSYBOX_CONFIG_LAST 96 96 default n … … 111 111 112 112 config BUSYBOX_CONFIG_FEATURE_SECURETTY 113 bool " Support for /etc/securetty"113 bool "Support for /etc/securetty" 114 114 default n 115 115 depends on BUSYBOX_CONFIG_LOGIN trunk/freewrt/package/busybox/config/miscutils/Config.in
r1 r993 17 17 default n 18 18 help 19 The bbconfig applet will print the config file with which19 The bbconfig BUSYBOX_applet will print the config file with which 20 20 busybox was built. 21 21 … … 35 35 work properly. 36 36 37 config BUSYBOX_CONFIG_DEBUG_CROND_OPTION 38 bool "Support debug option -d" 39 depends on BUSYBOX_CONFIG_CROND 40 default n 41 help 42 Support option -d to enter debug mode. 43 37 44 config BUSYBOX_CONFIG_FEATURE_CROND_CALL_SENDMAIL 38 bool " Using /usr/sbin/sendmail?"45 bool "Using /usr/sbin/sendmail?" 39 46 default n 40 47 depends on BUSYBOX_CONFIG_CROND … … 58 65 59 66 config BUSYBOX_CONFIG_DEVFSD 60 bool "devfsd" 61 default n 62 help 67 bool "devfsd (obsolete)" 68 default n 69 help 70 This is deprecated, and will be going away in a future release. 71 63 72 Provides compatibility with old device names on a devfs systems. 64 73 You should set it to true if you have devfs enabled. … … 75 84 depends on BUSYBOX_CONFIG_DEVFSD 76 85 help 77 This actually doesn't work with busybox modutils but needs the real modutils. 86 This actually doesn't work with busybox modutils but needs 87 the external modutils. 78 88 79 89 config BUSYBOX_CONFIG_DEVFSD_FG_NP … … 92 102 Increases logging to stderr or syslog. 93 103 104 config BUSYBOX_CONFIG_FEATURE_DEVFS 105 bool " Use devfs names for all devices (obsolete)" 106 default n 107 help 108 This tells busybox to look for names like /dev/loop/0 instead of 109 /dev/loop0. If your /dev directory has normal names instead of 110 devfs names, you don't want this. 111 112 This is obsolete and will be going away someday. Consider it 113 deprecated. 114 94 115 config BUSYBOX_CONFIG_EJECT 95 116 bool "eject" … … 113 134 114 135 config BUSYBOX_CONFIG_FEATURE_LESS_BRACKETS 115 bool " Enable bracket searching"116 default n136 bool "Enable bracket searching" 137 default y 117 138 depends on BUSYBOX_CONFIG_LESS 118 139 help … … 121 142 122 143 config BUSYBOX_CONFIG_FEATURE_LESS_FLAGS 123 bool " Enable extra flags"124 default n144 bool "Enable extra flags" 145 default y 125 146 depends on BUSYBOX_CONFIG_LESS 126 147 help … … 131 152 132 153 config BUSYBOX_CONFIG_FEATURE_LESS_FLAGCS 133 bool " Enable flag changes"154 bool "Enable flag changes" 134 155 default n 135 156 depends on BUSYBOX_CONFIG_LESS … … 139 160 140 161 config BUSYBOX_CONFIG_FEATURE_LESS_MARKS 141 bool " Enable marks"162 bool "Enable marks" 142 163 default n 143 164 depends on BUSYBOX_CONFIG_LESS … … 146 167 147 168 config BUSYBOX_CONFIG_FEATURE_LESS_REGEXP 148 bool " Enable regular expressions"169 bool "Enable regular expressions" 149 170 default n 150 171 depends on BUSYBOX_CONFIG_LESS … … 158 179 Get/Set hard drive parameters. Primarily intended for ATA 159 180 drives. Adds about 13k (or around 30k if you enable the 160 BUSYBOX_CONFIG_FEATURE_HDPARM_GET_IDENTITY option)....181 CONFIG_FEATURE_HDPARM_GET_IDENTITY option).... 161 182 162 183 config BUSYBOX_CONFIG_FEATURE_HDPARM_GET_IDENTITY 163 bool " Support obtaining detailed information directly from drives"164 default n165 depends on BUSYBOX_CONFIG_HDPARM 166 help 167 Enables the -I and - Istdinoptions to obtain detailed information184 bool "Support obtaining detailed information directly from drives" 185 default y 186 depends on BUSYBOX_CONFIG_HDPARM 187 help 188 Enables the -I and -i options to obtain detailed information 168 189 directly from drives about their capabilities and supported ATA 169 feature set. Enabling this option will add about 16k... 190 feature set. If no device name is specified, hdparm will read 191 identify data from stdin. Enabling this option will add about 16k... 170 192 171 193 config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF 172 bool " Register an IDE interface (DANGEROUS)"194 bool "Register an IDE interface (DANGEROUS)" 173 195 default n 174 196 depends on BUSYBOX_CONFIG_HDPARM … … 178 200 179 201 config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF 180 bool " Un-register an IDE interface (DANGEROUS)"202 bool "Un-register an IDE interface (DANGEROUS)" 181 203 default n 182 204 depends on BUSYBOX_CONFIG_HDPARM … … 186 208 187 209 config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET 188 bool " perform device reset (DANGEROUS)"210 bool "perform device reset (DANGEROUS)" 189 211 default n 190 212 depends on BUSYBOX_CONFIG_HDPARM … … 194 216 195 217 config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF 196 bool " tristate device for hotswap (DANGEROUS)"218 bool "tristate device for hotswap (DANGEROUS)" 197 219 default n 198 220 depends on BUSYBOX_CONFIG_HDPARM … … 203 225 204 226 config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA 205 bool " get/set using_dma flag (DANGEROUS)"227 bool "get/set using_dma flag (DANGEROUS)" 206 228 default n 207 229 depends on BUSYBOX_CONFIG_HDPARM … … 232 254 . 233 255 'table' reads device properties from a file or stdin, allowing 234 a batch of unrelated devices to be ma kde with one command.256 a batch of unrelated devices to be made with one command. 235 257 User/group names are allowed as an alternative to uid/gid. 236 258 … … 289 311 help 290 312 setsid runs a program in a new session 313 314 config BUSYBOX_CONFIG_TASKSET 315 bool "taskset" 316 default n 317 help 318 Retrieve or set a processes's CPU affinity 319 320 config BUSYBOX_CONFIG_TASKSET 321 bool "taskset" 322 default n 323 help 324 Retrieve or set a processes's CPU affinity (on linux) 291 325 292 326 config BUSYBOX_CONFIG_TIME trunk/freewrt/package/busybox/config/modutils/Config.in
r1 r993 54 54 config BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL 55 55 bool "Symbols in load map" 56 default n56 default y 57 57 depends on BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP 58 58 help … … 85 85 default n 86 86 help 87 Handle the loading of modules, and their depend ancies on a high87 Handle the loading of modules, and their dependencies on a high 88 88 level. 89 89 … … 93 93 config BUSYBOX_CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS 94 94 bool "Multiple options parsing" 95 default n95 default y 96 96 depends on BUSYBOX_CONFIG_MODPROBE 97 97 help … … 112 112 config BUSYBOX_CONFIG_FEATURE_CHECK_TAINTED_MODULE 113 113 # Simulate indentation 114 bool " Support tainted module checking with new kernels"115 default n114 bool "Support tainted module checking with new kernels" 115 default y 116 116 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_LSMOD 117 117 help … … 123 123 config BUSYBOX_CONFIG_FEATURE_2_4_MODULES 124 124 # Simulate indentation 125 bool " Support version 2.2.x to 2.4.x Linux kernels"125 bool "Support version 2.2.x to 2.4.x Linux kernels" 126 126 default y 127 127 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD … … 131 131 config BUSYBOX_CONFIG_FEATURE_2_6_MODULES 132 132 # Simulate indentation 133 bool " Support version 2.6.x Linux kernels"133 bool "Support version 2.6.x Linux kernels" 134 134 default y 135 135 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD || BUSYBOX_CONFIG_MODPROBE … … 141 141 bool 142 142 default n 143 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && ! CONFIG_FEATURE_2_6_MODULES143 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && !BUSYBOX_CONFIG_FEATURE_2_6_MODULES 144 144 145 145 trunk/freewrt/package/busybox/config/networking/Config.in
r827 r993 10 10 default n 11 11 help 12 Enable IPv6 support to busybox. This makes applets that talk IP13 able to work with IPv6.12 Enable IPv6 support in busybox. 13 This adds IPv6 support in the networking applets. 14 14 15 15 config BUSYBOX_CONFIG_ARPING … … 35 35 default n 36 36 help 37 fakeidentd listens to the ident port and returns a set fake38 value whatever it gets.37 fakeidentd listens on the ident port and returns a predefined 38 fake value on any query. 39 39 40 40 config BUSYBOX_CONFIG_FTPGET … … 50 50 Store a remote file via FTP. 51 51 52 config BUSYBOX_CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS 53 bool "Enable long options in ftpget/ftpput" 54 default n 55 depends on BUSYBOX_CONFIG_GETOPT_LONG && (BUSYBOX_CONFIG_FTPGET || BUSYBOX_CONFIG_FTPPUT) 56 help 57 Support long options for the ftpget/ftpput applet. 58 52 59 config BUSYBOX_CONFIG_HOSTNAME 53 60 bool "hostname" … … 62 69 Serve web pages via an HTTP server. 63 70 64 config BUSYBOX_CONFIG_FEATURE_HTTPD_ USAGE_FROM_INETD_ONLY65 bool " Support using httpd only from inetd"71 config BUSYBOX_CONFIG_FEATURE_HTTPD_WITHOUT_INETD 72 bool "Support using httpd as a daemon (not from inetd)" 66 73 default n 67 74 depends on BUSYBOX_CONFIG_HTTPD 68 75 help 69 This option disables uid and port options for the httpd applet 70 but requires inetd server daemon. 71 72 config BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH 73 bool " Enable Basic http Authentication" 74 default y 75 depends on BUSYBOX_CONFIG_HTTPD 76 help 77 Utilizes password settings from /etc/httpd.conf for basic 78 authentication on a per url basis. 79 80 config BUSYBOX_CONFIG_FEATURE_HTTPD_AUTH_MD5 81 bool " Support MD5 crypted passwords for http Authentication" 82 default y 83 depends on BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH 84 help 85 Enables basic per url authentication from /etc/httpd.conf 86 using md5 passwords. 87 88 if !CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY 76 This option enables uid and port options for the httpd applet, 77 and eliminates the need to be called from the inetd server daemon. 78 89 79 config BUSYBOX_CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP 90 bool " Support reloading the global configfile using hup signal"91 default y92 depends on BUSYBOX_CONFIG_HTTPD 80 bool "Support reloading the global config BUSYBOX_file using hup signal" 81 default n 82 depends on BUSYBOX_CONFIG_HTTPD && BUSYBOX_CONFIG_FEATURE_HTTPD_WITHOUT_INETD 93 83 help 94 84 This option enables processing of SIGHUP to reload cached … … 96 86 97 87 config BUSYBOX_CONFIG_FEATURE_HTTPD_SETUID 98 bool " Enable support -u <user> option"99 default n 100 depends on BUSYBOX_CONFIG_HTTPD 88 bool "Enable support -u <user> option" 89 default n 90 depends on BUSYBOX_CONFIG_HTTPD && BUSYBOX_CONFIG_FEATURE_HTTPD_WITHOUT_INETD 101 91 help 102 92 This option allows the server to run as a specific user … … 104 94 Use of this option requires special privileges to change to a 105 95 different user. 106 endif 96 97 config BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH 98 bool "Enable Basic http Authentication" 99 default y 100 depends on BUSYBOX_CONFIG_HTTPD 101 help 102 Utilizes password settings from /etc/httpd.conf for basic 103 authentication on a per url basis. 104 105 config BUSYBOX_CONFIG_FEATURE_HTTPD_AUTH_MD5 106 bool "Support MD5 crypted passwords for http Authentication" 107 default y 108 depends on BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH 109 help 110 Enables basic per URL authentication from /etc/httpd.conf 111 using md5 passwords. 107 112 108 113 config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES 109 bool " Support loading additional MIME types at run-time"114 bool "Support loading additional MIME types at run-time" 110 115 default y 111 116 depends on BUSYBOX_CONFIG_HTTPD … … 115 120 116 121 config BUSYBOX_CONFIG_FEATURE_HTTPD_CGI 117 bool " Support Common Gateway Interface (CGI)"122 bool "Support Common Gateway Interface (CGI)" 118 123 default y 119 124 depends on BUSYBOX_CONFIG_HTTPD 120 125 help 121 126 This option allows scripts and executables to be invoked 122 when specific urls are requested.127 when specific URLs are requested. 123 128 124 129 config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR 125 bool " Enable support for running scripts through an interpreter"130 bool "Enable support for running scripts through an interpreter" 126 131 default n 127 132 depends on BUSYBOX_CONFIG_FEATURE_HTTPD_CGI 128 133 help 129 134 This option enables support for running scripts through an 130 interpreter. Turn this on ,if you want PHP scripts to work135 interpreter. Turn this on if you want PHP scripts to work 131 136 properly. You need to supply an addition line in your httpd 132 config file:137 config BUSYBOX_file: 133 138 *.php:/path/to/your/php 134 139 135 140 config BUSYBOX_CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV 136 bool " Support the REMOTE_PORT environment variable for CGI"141 bool "Support the REMOTE_PORT environment variable for CGI" 137 142 default y 138 143 depends on BUSYBOX_CONFIG_FEATURE_HTTPD_CGI … … 142 147 143 148 config BUSYBOX_CONFIG_FEATURE_HTTPD_ENCODE_URL_STR 144 bool " Enable the -e option for shell script CGI simplification."149 bool "Enable the -e option for shell script CGI simplification." 145 150 default y 146 151 depends on BUSYBOX_CONFIG_HTTPD 147 152 help 148 After set, this option allows html encoding arbitrary153 This option allows html encoding arbitrary 149 154 strings for display of the browser. Output goes to stdout. 150 155 For example, httpd -e "<Hello World>" as … … 155 160 default n 156 161 help 157 Ifconfig is used to configure the kernel-resident network interfaces.162 Ifconfig BUSYBOX_is used to configure the kernel-resident network interfaces. 158 163 159 164 config BUSYBOX_CONFIG_FEATURE_IFCONFIG_STATUS 160 bool " Enable status reporting output (+7k)"161 default n165 bool "Enable status reporting output (+7k)" 166 default y 162 167 depends on BUSYBOX_CONFIG_IFCONFIG 163 168 help 164 If ifconfig is called with no arguments it will display the status169 If ifconfig BUSYBOX_is called with no arguments it will display the status 165 170 of the currently active interfaces. 166 171 167 172 config BUSYBOX_CONFIG_FEATURE_IFCONFIG_SLIP 168 bool " Enable slip-specific options \"keepalive\" and \"outfill\""173 bool "Enable slip-specific options \"keepalive\" and \"outfill\"" 169 174 default n 170 175 depends on BUSYBOX_CONFIG_IFCONFIG … … 174 179 175 180 config BUSYBOX_CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ 176 bool " Enable options \"mem_start\", \"io_addr\", and \"irq\""181 bool "Enable options \"mem_start\", \"io_addr\", and \"irq\"" 177 182 default n 178 183 depends on BUSYBOX_CONFIG_IFCONFIG … … 182 187 183 188 config BUSYBOX_CONFIG_FEATURE_IFCONFIG_HW 184 bool " Enable option \"hw\" (ether only)"185 default n189 bool "Enable option \"hw\" (ether only)" 190 default y 186 191 depends on BUSYBOX_CONFIG_IFCONFIG 187 192 help … … 191 196 192 197 config BUSYBOX_CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS 193 bool " Set the broadcast automatically"198 bool "Set the broadcast automatically" 194 199 default n 195 200 depends on BUSYBOX_CONFIG_IFCONFIG 196 201 help 197 Setting this will make ifconfig attempt to find the broadcast202 Setting this will make ifconfig BUSYBOX_attempt to find the broadcast 198 203 automatically if the value '+' is used. 199 204 … … 206 211 use of either "ifconfig" and "route" or the "ip" command to actually 207 212 configure network interfaces. Therefore, you will probably also want 208 to enable either BUSYBOX_CONFIG_IFCONFIG and BUSYBOX_CONFIG_ROUTE, or enable209 BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IP and the various BUSYBOX_CONFIG_IP options. Of213 to enable either CONFIG_IFCONFIG and CONFIG_ROUTE, or enable 214 CONFIG_FEATURE_IFUPDOWN_IP and the various CONFIG_IP options. Of 210 215 course you could use non-busybox versions of these programs, so 211 216 against my better judgement (since this will surely result in plenty … … 216 221 217 222 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IP 218 bool " Use ip applet"223 bool "Use ip applet" 219 224 default y 220 225 depends on BUSYBOX_CONFIG_IFUPDOWN … … 224 229 225 230 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN 226 bool " Use busybox ip applet"231 bool "Use busybox ip applet" 227 232 default y 228 233 depends on BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IP … … 237 242 utility or the "ifup" and "ifdown" applets will not work. 238 243 244 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN 245 bool "Use busybox ifconfig BUSYBOX_and route applets" 246 default y 247 depends on BUSYBOX_CONFIG_IFUPDOWN && !BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IP 248 select BUSYBOX_CONFIG_IFCONFIG 249 select BUSYBOX_CONFIG_ROUTE 250 help 251 Use the busybox iproute "ifconfig" and "route" applets to 252 implement the "ifup" and "ifdown" utilities. 253 254 If leave this disabled, you must install the full-blown ifconfig 255 and route utilities, or the "ifup" and "ifdown" applets will not 256 work. 257 239 258 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IPV4 240 bool " Enable support for IPv4"259 bool "Enable support for IPv4" 241 260 default y 242 261 depends on BUSYBOX_CONFIG_IFUPDOWN … … 245 264 246 265 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IPV6 247 bool " Enable support for IPv6"248 default n 249 depends on BUSYBOX_CONFIG_IFUPDOWN 266 bool "Enable support for IPv6" 267 default n 268 depends on BUSYBOX_CONFIG_IFUPDOWN && BUSYBOX_CONFIG_FEATURE_IPV6 250 269 help 251 270 If you need support for IPv6, turn this option on. 252 271 253 272 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IPX 254 bool " Enable support for IPX"273 bool "Enable support for IPX" 255 274 default n 256 275 depends on BUSYBOX_CONFIG_IFUPDOWN … … 260 279 261 280 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_MAPPING 262 bool " Enable mapping support"281 bool "Enable mapping support" 263 282 default n 264 283 depends on BUSYBOX_CONFIG_IFUPDOWN … … 273 292 Internet superserver daemon 274 293 275 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_B ILTIN_ECHO276 bool " Support echo service"277 default n294 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO 295 bool "Support echo service" 296 default y 278 297 depends on BUSYBOX_CONFIG_INETD 279 298 help 280 299 Echo received data internal inetd service 281 300 282 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_B ILTIN_DISCARD283 bool " Support discard service"284 default n301 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD 302 bool "Support discard service" 303 default y 285 304 depends on BUSYBOX_CONFIG_INETD 286 305 help 287 306 Internet /dev/null internal inetd service 288 307 289 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_B ILTIN_TIME290 bool " Support time service"291 default n308 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME 309 bool "Support time service" 310 default y 292 311 depends on BUSYBOX_CONFIG_INETD 293 312 help 294 313 Return 32 bit time since 1900 internal inetd service 295 314 296 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_B ILTIN_DAYTIME297 bool " Support daytime service"298 default n315 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME 316 bool "Support daytime service" 317 default y 299 318 depends on BUSYBOX_CONFIG_INETD 300 319 help 301 320 Return human-readable time internal inetd service 302 321 303 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_B ILTIN_CHARGEN304 bool " Support chargen service"305 default n322 config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN 323 bool "Support chargen service" 324 default y 306 325 depends on BUSYBOX_CONFIG_INETD 307 326 help … … 309 328 310 329 config BUSYBOX_CONFIG_FEATURE_INETD_RPC 311 bool " Support RPC services"330 bool "Support RPC services" 312 331 default n 313 332 depends on BUSYBOX_CONFIG_INETD … … 318 337 config BUSYBOX_CONFIG_IP 319 338 bool "ip" 320 default y339 default n 321 340 help 322 341 The "ip" applet is a TCP/IP interface configuration and routing … … 324 343 TCP/IP. 325 344 326 if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPADDR 327 config BUSYBOX_CONFIG_FEATURE_IP_ADDRESS 328 default n 329 comment " address (forced enabled for ipaddr)" 330 endif 331 if ! (CONFIG_IP && BUSYBOX_CONFIG_IPADDR) 332 config BUSYBOX_CONFIG_FEATURE_IP_ADDRESS 333 bool " address" 334 default n 335 depends on BUSYBOX_CONFIG_IP 336 help 337 Address manipulation support for the "ip" applet. 338 endif 339 340 if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPLINK 341 config BUSYBOX_CONFIG_FEATURE_IP_LINK 342 default n 343 comment " link (forced enabled for iplink)" 344 endif 345 if !(CONFIG_IP && BUSYBOX_CONFIG_IPLINK) 346 config BUSYBOX_CONFIG_FEATURE_IP_LINK 347 bool " link" 348 default n 349 depends on BUSYBOX_CONFIG_IP 350 help 351 Configure network devices with "ip". 352 endif 353 354 if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPROUTE 355 config BUSYBOX_CONFIG_FEATURE_IP_ROUTE 356 default n 357 comment " route (forced enabled for iproute)" 358 endif 359 if !(CONFIG_IP && BUSYBOX_CONFIG_IPROUTE) 360 config BUSYBOX_CONFIG_FEATURE_IP_ROUTE 361 bool " route" 362 default n 363 depends on BUSYBOX_CONFIG_IP 364 help 365 Add support for routing table management to "ip". 366 endif 367 368 if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPTUNNEL 369 config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL 370 default n 371 comment " tunnel (forced enabled for iptunnel)" 372 endif 373 if !(CONFIG_IP && BUSYBOX_CONFIG_IPTUNNEL) 374 config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL 375 bool " tunnel" 376 default n 377 depends on BUSYBOX_CONFIG_IP 378 help 379 Add support for tunneling commands to "ip". 380 endif 345 config BUSYBOX_CONFIG_FEATURE_IP_ADDRESS 346 bool "ip address" 347 default y 348 depends on BUSYBOX_CONFIG_IP 349 help 350 Address manipulation support for the "ip" applet. 351 352 config BUSYBOX_CONFIG_FEATURE_IP_LINK 353 bool "ip link" 354 default y 355 depends on BUSYBOX_CONFIG_IP 356 help 357 Configure network devices with "ip". 358 359 config BUSYBOX_CONFIG_FEATURE_IP_ROUTE 360 bool "ip route" 361 default y 362 depends on BUSYBOX_CONFIG_IP 363 help 364 Add support for routing table management to "ip". 365 366 config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL 367 bool "ip tunnel" 368 default n 369 depends on BUSYBOX_CONFIG_IP 370 help 371 Add support for tunneling commands to "ip". 372 373 config BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS 374 bool "Support short forms of ip commands." 375 default n 376 depends on BUSYBOX_CONFIG_IP 377 help 378 Also support short-form of ip <OBJECT> commands: 379 ip addr -> ipaddr 380 ip link -> iplink 381 ip route -> iproute 382 ip tunnel -> iptunnel 383 384 Say N unless you desparately need the short form of the ip 385 object commands. 386 387 config BUSYBOX_CONFIG_IPADDR 388 bool 389 default y 390 depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_ADDRESS 391 392 config BUSYBOX_CONFIG_IPLINK 393 bool 394 default y 395 depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_LINK 396 397 config BUSYBOX_CONFIG_IPROUTE 398 bool 399 default y 400 depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_ROUTE 401 402 config BUSYBOX_CONFIG_IPTUNNEL 403 bool 404 default y 405 depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_TUNNEL 381 406 382 407 config BUSYBOX_CONFIG_IPCALC … … 388 413 389 414 config BUSYBOX_CONFIG_FEATURE_IPCALC_FANCY 390 bool " Fancy IPCALC, more options, adds 1 kbyte"391 default n415 bool "Fancy IPCALC, more options, adds 1 kbyte" 416 default y 392 417 depends on BUSYBOX_CONFIG_IPCALC 393 418 help 394 419 Adds the options hostname, prefix and silent to the output of "ipcalc". 395 420 396 config BUSYBOX_CONFIG_IPADDR 397 bool "ipaddr" 398 default y 399 help 400 Equivalent to selecting address support to "ip", above. 401 402 config BUSYBOX_CONFIG_IPLINK 403 bool "iplink" 404 default y 405 help 406 Equivalent to selecting link support to "ip", above. 407 408 config BUSYBOX_CONFIG_IPROUTE 409 bool "iproute" 410 default y 411 help 412 Equivalent to selecting route support to "ip", above. 413 414 config BUSYBOX_CONFIG_IPTUNNEL 415 bool "iptunnel" 416 default y 417 help 418 Equivalent to selecting tunnel support to "ip", above. 421 config BUSYBOX_CONFIG_FEATURE_IPCALC_LONG_OPTIONS 422 bool "Enable long options" 423 default n 424 depends on BUSYBOX_CONFIG_IPCALC && BUSYBOX_CONFIG_GETOPT_LONG 425 help 426 Support long options for the ipcalc applet. 419 427 420 428 config BUSYBOX_CONFIG_NAMEIF … … 473 481 474 482 config BUSYBOX_CONFIG_FEATURE_FANCY_PING 475 bool " Enable fancy ping output"483 bool "Enable fancy ping output" 476 484 default y 477 485 depends on BUSYBOX_CONFIG_PING … … 488 496 489 497 config BUSYBOX_CONFIG_FEATURE_FANCY_PING6 490 bool " Enable fancy ping6 output"491 default n498 bool "Enable fancy ping6 output" 499 default y 492 500 depends on BUSYBOX_CONFIG_PING6 493 501 help … … 509 517 510 518 config BUSYBOX_CONFIG_FEATURE_TELNET_TTYPE 511 bool " Pass TERM type to remote host"519 bool "Pass TERM type to remote host" 512 520 default y 513 521 depends on BUSYBOX_CONFIG_TELNET … … 518 526 519 527 config BUSYBOX_CONFIG_FEATURE_TELNET_AUTOLOGIN 520 bool " Pass USER type to remote host"528 bool "Pass USER type to remote host" 521 529 default n 522 530 depends on BUSYBOX_CONFIG_TELNET … … 541 549 Note that for busybox telnetd to work you need several things: 542 550 First of all, your kernel needs: 543 BUSYBOX_CONFIG_UNIX98_PTYS=y544 BUSYBOX_CONFIG_DEVPTS_FS=y551 CONFIG_UNIX98_PTYS=y 552 CONFIG_DEVPTS_FS=y 545 553 546 554 Next, you need a /dev/pts directory on your root filesystem: … … 559 567 mount -t devpts devpts /dev/pts 560 568 561 You need to be sure that Busybox has BUSYBOX_CONFIG_LOGIN and562 BUSYBOX_CONFIG_FEATURE_SUID enabled. And finally, you should make569 You need to be sure that Busybox has CONFIG_LOGIN and 570 CONFIG_FEATURE_SUID enabled. And finally, you should make 563 571 certain that Busybox has been installed setuid root: 564 572 … … 570 578 571 579 config BUSYBOX_CONFIG_FEATURE_TELNETD_INETD 572 bool " Support call from inetd only"580 bool "Support call from inetd only" 573 581 default n 574 582 depends on BUSYBOX_CONFIG_TELNETD … … 586 594 587 595 config BUSYBOX_CONFIG_FEATURE_TFTP_GET 588 bool " Enable \"get\" command"589 default n596 bool "Enable \"get\" command" 597 default y 590 598 depends on BUSYBOX_CONFIG_TFTP 591 599 help … … 594 602 595 603 config BUSYBOX_CONFIG_FEATURE_TFTP_PUT 596 bool " Enable \"put\" command"597 default n604 bool "Enable \"put\" command" 605 default y 598 606 depends on BUSYBOX_CONFIG_TFTP 599 607 help … … 602 610 603 611 config BUSYBOX_CONFIG_FEATURE_TFTP_BLOCKSIZE 604 bool " Enable \"blocksize\" command"612 bool "Enable \"blocksize\" command" 605 613 default n 606 614 depends on BUSYBOX_CONFIG_TFTP … … 608 616 Allow the client to specify the desired block size for transfers. 609 617 610 config BUSYBOX_CONFIG_ FEATURE_TFTP_DEBUG611 bool " Enable debug"618 config BUSYBOX_CONFIG_DEBUG_TFTP 619 bool "Enable debug" 612 620 default n 613 621 depends on BUSYBOX_CONFIG_TFTP … … 624 632 625 633 config BUSYBOX_CONFIG_FEATURE_TRACEROUTE_VERBOSE 626 bool " Enable verbose output"634 bool "Enable verbose output" 627 635 default y 628 636 depends on BUSYBOX_CONFIG_TRACEROUTE … … 632 640 633 641 config BUSYBOX_CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE 634 bool " Enable loose source route"642 bool "Enable loose source route" 635 643 default n 636 644 depends on BUSYBOX_CONFIG_TRACEROUTE … … 640 648 641 649 config BUSYBOX_CONFIG_FEATURE_TRACEROUTE_USE_ICMP 642 bool " Use ICMP instead of UDP"643 default n650 bool "Use ICMP instead of UDP" 651 default y 644 652 depends on BUSYBOX_CONFIG_TRACEROUTE 645 653 help 646 654 Add feature to allow for ICMP ECHO instead of UDP datagrams. 647 655 656 source package/busybox/config/networking/udhcp/Config.in 648 657 649 658 config BUSYBOX_CONFIG_VCONFIG … … 661 670 662 671 config BUSYBOX_CONFIG_FEATURE_WGET_STATUSBAR 663 bool " Enable a nifty process meter (+2k)"672 bool "Enable a nifty process meter (+2k)" 664 673 default y 665 674 depends on BUSYBOX_CONFIG_WGET … … 668 677 669 678 config BUSYBOX_CONFIG_FEATURE_WGET_AUTHENTICATION 670 bool " Enable HTTP authentication"679 bool "Enable HTTP authentication" 671 680 default y 672 681 depends on BUSYBOX_CONFIG_WGET … … 675 684 676 685 config BUSYBOX_CONFIG_FEATURE_WGET_IP6_LITERAL 677 bool " Enable IPv6 literal addresses"678 default n679 depends on BUSYBOX_CONFIG_WGET 686 bool "Enable IPv6 literal addresses" 687 default y 688 depends on BUSYBOX_CONFIG_WGET && BUSYBOX_CONFIG_FEATURE_IPV6 680 689 help 681 690 Support IPv6 address literal notation in URLs. 682 691 683 source package/busybox/config/networking/udhcp/Config.in 692 config BUSYBOX_CONFIG_FEATURE_WGET_LONG_OPTIONS 693 bool "Enable long options" 694 default n 695 depends on BUSYBOX_CONFIG_WGET && BUSYBOX_CONFIG_GETOPT_LONG 696 help 697 Support long options for the wget applet. 684 698 685 699 config BUSYBOX_CONFIG_ZCIP … … 695 709 696 710 endmenu 697 trunk/freewrt/package/busybox/config/networking/udhcp/Config.in
r1 r993 6 6 menu "udhcp Server/Client" 7 7 8 config BUSYBOX_CONFIG_ UDHCPD8 config BUSYBOX_CONFIG_APP_UDHCPD 9 9 bool "udhcp Server (udhcpd)" 10 10 default n … … 15 15 See http://udhcp.busybox.net for further details. 16 16 17 config BUSYBOX_CONFIG_ UDHCPC17 config BUSYBOX_CONFIG_APP_UDHCPC 18 18 bool "udhcp Client (udhcpc)" 19 19 default y … … 27 27 See http://udhcp.busybox.net for further details. 28 28 29 config BUSYBOX_CONFIG_ DUMPLEASES29 config BUSYBOX_CONFIG_APP_DUMPLEASES 30 30 bool "Lease display utility (dumpleases)" 31 31 default n 32 depends on BUSYBOX_CONFIG_ UDHCPD32 depends on BUSYBOX_CONFIG_APP_UDHCPD 33 33 help 34 34 dumpleases displays the leases written out by the udhcpd server. … … 41 41 bool " Log udhcp messages to syslog (instead of stdout)" 42 42 default n 43 depends on BUSYBOX_CONFIG_ UDHCPD || BUSYBOX_CONFIG_UDHCPC43 depends on BUSYBOX_CONFIG_APP_UDHCPD || BUSYBOX_CONFIG_APP_UDHCPC 44 44 help 45 45 If selected, udhcpd will log all its messages to syslog, otherwise, … … 51 51 bool " Compile udhcp with noisy debugging messages" 52 52 default n 53 depends on BUSYBOX_CONFIG_ UDHCPD || BUSYBOX_CONFIG_UDHCPC53 depends on BUSYBOX_CONFIG_APP_UDHCPD || BUSYBOX_CONFIG_APP_UDHCPC 54 54 help 55 55 If selected, udhcpd will output extra debugging output. If using trunk/freewrt/package/busybox/config/procps/Config.in
r1 r993 52 52 53 53 config BUSYBOX_CONFIG_FEATURE_PIDOF_SINGLE 54 bool " Enable argument for single shot (-s)"54 bool "Enable argument for single shot (-s)" 55 55 default n 56 56 depends on BUSYBOX_CONFIG_PIDOF … … 59 59 60 60 config BUSYBOX_CONFIG_FEATURE_PIDOF_OMIT 61 bool " Enable argument for omitting pids (-o)"61 bool "Enable argument for omitting pids (-o)" 62 62 default n 63 63 depends on BUSYBOX_CONFIG_PIDOF … … 74 74 75 75 config BUSYBOX_CONFIG_FEATURE_PS_WIDE 76 bool " Enable argument for wide output (-w)"76 bool "Enable argument for wide output (-w)" 77 77 default n 78 78 depends on BUSYBOX_CONFIG_PS … … 103 103 104 104 config BUSYBOX_CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE 105 bool " Support showing CPU usage percentage (add 2k bytes)"105 bool "Support showing CPU usage percentage (add 2k bytes)" 106 106 default y 107 107 depends on BUSYBOX_CONFIG_TOP trunk/freewrt/package/busybox/config/shell/Config.in
r443 r993 3 3 comment " built-in shells: ash, hush, lash, msh" 4 4 depends !FWRT_PACKAGE_BUSYBOX 5 # 6 # For a description of the syntax of this configuration file, 7 # see scripts/kbuild/config-language.txt. 8 # 9 # 10 #menu "Shells" 11 # 12 #choice 13 # prompt "Choose your default shell" 14 # default BUSYBOX_CONFIG_FEATURE_SH_IS_NONE 15 # help 16 # Choose a shell. The ash shell is the most bash compatible 17 # and full featured one. 18 # 19 #config BUSYBOX_CONFIG_FEATURE_SH_IS_ASH 20 # select BUSYBOX_CONFIG_ASH 21 # bool "ash" 22 # 23 #config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH 24 # select BUSYBOX_CONFIG_HUSH 25 # bool "hush" 26 # 27 #config BUSYBOX_CONFIG_FEATURE_SH_IS_LASH 28 # select BUSYBOX_CONFIG_LASH 29 # bool "lash" 30 # 31 #config BUSYBOX_CONFIG_FEATURE_SH_IS_MSH 32 # select BUSYBOX_CONFIG_MSH 33 # bool "msh" 34 # 35 #config BUSYBOX_CONFIG_FEATURE_SH_IS_NONE 36 # bool "none" 37 # 38 #endchoice 5 39 6 40 config BUSYBOX_CONFIG_ASH 7 bool "ash ............................... default featured shell"41 bool "ash" 8 42 default y 9 43 depends FWRT_PACKAGE_BUSYBOX … … 15 49 shell (by Herbert Xu), which was created by porting the 'ash' shell 16 50 (written by Kenneth Almquist) from NetBSD. 17 FreeWRT needs a working /bin/ash in all cases; if you do not select18 busybox ash make sure you enable mksh to run as /bin/ash below.19 51 20 52 comment "Ash Shell Options" … … 22 54 23 55 config BUSYBOX_CONFIG_ASH_JOB_CONTROL 24 bool " EnableJob control"56 bool "Job control" 25 57 default y 26 58 depends on BUSYBOX_CONFIG_ASH … … 29 61 30 62 config BUSYBOX_CONFIG_ASH_READ_NCHARS 31 bool " Enable'read -n N' and 'read -s' support"63 bool "'read -n N' and 'read -s' support" 32 64 default n 33 65 depends on BUSYBOX_CONFIG_ASH … … 37 69 38 70 config BUSYBOX_CONFIG_ASH_READ_TIMEOUT 39 bool " Enable'read -t S' support."40 default y71 bool "'read -t S' support." 72 default n 41 73 depends on BUSYBOX_CONFIG_ASH 42 74 help … … 46 78 47 79 config BUSYBOX_CONFIG_ASH_ALIAS 48 bool " Enablealias support"80 bool "alias support" 49 81 default y 50 82 depends on BUSYBOX_CONFIG_ASH … … 53 85 54 86 config BUSYBOX_CONFIG_ASH_MATH_SUPPORT 55 bool " EnablePosix math support"87 bool "Posix math support" 56 88 default y 57 89 depends on BUSYBOX_CONFIG_ASH … … 60 92 61 93 config BUSYBOX_CONFIG_ASH_MATH_SUPPORT_64 62 bool " Extend Posix math support to 64 bit"94 bool "Extend Posix math support to 64 bit" 63 95 default n 64 96 depends on BUSYBOX_CONFIG_ASH_MATH_SUPPORT … … 69 101 70 102 config BUSYBOX_CONFIG_ASH_GETOPTS 71 bool " Enable getopts builtinto parse positional parameters"103 bool "Builtin getopt to parse positional parameters" 72 104 default y 73 105 depends on BUSYBOX_CONFIG_ASH … … 75 107 Enable getopts builtin in the ash shell. 76 108 109 config BUSYBOX_CONFIG_ASH_BUILTIN_ECHO 110 bool "Builtin version of 'echo'" 111 default y 112 select BUSYBOX_CONFIG_ECHO 113 depends on BUSYBOX_CONFIG_ASH 114 help 115 Enable support for echo, built in to ash. 116 117 config BUSYBOX_CONFIG_ASH_BUILTIN_TEST 118 bool "Builtin version of 'test'" 119 default y 120 select BUSYBOX_CONFIG_TEST 121 depends on BUSYBOX_CONFIG_ASH 122 help 123 Enable support for test, built in to ash. 124 77 125 config BUSYBOX_CONFIG_ASH_CMDCMD 78 bool " Enable cmdcmd to override shell builtins"126 bool "'command' command to override shell builtins" 79 127 default y 80 128 depends on BUSYBOX_CONFIG_ASH … … 84 132 even when there is an ash builtin command with the same name. 85 133 86 config BUSYBOX_CONFIG_ASH_BUILTIN_ECHO87 bool " Enable builtin version of 'echo'"88 default y89 depends on BUSYBOX_CONFIG_ASH90 help91 Enable support for echo, built in to ash.92 93 # this entry also appears in coreutils/Config.in, next to the echo applet94 config BUSYBOX_CONFIG_FEATURE_FANCY_ECHO95 bool " Enable echo options (-n and -e)"96 default y97 depends on BUSYBOX_CONFIG_ASH_BUILTIN_ECHO98 help99 This adds options (-n and -e) to echo.100 101 134 config BUSYBOX_CONFIG_ASH_MAIL 102 bool " Check for new mail on interactive shells"135 bool "Check for new mail on interactive shells" 103 136 default n 104 137 depends on BUSYBOX_CONFIG_ASH … … 107 140 108 141 config BUSYBOX_CONFIG_ASH_OPTIMIZE_FOR_SIZE 109 bool " Optimize for size instead of speed"142 bool "Optimize for size instead of speed" 110 143 default y 111 144 depends on BUSYBOX_CONFIG_ASH … … 114 147 115 148 config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT 116 bool " Enable pseudorandom generator and variable $RANDOM"149 bool "Pseudorandom generator and variable $RANDOM" 117 150 default n 118 151 depends on BUSYBOX_CONFIG_ASH … … 125 158 126 159 config BUSYBOX_CONFIG_ASH_EXPAND_PRMT 127 bool " Expand prompt string"160 bool "Expand prompt string" 128 161 default n 129 162 depends on BUSYBOX_CONFIG_ASH … … 134 167 135 168 config BUSYBOX_CONFIG_HUSH 136 bool "hush.............................. small bourne-compatible shell" 137 default n 138 depends FWRT_PACKAGE_BUSYBOX 169 bool "hush" 170 default n 139 171 select BUSYBOX_CONFIG_TRUE 140 172 select BUSYBOX_CONFIG_FALSE … … 152 184 153 185 config BUSYBOX_CONFIG_LASH 154 bool "lash.............................. smallest shell" 155 default n 156 depends FWRT_PACKAGE_BUSYBOX 186 bool "lash" 187 default n 157 188 select BUSYBOX_CONFIG_TRUE 158 189 select BUSYBOX_CONFIG_FALSE … … 168 199 169 200 config BUSYBOX_CONFIG_MSH 170 bool "msh............................... Minix shell" 171 default n 172 depends FWRT_PACKAGE_BUSYBOX 201 bool "msh" 202 default n 173 203 select BUSYBOX_CONFIG_TRUE 174 204 select BUSYBOX_CONFIG_FALSE … … 182 212 It also uses only vfork, so it can be used on uClinux systems. 183 213 184 comment " busyboxBourne Shell Options"214 comment "Bourne Shell Options" 185 215 depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH 186 216 187 217 config BUSYBOX_CONFIG_FEATURE_SH_EXTRA_QUIET 188 bool " Hide message on interactive shell startup"218 bool "Hide message on interactive shell startup" 189 219 default n 190 220 depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH … … 193 223 194 224 config BUSYBOX_CONFIG_FEATURE_SH_STANDALONE_SHELL 195 bool " Standalone shell"225 bool "Standalone shell" 196 226 default n 197 227 depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH … … 200 230 in preference to executables in the PATH whenever possible. For 201 231 example, entering the command 'ifconfig' into the shell would cause 202 busybox to use the ifconfig busybox applet. Specifying the fully232 busybox to use the ifconfig BUSYBOX_busybox applet. Specifying the fully 203 233 qualified executable name, such as '/sbin/ifconfig' will still 204 execute the /sbin/ifconfig executable on the filesystem. This option234 execute the /sbin/ifconfig BUSYBOX_executable on the filesystem. This option 205 235 is generally used when creating a statically linked version of busybox 206 236 for use as a rescue shell, in the event that you screw up your system. 237 238 Note that this will *also* cause applets to take precedence 239 over shell builtins of the same name. So turning this on will 240 eliminate any performance gained by turning on the builtin "echo" 241 and "test" commands in ash. 207 242 208 243 Note that when using this option, the shell will attempt to directly … … 212 247 213 248 config BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING 214 bool " command line editing"249 bool "Command line editing" 215 250 default y 216 251 depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH … … 219 254 220 255 config BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING_VI 221 bool " vi-style line editing commands"256 bool "vi-style line editing commands" 222 257 default n 223 258 depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING … … 227 262 228 263 config BUSYBOX_CONFIG_FEATURE_COMMAND_HISTORY 229 int " history size"264 int "History size" 230 265 default 15 231 266 depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING … … 234 269 235 270 config BUSYBOX_CONFIG_FEATURE_COMMAND_SAVEHISTORY 236 bool " history saving"271 bool "History saving" 237 272 default n 238 273 depends on BUSYBOX_CONFIG_ASH && BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING … … 241 276 242 277 config BUSYBOX_CONFIG_FEATURE_COMMAND_TAB_COMPLETION 243 bool " tab completion"278 bool "Tab completion" 244 279 default y 245 280 depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING … … 248 283 249 284 config BUSYBOX_CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION 250 bool " username completion"285 bool "Username completion" 251 286 default n 252 287 depends on BUSYBOX_CONFIG_FEATURE_COMMAND_TAB_COMPLETION … … 255 290 256 291 config BUSYBOX_CONFIG_FEATURE_SH_FANCY_PROMPT 257 bool " Fancy shell prompts"292 bool "Fancy shell prompts" 258 293 default y 259 294 depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING … … 261 296 Setting this option allows for prompts to use things like \w and 262 297 \$ and also using escape codes. 298 299 #endmenu trunk/freewrt/package/busybox/config/sysklogd/Config.in
r1 r993 22 22 23 23 config BUSYBOX_CONFIG_FEATURE_ROTATE_LOGFILE 24 bool " Rotate message files"24 bool "Rotate message files" 25 25 default y 26 26 depends on BUSYBOX_CONFIG_SYSLOGD … … 30 30 31 31 config BUSYBOX_CONFIG_FEATURE_REMOTE_LOG 32 bool " Remote Log support"32 bool "Remote Log support" 33 33 default y 34 34 depends on BUSYBOX_CONFIG_SYSLOGD … … 44 44 45 45 config BUSYBOX_CONFIG_FEATURE_IPC_SYSLOG 46 bool " Circular Buffer support"46 bool "Circular Buffer support" 47 47 default y 48 48 depends on BUSYBOX_CONFIG_SYSLOGD … … 66 66 67 67 config BUSYBOX_CONFIG_LOGREAD 68 bool " logread"68 bool "logread" 69 69 default y 70 70 depends on BUSYBOX_CONFIG_FEATURE_IPC_SYSLOG … … 76 76 77 77 config BUSYBOX_CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING 78 bool " logread double buffering"78 bool "logread double buffering" 79 79 default n 80 80 depends on BUSYBOX_CONFIG_LOGREAD trunk/freewrt/package/busybox/config/util-linux/Config.in
r1 r993 28 28 29 29 config BUSYBOX_CONFIG_FEATURE_FBSET_FANCY 30 bool " Turn on extra fbset options"30 bool "Turn on extra fbset options" 31 31 default n 32 32 depends on BUSYBOX_CONFIG_FBSET … … 38 38 39 39 config BUSYBOX_CONFIG_FEATURE_FBSET_READMODE 40 bool " Turn on fbset readmode support"40 bool "Turn on fbset readmode support" 41 41 default n 42 42 depends on BUSYBOX_CONFIG_FBSET 43 43 help 44 44 This option allows fbset to read the video mode database stored by 45 default n/etc/fb.modes, which can be used to set frame buffer45 default as /etc/fb.modes, which can be used to set frame buffer 46 46 device to pre-defined video modes. 47 47 … … 74 74 75 75 config BUSYBOX_FDISK_SUPPORT_LARGE_DISKS 76 bool 76 bool "support over 4GB disks" 77 77 default y 78 78 depends on BUSYBOX_CONFIG_FDISK … … 81 81 82 82 config BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE 83 bool " Write support"84 default n83 bool "Write support" 84 default y 85 85 depends on BUSYBOX_CONFIG_FDISK 86 86 help … … 90 90 91 91 config BUSYBOX_CONFIG_FEATURE_AIX_LABEL 92 bool " Support AIX disklabels"92 bool "Support AIX disklabels" 93 93 default n 94 94 depends on BUSYBOX_CONFIG_FDISK && BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE … … 98 98 99 99 config BUSYBOX_CONFIG_FEATURE_SGI_LABEL 100 bool " Support SGI disklabels"100 bool "Support SGI disklabels" 101 101 default n 102 102 depends on BUSYBOX_CONFIG_FDISK && BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE … … 106 106 107 107 config BUSYBOX_CONFIG_FEATURE_SUN_LABEL 108 bool " Support SUN disklabels"108 bool "Support SUN disklabels" 109 109 default n 110 110 depends on BUSYBOX_CONFIG_FDISK && BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE … … 114 114 115 115 config BUSYBOX_CONFIG_FEATURE_OSF_LABEL 116 bool " Support BSD disklabels"116 bool "Support BSD disklabels" 117 117 default n 118 118 depends on BUSYBOX_CONFIG_FDISK && BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE … … 122 122 123 123 config BUSYBOX_CONFIG_FEATURE_FDISK_ADVANCED 124 bool " Support expert mode"124 bool "Support expert mode" 125 125 default n 126 126 depends on BUSYBOX_CONFIG_FDISK && BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE … … 165 165 166 166 config BUSYBOX_CONFIG_FEATURE_MINIX2 167 bool " Support Minix fs v2 (fsck_minix/mkfs_minix)"168 default n167 bool "Support Minix fs v2 (fsck_minix/mkfs_minix)" 168 default y 169 169 depends on BUSYBOX_CONFIG_FSCK_MINIX || BUSYBOX_CONFIG_MKFS_MINIX 170 170 help … … 200 200 correct time when Linux is _not_ running. 201 201 202 config BUSYBOX_CONFIG_FEATURE_HWCLOCK_LONG OPTIONS203 bool " Support long options (--hctosys,...)"204 default n 205 depends on BUSYBOX_CONFIG_HWCLOCK 202 config BUSYBOX_CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS 203 bool "Support long options (--hctosys,...)" 204 default n 205 depends on BUSYBOX_CONFIG_HWCLOCK && BUSYBOX_CONFIG_GETOPT_LONG 206 206 help 207 207 By default, the hwclock utility only uses short options. If you … … 210 210 211 211 config BUSYBOX_CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS 212 bool " Use FHS /var/lib/hwclock/adjtime"213 default n212 bool "Use FHS /var/lib/hwclock/adjtime" 213 default y 214 214 depends on BUSYBOX_CONFIG_HWCLOCK 215 215 help … … 256 256 257 257 config BUSYBOX_CONFIG_FEATURE_MDEV_CONF 258 bool " Support /etc/mdev.conf"258 bool "Support /etc/mdev.conf" 259 259 default n 260 260 depends on BUSYBOX_CONFIG_MDEV 261 261 help 262 The mdev config file contains lines that look like:262 The mdev config BUSYBOX_file contains lines that look like: 263 263 264 264 hd[a-z][0-9]* 0:3 660 265 265 266 266 That's device name (with regex match), uid:gid, and permissions. 267 268 Optionally, that can be followed (on the same line) by an asterisk269 and a command line to run after creating the corresponding device(s),270 ala:271 272 hdc root:cdrom 660 *ln -s hdc cdrom273 267 274 268 Config file parsing stops on the first matching line. If no config 275 269 entry is matched, devices are created with default 0:0 660. (Make 276 270 the last line match .* to override this.) 271 272 config BUSYBOX_CONFIG_FEATURE_MDEV_EXEC 273 bool "Support command execution at device addition/removal" 274 default n 275 depends on BUSYBOX_CONFIG_FEATURE_MDEV_CONF 276 help 277 This adds support for an optional field to /etc/mdev.conf, consisting 278 of a special character and a command line to run after creating the 279 corresponding device(s) and before removing, ala: 280 281 hdc root:cdrom 660 *ln -s $MDEV cdrom 282 283 The $MDEV environment variable is set to the name of the device. 284 285 The special characters and their meanings are: 286 @ Run after creating the device. 287 $ Run before removing the device. 288 * Run both after creating and before removing the device. 289 290 Commands are executed via system() so you need /bin/sh, meaning you 291 probably want to select a default shell in the Shells menu. 277 292 278 293 config BUSYBOX_CONFIG_MKSWAP … … 289 304 the swap space using the 'swapon' utility. 290 305 306 config BUSYBOX_CONFIG_FEATURE_MKSWAP_V0 307 bool "version 0 support" 308 default n 309 depends on BUSYBOX_CONFIG_MKSWAP 310 # depends on BUSYBOX_CONFIG_MKSWAP && BUSYBOX_CONFIG_DEPRECATED 311 help 312 Enable support for the old v0 style. 313 If your kernel is older than 2.1.117, then v0 support is the 314 only option. 315 291 316 config BUSYBOX_CONFIG_MORE 292 317 bool "more" … … 300 325 301 326 config BUSYBOX_CONFIG_FEATURE_USE_TERMIOS 302 bool " Use termios to manipulate the screen"327 bool "Use termios to manipulate the screen" 303 328 default y 304 329 depends on BUSYBOX_CONFIG_MORE … … 322 347 323 348 config BUSYBOX_CONFIG_FEATURE_MOUNT_NFS 324 bool " Support mounting NFS file systems"349 bool "Support mounting NFS file systems" 325 350 default y 326 351 depends on BUSYBOX_CONFIG_MOUNT … … 404 429 405 430 config BUSYBOX_CONFIG_FEATURE_UMOUNT_ALL 406 bool " umount -a option"431 bool "umount -a option" 407 432 default y 408 433 depends on BUSYBOX_CONFIG_UMOUNT … … 414 439 415 440 config BUSYBOX_CONFIG_FEATURE_MOUNT_LOOP 416 bool " Support loopback mounts"441 bool "Support loopback mounts" 417 442 default y 418 443 depends on BUSYBOX_CONFIG_MOUNT || BUSYBOX_CONFIG_UMOUNT … … 430 455 431 456 config BUSYBOX_CONFIG_FEATURE_MTAB_SUPPORT 432 bool " Support for the old /etc/mtab file"433 default n 434 depends on BUSYBOX_CONFIG_MOUNT || BUSYBOX_CONFIG_UMOUNT457 bool "Support for the old /etc/mtab file" 458 default n 459 depends on CONFIG_MOUNT || CONFIG_UMOUNT 435 460 help 436 461 Historically, Unix systems kept track of the currently mounted … … 446 471 features like separate per-process filesystem namespaces, requires 447 472 that your /etc directory be writeable, tends to get easily confused 448 by --bind or --move mounts, and so on. (In brief: avoid.) 473 by --bind or --move mounts, won't update if you rename a directory 474 that contains a mount point, and so on. (In brief: avoid.) 475 476 About the only reason to use this is if you've removed /proc from 477 your kernel. 449 478 450 479 endmenu trunk/freewrt/package/busybox/patches/100-killall5.patch
r1 r993 1 diff - Nur busybox-1.1.1/include/applets.h busybox-1.1.1-owrt/include/applets.h2 --- busybox-1. 1.1/include/applets.h 2006-03-22 22:16:24.000000000 +01003 +++ busybox-1. 1.1-owrt/include/applets.h 2006-04-01 18:23:43.000000000 +02004 @@ -15 4,6 +154,7 @@5 USE_IPTUNNEL(APPLET(iptunnel, iptunnel_main,_BB_DIR_BIN, _BB_SUID_NEVER))6 USE_KILL(APPLET(kill, kill_main,_BB_DIR_BIN, _BB_SUID_NEVER))7 USE_KILLALL(APPLET (killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER))8 +USE_KILLALL5(APPLET (killall5, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER))9 USE_KLOGD(APPLET(klogd, klogd_main,_BB_DIR_SBIN, _BB_SUID_NEVER))10 USE_LASH(APPLET(lash, lash_main,_BB_DIR_BIN, _BB_SUID_NEVER))11 USE_LAST(APPLET(last, last_main,_BB_DIR_USR_BIN, _BB_SUID_NEVER))12 diff - Nur busybox-1.1.1/include/usage.h busybox-1.1.1-owrt/include/usage.h13 --- busybox-1. 1.1/include/usage.h 2006-03-22 22:16:24.000000000 +010014 +++ busybox-1. 1.1-owrt/include/usage.h 2006-04-01 18:22:53.000000000 +020015 @@ -15 98,6 +1598,13 @@1 diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h 2 --- busybox-1.2.0-old/include/applets.h 2006-07-01 00:42:10.000000000 +0200 3 +++ busybox-1.2.0-new/include/applets.h 2006-07-31 00:29:34.000000000 +0200 4 @@ -157,6 +157,7 @@ 5 USE_IPTUNNEL(APPLET(iptunnel, _BB_DIR_BIN, _BB_SUID_NEVER)) 6 USE_KILL(APPLET(kill, _BB_DIR_BIN, _BB_SUID_NEVER)) 7 USE_KILLALL(APPLET_ODDNAME(killall, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall)) 8 +USE_KILLALL5(APPLET_ODDNAME(killall5, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall5)) 9 USE_KLOGD(APPLET(klogd, _BB_DIR_SBIN, _BB_SUID_NEVER)) 10 USE_LASH(APPLET(lash, _BB_DIR_BIN, _BB_SUID_NEVER)) 11 USE_LAST(APPLET(last, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 12 diff -ruN busybox-1.2.0-old/include/usage.h busybox-1.2.0-new/include/usage.h 13 --- busybox-1.2.0-old/include/usage.h 2006-07-01 00:42:10.000000000 +0200 14 +++ busybox-1.2.0-new/include/usage.h 2006-07-31 00:25:57.000000000 +0200 15 @@ -1503,6 +1503,13 @@ 16 16 #define killall_example_usage \ 17 17 "$ killall apache\n" … … 27 27 "[-c n] [-n]" 28 28 #define klogd_full_usage \ 29 diff - Nur busybox-1.1.1/procps/Config.in busybox-1.1.1-owrt/procps/Config.in30 --- busybox-1. 1.1/procps/Config.in 2006-03-22 22:16:25.000000000 +010031 +++ busybox-1. 1.1-owrt/procps/Config.in 2006-04-01 18:22:53.000000000 +020029 diff -ruN busybox-1.2.0-old/procps/Config.in busybox-1.2.0-new/procps/Config.in 30 --- busybox-1.2.0-old/procps/Config.in 2006-07-01 00:42:12.000000000 +0200 31 +++ busybox-1.2.0-new/procps/Config.in 2006-07-31 00:25:57.000000000 +0200 32 32 @@ -38,6 +38,11 @@ 33 33 specified commands. If no signal name is specified, SIGTERM is … … 42 42 bool "pidof" 43 43 default n 44 diff - Nur busybox-1.1.1/procps/kill.c busybox-1.1.1-owrt/procps/kill.c45 --- busybox-1. 1.1/procps/kill.c 2006-03-22 22:16:25.000000000 +010046 +++ busybox-1. 1.1-owrt/procps/kill.c 2006-04-01 18:22:53.000000000 +020047 @@ - 34,6 +34,7 @@44 diff -ruN busybox-1.2.0-old/procps/kill.c busybox-1.2.0-new/procps/kill.c 45 --- busybox-1.2.0-old/procps/kill.c 2006-07-01 00:42:12.000000000 +0200 46 +++ busybox-1.2.0-new/procps/kill.c 2006-07-31 00:25:57.000000000 +0200 47 @@ -20,6 +20,7 @@ 48 48 49 49 #define KILL 0 … … 53 53 int kill_main(int argc, char **argv) 54 54 { 55 @@ - 48,6 +49,9 @@55 @@ -34,6 +35,9 @@ 56 56 #else 57 57 whichApp = KILL; … … 63 63 /* Parse any options */ 64 64 if (argc < 2) 65 @@ -1 26,6 +130,20 @@65 @@ -112,6 +116,20 @@ 66 66 } 67 67 trunk/freewrt/package/busybox/patches/110-telnetd.patch
r1 r993 1 diff - ur busybox-1.1.0/networking/telnetd.c busybox-1.1.0-owrt/networking/telnetd.c2 --- busybox-1. 1.0/networking/telnetd.c 2006-01-11 06:43:51.000000000 +01003 +++ busybox-1. 1.0-owrt/networking/telnetd.c 2006-01-14 17:41:20.000000000 +01004 @@ -4 5,6 +45,7 @@1 diff -Nur busybox-1.2.1.orig/networking/telnetd.c busybox-1.2.1/networking/telnetd.c 2 --- busybox-1.2.1.orig/networking/telnetd.c 2006-07-01 00:42:02.000000000 +0200 3 +++ busybox-1.2.1/networking/telnetd.c 2006-10-17 12:21:14.000000000 +0200 4 @@ -44,6 +44,7 @@ 5 5 #include <arpa/telnet.h> 6 6 #include <ctype.h> … … 10 10 #include "busybox.h" 11 11 12 @@ -39 4,11 +395,13 @@12 @@ -391,11 +392,13 @@ 13 13 struct in_addr bind_addr = { .s_addr = 0x0 }; 14 14 #endif /* CONFIG_FEATURE_TELNETD_INETD */ … … 26 26 int maxlen, w, r; 27 27 28 @@ -41 3,6 +416,9 @@28 @@ -410,6 +413,9 @@ 29 29 case 'f': 30 30 issuefile = optarg; … … 36 36 loginpath = optarg; 37 37 break; 38 @@ -4 65,6 +471,13 @@38 @@ -459,6 +465,13 @@ 39 39 sa.sin_addr = bind_addr; 40 40 #endif … … 44 44 + strncpy(interface.ifr_ifrn.ifrn_name, interface_name, IFNAMSIZ); 45 45 + (void)setsockopt(master_fd, SOL_SOCKET, 46 + SO_BINDTODEVICE, &interface, sizeof(interface));46 + SO_BINDTODEVICE, &interface, sizeof(interface)); 47 47 + } 48 48 + 49 if (bind(master_fd, (struct sockaddr *) &sa, sizeof(sa)) < 0) {50 bb_perror_msg_and_die("bind");51 }49 bb_xbind(master_fd, (struct sockaddr *) &sa, sizeof(sa)); 50 bb_xlisten(master_fd, 1); 51 bb_xdaemon(0, 0); trunk/freewrt/package/busybox/patches/140-unlink-passwd.patch
r1 r993 1 --- busybox-1.00.old/loginutils/passwd.c 2004-09-15 04:39:09.000000000 +0200 2 +++ busybox-1.00/loginutils/passwd.c 2005-03-23 15:31:07.000000000 +0100 1 diff -Nur busybox-1.2.1.orig/loginutils/passwd.c busybox-1.2.1/loginutils/passwd.c 2 --- busybox-1.2.1.orig/loginutils/passwd.c 2006-07-29 00:53:44.000000000 +0200 3 +++ busybox-1.2.1/loginutils/passwd.c 2006-10-17 12:24:09.000000000 +0200 3 4 @@ -54,11 +54,12 @@ 4 5 snprintf(filename, sizeof filename, "%s", bb_path_passwd_file); … … 23 24 snprintf(buf, sizeof buf, "%s-", filename); 24 25 if (create_backup(buf, fp)) { 25 @@ -1 19,6 +121,7 @@26 @@ -120,6 +122,7 @@ 26 27 fclose(fp); 27 28 return 1; trunk/freewrt/package/busybox/patches/150-udhcp-release.patch
r1 r993 1 diff -Nur busybox-1. 1.1/include/usage.h busybox-1.1.1-owrt/include/usage.h2 --- busybox-1. 1.1/include/usage.h 2006-04-01 18:26:21.000000000 +02003 +++ busybox-1. 1.1-owrt/include/usage.h 2006-04-01 18:27:45.000000000 +02004 @@ -3 268,6 +3268,7 @@1 diff -Nur busybox-1.2.1.orig/include/usage.h busybox-1.2.1/include/usage.h 2 --- busybox-1.2.1.orig/include/usage.h 2006-10-17 12:22:12.000000000 +0200 3 +++ busybox-1.2.1/include/usage.h 2006-10-17 12:25:18.000000000 +0200 4 @@ -3190,6 +3190,7 @@ 5 5 "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated\n" \ 6 6 "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \ … … 10 10 "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ 11 11 "\t-t,\t--retries=NUM\tSend up to NUM request packets\n"\ 12 diff -Nur busybox-1. 1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/udhcp/dhcpc.c13 --- busybox-1. 1.1/networking/udhcp/dhcpc.c 2006-03-22 22:16:19.000000000 +010014 +++ busybox-1. 1.1-owrt/networking/udhcp/dhcpc.c 2006-04-01 18:28:19.000000000 +020015 @@ -4 9,6 +49,7 @@12 diff -Nur busybox-1.2.1.orig/networking/udhcp/dhcpc.c busybox-1.2.1/networking/udhcp/dhcpc.c 13 --- busybox-1.2.1.orig/networking/udhcp/dhcpc.c 2006-07-01 00:42:02.000000000 +0200 14 +++ busybox-1.2.1/networking/udhcp/dhcpc.c 2006-10-17 12:25:18.000000000 +0200 15 @@ -47,6 +47,7 @@ 16 16 .abort_if_no_lease = 0, 17 17 .foreground = 0, … … 21 21 .interface = "eth0", 22 22 .pidfile = NULL, 23 @@ -82,6 +83,7 @@ 24 " immediately negotiated.\n" 25 " -p, --pidfile=file Store process ID of daemon in file\n" 26 " -q, --quit Quit after obtaining lease\n" 27 +" -R, --release Release IP on quit\n" 28 " -r, --request=IP IP address to request (default: none)\n" 29 " -s, --script=file Run file at dhcp events (default:\n" 30 " " DEFAULT_SCRIPT ")\n" 31 @@ -203,6 +205,7 @@ 23 @@ -163,6 +164,7 @@ 32 24 {"now", no_argument, 0, 'n'}, 33 25 {"pidfile", required_argument, 0, 'p'}, … … 37 29 {"script", required_argument, 0, 's'}, 38 30 {"timeout", required_argument, 0, 'T'}, 39 @@ - 214,7 +217,7 @@31 @@ -174,7 +176,7 @@ 40 32 /* get options */ 41 33 while (1) { … … 46 38 47 39 switch (c) { 48 @@ -2 84,6 +287,9 @@40 @@ -244,6 +246,9 @@ 49 41 case 'q': 50 42 client_config.quit_after_lease = 1; … … 56 48 requested_ip = inet_addr(optarg); 57 49 break; 58 @@ - 527,8 +533,11 @@50 @@ -488,8 +493,11 @@ 59 51 60 52 state = BOUND; … … 69 61 client_background(); 70 62 71 @@ -5 53,12 +562,13 @@63 @@ -514,12 +522,13 @@ 72 64 case SIGUSR1: 73 65 perform_renew(); … … 86 78 } else if (retval == -1 && errno == EINTR) { 87 79 /* a signal was caught */ 88 diff -Nur busybox-1. 1.1/networking/udhcp/dhcpc.h busybox-1.1.1-owrt/networking/udhcp/dhcpc.h89 --- busybox-1. 1.1/networking/udhcp/dhcpc.h 2006-03-22 22:16:19.000000000 +010090 +++ busybox-1. 1.1-owrt/networking/udhcp/dhcpc.h 2006-04-01 18:27:45.000000000 +020091 @@ -1 9,6 +19,7 @@80 diff -Nur busybox-1.2.1.orig/networking/udhcp/dhcpc.h busybox-1.2.1/networking/udhcp/dhcpc.h 81 --- busybox-1.2.1.orig/networking/udhcp/dhcpc.h 2006-07-01 00:42:02.000000000 +0200 82 +++ busybox-1.2.1/networking/udhcp/dhcpc.h 2006-10-17 12:25:18.000000000 +0200 83 @@ -18,6 +18,7 @@ 92 84 struct client_config_t { 93 85 char foreground; /* Do not fork */ trunk/freewrt/package/busybox/patches/170-udhcp-options.patch
r1 r993 1 diff -Nur busybox-1. 00.orig/networking/udhcp/options.c busybox-1.00/networking/udhcp/options.c2 --- busybox-1. 00.orig/networking/udhcp/options.c 2004-03-15 09:29:01.000000000 +01003 +++ busybox-1. 00/networking/udhcp/options.c 2005-09-14 13:27:23.792609800 +02004 @@ - 39,8 +39,11 @@1 diff -Nur busybox-1.2.1.orig/networking/udhcp/options.c busybox-1.2.1/networking/udhcp/options.c 2 --- busybox-1.2.1.orig/networking/udhcp/options.c 2006-07-01 00:42:02.000000000 +0200 3 +++ busybox-1.2.1/networking/udhcp/options.c 2006-10-17 12:35:30.000000000 +0200 4 @@ -41,8 +41,11 @@ 5 5 {"dhcptype", OPTION_U8, 0x35}, 6 6 {"serverid", OPTION_IP, 0x36}, trunk/freewrt/package/busybox/patches/180-telnetd_ipv6.patch
r1 r993 1 diff - urN busybox.old/networking/telnetd.c busybox.dev/networking/telnetd.c2 --- busybox .old/networking/telnetd.c 2005-08-17 03:29:10.000000000 +02003 +++ busybox .dev/networking/telnetd.c 2005-10-22 19:37:49.976396000 +02004 @@ - 49,6 +49,8 @@1 diff -Nur busybox-1.2.1.orig/networking/telnetd.c busybox-1.2.1/networking/telnetd.c 2 --- busybox-1.2.1.orig/networking/telnetd.c 2006-10-17 12:23:28.000000000 +0200 3 +++ busybox-1.2.1/networking/telnetd.c 2006-10-17 12:37:30.000000000 +0200 4 @@ -50,6 +50,8 @@ 5 5 6 6 #define BUFSIZE 4000 trunk/freewrt/package/busybox/patches/190-ash_performance.patch
r1 r993 1 diff - urN busybox.old/shell/ash.c busybox.dev/shell/ash.c2 --- busybox .old/shell/ash.c 2005-11-12 22:39:19.853826250 +01003 +++ busybox .dev/shell/ash.c 2005-11-12 22:39:42.771258500 +01004 @@ -1 414,6 +1414,13 @@1 diff -Nur busybox-1.2.1.orig/shell/ash.c busybox-1.2.1/shell/ash.c 2 --- busybox-1.2.1.orig/shell/ash.c 2006-07-29 00:53:44.000000000 +0200 3 +++ busybox-1.2.1/shell/ash.c 2006-10-23 16:32:05.000000000 +0200 4 @@ -1384,6 +1384,13 @@ 5 5 6 6 #define NUMBUILTINS (sizeof (builtincmd) / sizeof (struct builtincmd) ) … … 16 16 17 17 struct cmdentry { 18 @@ -20 50,6 +2057,19 @@19 static void exitshell(void) __attribute__((__noreturn__));18 @@ -2037,6 +2044,19 @@ 19 static void exitshell(void) ATTRIBUTE_NORETURN; 20 20 static int decode_signal(const char *, int); 21 21 … … 36 36 * This routine is called when an error or an interrupt occurs in an 37 37 * interactive shell and control is returned to the main command loop. 38 @@ -36 80,6 +3700,7 @@38 @@ -3694,6 +3714,7 @@ 39 39 clearredir(1); 40 40 envp = environment(); … … 44 44 || find_applet_by_name(argv[0]) 45 45 #endif 46 @@ -37 21,6 +3742,18 @@46 @@ -3736,6 +3757,18 @@ 47 47 tryexec(char *cmd, char **argv, char **envp) 48 48 { … … 61 61 + } 62 62 #ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL 63 i nt flg_bb = 0;64 char *name = cmd;65 @@ -391 9,6 +3952,12 @@63 if(find_applet_by_name(cmd) != NULL) { 64 /* re-exec ourselves with the new arguments */ 65 @@ -3918,6 +3951,12 @@ 66 66 } 67 67 #endif trunk/freewrt/package/busybox/patches/200-etc_crontabs.patch
r1 r993 1 diff - urN busybox.old/miscutils/crond.c busybox.dev/miscutils/crond.c2 --- busybox .old/miscutils/crond.c 2004-04-14 19:51:21.000000000 +02003 +++ busybox .dev/miscutils/crond.c 2005-12-11 22:54:07.878256250 +01004 @@ -3 6,7 +36,7 @@1 diff -Nur busybox-1.2.1.orig/miscutils/crond.c busybox-1.2.1/miscutils/crond.c 2 --- busybox-1.2.1.orig/miscutils/crond.c 2006-07-01 00:42:09.000000000 +0200 3 +++ busybox-1.2.1/miscutils/crond.c 2006-10-23 16:33:40.000000000 +0200 4 @@ -33,7 +33,7 @@ 5 5 #define arysize(ary) (sizeof(ary)/sizeof((ary)[0])) 6 6 … … 11 11 #ifndef TMPDIR 12 12 #define TMPDIR "/var/spool/cron" 13 diff - urN busybox.old/miscutils/crontab.c busybox.dev/miscutils/crontab.c14 --- busybox .old/miscutils/crontab.c 2004-04-14 19:51:21.000000000 +020015 +++ busybox .dev/miscutils/crontab.c 2005-12-11 22:54:28.647554250 +010016 @@ -2 8,7 +28,7 @@13 diff -Nur busybox-1.2.1.orig/miscutils/crontab.c busybox-1.2.1/miscutils/crontab.c 14 --- busybox-1.2.1.orig/miscutils/crontab.c 2006-07-01 00:42:09.000000000 +0200 15 +++ busybox-1.2.1/miscutils/crontab.c 2006-10-23 16:33:40.000000000 +0200 16 @@ -29,7 +29,7 @@ 17 17 #include <sys/resource.h> 18 18 trunk/freewrt/package/busybox/patches/210-passwd_limit.patch
r1 r993 1 diff - urN busybox.old/loginutils/passwd.c busybox.dev/loginutils/passwd.c2 --- busybox .old/loginutils/passwd.c 2005-12-11 22:52:46.185150000 +01003 +++ busybox .dev/loginutils/passwd.c 2005-12-11 23:19:15.276596500 +01004 @@ -3 53,7 +353,7 @@1 diff -Nur busybox-1.2.1.orig/loginutils/passwd.c busybox-1.2.1/loginutils/passwd.c 2 --- busybox-1.2.1.orig/loginutils/passwd.c 2006-10-23 16:31:36.000000000 +0200 3 +++ busybox-1.2.1/loginutils/passwd.c 2006-10-23 16:34:24.000000000 +0200 4 @@ -346,7 +346,7 @@ 5 5 } else { 6 6 orig[0] = '\0'; trunk/freewrt/package/busybox/patches/220-awk_bitops.patch
r1 r993 1 --- busybox-1.00/editors/awk.c.orig 2004-09-24 05:24:27 -04:00 2 +++ busybox-1.00/editors/awk.c 2006-03-08 02:16:52 -05:00 3 @@ -271,7 +271,8 @@ 1 diff -Nur busybox-1.2.1.orig/editors/awk.c busybox-1.2.1/editors/awk.c 2 --- busybox-1.2.1.orig/editors/awk.c 2006-07-01 00:42:13.000000000 +0200 3 +++ busybox-1.2.1/editors/awk.c 2006-10-23 16:35:00.000000000 +0200 4 @@ -259,7 +259,8 @@ 4 5 /* builtins */ 5 6 enum { … … 11 12 12 13 /* tokens and their corresponding info values */ 13 @@ - 311,6 +312,8 @@14 @@ -299,6 +300,8 @@ 14 15 "\5while" NTC 15 16 "\4else" NTC … … 20 21 "\3cos" "\3exp" "\3int" "\3log" 21 22 "\4rand" "\3sin" "\4sqrt" "\5srand" 22 @@ -3 64,6 +367,8 @@23 @@ -352,6 +355,8 @@ 23 24 ST_WHILE, 24 25 0, … … 29 30 OC_FBLTIN|Nx|F_co, OC_FBLTIN|Nx|F_ex, OC_FBLTIN|Nx|F_in, OC_FBLTIN|Nx|F_lg, 30 31 OC_FBLTIN|F_rn, OC_FBLTIN|Nx|F_si, OC_FBLTIN|Nx|F_sq, OC_FBLTIN|Nx|F_sr, 31 @@ -1942,6 +1947,30 @@ 32 strncpy(s, as[0]+i, n); 32 @@ -1933,6 +1938,30 @@ 33 33 s[n] = '\0'; 34 34 setvar_p(res, s); 35 +break;35 break; 36 36 + 37 37 + case B_an: … … 57 57 + case B_xo: 58 58 + setvar_i(res, (long)getvar_i(av[0]) ^ (long)getvar_i(av[1])); 59 break;59 + break; 60 60 61 61 case B_lo: 62 to_xxx = tolower; trunk/freewrt/package/busybox/patches/300-netmsg.patch
r1 r993 1 diff -Nur busybox-1.1.1/include/applets.h busybox-1.1.1-owrt/include/applets.h 2 --- busybox-1.1.1/include/applets.h 2006-04-01 18:26:21.000000000 +0200 3 +++ busybox-1.1.1-owrt/include/applets.h 2006-04-01 18:36:28.000000000 +0200 4 @@ -197,6 +197,7 @@ 5 USE_MV(APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 6 USE_NAMEIF(APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER)) 7 USE_NC(APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 8 +USE_NETMSG(APPLET_NOUSAGE(netmsg, netmsg_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)) 9 USE_NETSTAT(APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 10 USE_NICE(APPLET(nice, nice_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 11 USE_NOHUP(APPLET(nohup, nohup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 12 diff -Nur busybox-1.1.1/networking/Config.in busybox-1.1.1-owrt/networking/Config.in 13 --- busybox-1.1.1/networking/Config.in 2006-03-22 22:16:19.000000000 +0100 14 +++ busybox-1.1.1-owrt/networking/Config.in 2006-04-01 18:35:32.000000000 +0200 15 @@ -451,6 +451,12 @@ 1 # Copyright (C) 2006 OpenWrt.org 2 # 3 # This is free software, licensed under the GNU General Public License v2. 4 # See /LICENSE for more information. 5 # 6 diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h 7 --- busybox-1.2.0-old/include/applets.h 2006-07-31 10:47:56.000000000 +0200 8 +++ busybox-1.2.0-new/include/applets.h 2006-07-31 11:21:00.000000000 +0200 9 @@ -200,6 +200,7 @@ 10 USE_MV(APPLET(mv, _BB_DIR_BIN, _BB_SUID_NEVER)) 11 USE_NAMEIF(APPLET(nameif, _BB_DIR_SBIN, _BB_SUID_NEVER)) 12 USE_NC(APPLET(nc, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 13 +USE_NETMSG(APPLET_NOUSAGE(netmsg, netmsg, _BB_DIR_BIN, _BB_SUID_ALWAYS)) 14 USE_NETSTAT(APPLET(netstat, _BB_DIR_BIN, _BB_SUID_NEVER)) 15 USE_NICE(APPLET(nice, _BB_DIR_BIN, _BB_SUID_NEVER)) 16 USE_NOHUP(APPLET(nohup, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 17 diff -ruN busybox-1.2.0-old/networking/Config.in busybox-1.2.0-new/networking/Config.in 18 --- busybox-1.2.0-old/networking/Config.in 2006-07-01 00:42:02.000000000 +0200 19 +++ busybox-1.2.0-new/networking/Config.in 2006-07-31 11:18:01.000000000 +0200 20 @@ -445,6 +445,12 @@ 16 21 help 17 22 A simple Unix utility which reads and writes data across network … … 26 31 config CONFIG_NC_GAPING_SECURITY_HOLE 27 32 bool "gaping security hole" 28 diff - Nur busybox-1.1.1/networking/Makefile.in busybox-1.1.1-owrt/networking/Makefile.in29 --- busybox-1. 1.1/networking/Makefile.in 2006-03-22 22:16:19.000000000 +010030 +++ busybox-1. 1.1-owrt/networking/Makefile.in 2006-04-01 18:35:32.000000000 +020033 diff -ruN busybox-1.2.0-old/networking/Makefile.in busybox-1.2.0-new/networking/Makefile.in 34 --- busybox-1.2.0-old/networking/Makefile.in 2006-07-01 00:42:02.000000000 +0200 35 +++ busybox-1.2.0-new/networking/Makefile.in 2006-07-31 11:18:01.000000000 +0200 31 36 @@ -30,6 +30,7 @@ 32 37 NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o … … 37 42 NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o 38 43 NETWORKING-$(CONFIG_PING) += ping.o 39 diff -Nur busybox-1.1.1/networking/netmsg.c busybox-1.1.1-owrt/networking/netmsg.c 40 --- busybox-1.1.1/networking/netmsg.c 1970-01-01 01:00:00.000000000 +0100 41 +++ busybox-1.1.1-owrt/networking/netmsg.c 2006-04-01 18:35:32.000000000 +0200 42 @@ -0,0 +1,58 @@ 44 diff -ruN busybox-1.2.0-old/networking/netmsg.c busybox-1.2.0-new/networking/netmsg.c 45 --- busybox-1.2.0-old/networking/netmsg.c 1970-01-01 01:00:00.000000000 +0100 46 +++ busybox-1.2.0-new/networking/netmsg.c 2006-07-31 11:18:01.000000000 +0200 47 @@ -0,0 +1,63 @@ 48 +/* 49 + * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org> 50 + * 51 + * This is free software, licensed under the GNU General Public License v2. 52 + */ 43 53 +#include <sys/types.h> 44 54 +#include <sys/socket.h> trunk/freewrt/package/busybox/patches/310-passwd_access.patch
r1 r993 1 diff - urN busybox.old/networking/httpd.c busybox.dev/networking/httpd.c2 --- busybox .old/networking/httpd.c 2004-10-08 10:03:29.000000000 +02003 +++ busybox .dev/networking/httpd.c 2006-02-04 01:54:19.688016250 +01004 @@ -14 67,12 +1467,22@@1 diff -Nur busybox-1.2.1.orig/networking/httpd.c busybox-1.2.1/networking/httpd.c 2 --- busybox-1.2.1.orig/networking/httpd.c 2006-07-01 00:42:02.000000000 +0200 3 +++ busybox-1.2.1/networking/httpd.c 2006-10-23 16:36:05.000000000 +0200 4 @@ -1432,12 +1432,26 @@ 5 5 { 6 6 char *cipher; … … 17 17 + pp[3] == '$' && pp[4] && 18 18 + (pwd = getpwnam(&pp[4])) != NULL) { 19 + if(pwd->pw_passwd && pwd->pw_passwd[0] == '!') { 20 + prev = NULL; 21 + continue; 22 + } 19 23 + ppnew = malloc(5 + strlen(pwd->pw_passwd)); 20 24 + ppnew[0] = ':'; … … 25 29 pp[3] == '$' && pp[4]) { 26 30 pp++; 27 @@ -14 82,6 +1492,10 @@31 @@ -1447,6 +1461,10 @@ 28 32 /* unauthorized */ 29 33 continue; trunk/freewrt/package/busybox/patches/320-httpd_address_binding.patch
r1 r993 1 --- busybox-1.1.1/networking/httpd.c 2006-03-22 22:16:19.000000000 +0100 2 +++ busybox-1.1.1.new/networking/httpd.c 2006-04-01 19:41:42.150744624 +0200 3 @@ -110,6 +110,7 @@ 1 diff -Nur busybox-1.2.1.orig/networking/httpd.c busybox-1.2.1/networking/httpd.c 2 --- busybox-1.2.1.orig/networking/httpd.c 2006-10-23 16:36:30.000000000 +0200 3 +++ busybox-1.2.1/networking/httpd.c 2006-10-23 16:36:37.000000000 +0200 4 @@ -99,6 +99,7 @@ 4 5 #include <sys/types.h> 5 6 #include <sys/socket.h> /* for connect and socket*/ 6 7 #include <netinet/in.h> /* for sockaddr_in */ 7 8 +#include <arpa/inet.h> 8 #include <sys/time.h>9 9 #include <sys/stat.h> 10 10 #include <sys/wait.h> 11 @@ -204,8 +205,8 @@ 12 13 void bb_show_usage(void) 14 { 15 - fprintf(stderr, "Usage: %s [-p <port>] [-c configFile] [-d/-e <string>] " 16 - "[-r realm] [-u user] [-h homedir]\n", bb_applet_name); 17 + fprintf(stderr, "Usage: %s [-p <port>] [-l <IP address>] [-c configFile]" 18 + "[-d/-e <string>] [-r realm] [-u user] [-h homedir]\n", bb_applet_name); 19 exit(1); 20 } 21 #endif 22 @@ -255,6 +256,7 @@ 11 #include <fcntl.h> /* for open modes */ 12 @@ -165,6 +166,7 @@ 23 13 #endif 24 14 unsigned port; /* server initial port and for … … 28 18 const char *found_mime_type; 29 19 const char *found_moved_temporarily; 30 @@ - 958,7 +960,10 @@20 @@ -868,7 +870,10 @@ 31 21 /* inet_addr() returns a value that is already in network order */ 32 22 memset(&lsocket, 0, sizeof(lsocket)); … … 37 27 + else lsocket.sin_addr.s_addr = htons(INADDR_ANY); 38 28 + } 39 lsocket.sin_port = htons(config->port) ;40 fd = socket(AF_INET, SOCK_STREAM, 0);41 if (fd >= 0) {42 @@ -19 96,6 +2001,7 @@29 lsocket.sin_port = htons(config->port); 30 fd = bb_xsocket(AF_INET, SOCK_STREAM, 0); 31 /* tell the OS it's OK to reuse a previous address even though */ 32 @@ -1917,6 +1922,7 @@ 43 33 USE_FEATURE_HTTPD_AUTH_MD5(m_opt_md5,) 44 34 USE_FEATURE_HTTPD_SETUID(u_opt_setuid,) 45 SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(p_opt_port,)46 + SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(l_opt_addr,)35 USE_FEATURE_HTTPD_WITHOUT_INETD(p_opt_port,) 36 + USE_FEATURE_HTTPD_WITHOUT_INETD(l_opt_addr,) 47 37 }; 48 38 49 39 static const char httpd_opts[]="c:d:h:" 50 @@ - 2003,7 +2009,7 @@40 @@ -1924,7 +1930,7 @@ 51 41 USE_FEATURE_HTTPD_BASIC_AUTH("r:") 52 42 USE_FEATURE_HTTPD_AUTH_MD5("m:") 53 43 USE_FEATURE_HTTPD_SETUID("u:") 54 - SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY("p:");55 + SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY("p:l:");44 - USE_FEATURE_HTTPD_WITHOUT_INETD("p:"); 45 + USE_FEATURE_HTTPD_WITHOUT_INETD("p:l:"); 56 46 57 47 #define OPT_CONFIG_FILE (1<<c_opt_config_file) 58 48 #define OPT_DECODE_URL (1<<d_opt_decode_url) 59 @@ - 2024,6 +2030,8 @@60 #define OPT_PORT SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY((1<<p_opt_port)) \61 USE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(0)49 @@ -1945,6 +1951,8 @@ 50 #define OPT_PORT USE_FEATURE_HTTPD_WITHOUT_INETD((1<<p_opt_port)) \ 51 SKIP_FEATURE_HTTPD_WITHOUT_INETD(0) 62 52 63 +#define OPT_ADDRESS SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY((1<<l_opt_addr)) \64 + USE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(0)53 +#define OPT_ADDRESS USE_FEATURE_HTTPD_WITHOUT_INETD((1<<l_opt_addr)) \ 54 + SKIP_FEATURE_HTTPD_WITHOUT_INETD(0) 65 55 66 #ifdef HTTPD_STANDALONE67 int main(int argc, char *argv[])68 @@ - 2036,6 +2044,7 @@56 int httpd_main(int argc, char *argv[]) 57 { 58 @@ -1953,6 +1961,7 @@ 69 59 char *url_for_decode; 70 60 USE_FEATURE_HTTPD_ENCODE_URL_STR(const char *url_for_encode;) 71 SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(const char *s_port;)72 + SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(const char *s_addr;)73 SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(int server;)61 USE_FEATURE_HTTPD_WITHOUT_INETD(const char *s_port;) 62 + USE_FEATURE_HTTPD_WITHOUT_INETD(const char *s_addr;) 63 USE_FEATURE_HTTPD_WITHOUT_INETD(int server;) 74 64 75 65 USE_FEATURE_HTTPD_SETUID(const char *s_uid;) 76 @@ - 2050,6 +2059,7 @@66 @@ -1967,6 +1976,7 @@ 77 67 78 #if ndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY68 #ifdef CONFIG_FEATURE_HTTPD_WITHOUT_INETD 79 69 config->port = 80; 80 70 + config->address = ""; … … 82 72 83 73 config->ContentLength = -1; 84 @@ - 2061,6 +2071,7 @@74 @@ -1978,6 +1988,7 @@ 85 75 USE_FEATURE_HTTPD_AUTH_MD5(, &pass) 86 76 USE_FEATURE_HTTPD_SETUID(, &s_uid) 87 SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(, &s_port)88 + SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(, &s_addr)77 USE_FEATURE_HTTPD_WITHOUT_INETD(, &s_port) 78 + USE_FEATURE_HTTPD_WITHOUT_INETD(, &s_addr) 89 79 ); 90 80 91 81 if(opt & OPT_DECODE_URL) { 92 @@ - 2082,6 +2093,8 @@93 #if ndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY82 @@ -1999,6 +2010,8 @@ 83 #ifdef CONFIG_FEATURE_HTTPD_WITHOUT_INETD 94 84 if(opt & OPT_PORT) 95 85 config->port = bb_xgetlarg(s_port, 10, 1, 0xffff); trunk/freewrt/package/busybox/patches/330-httpd_user_agent.patch
r1 r993 1 diff -Nur busybox-1. 1.1/networking/httpd.c busybox-1.1.1-owrt/networking/httpd.c2 --- busybox-1. 1.1/networking/httpd.c 2006-04-01 19:42:36.000000000 +02003 +++ busybox-1. 1.1-owrt/networking/httpd.c 2006-04-01 19:43:59.000000000 +02004 @@ - 247,6 +247,7 @@1 diff -Nur busybox-1.2.1.orig/networking/httpd.c busybox-1.2.1/networking/httpd.c 2 --- busybox-1.2.1.orig/networking/httpd.c 2006-10-23 16:36:51.000000000 +0200 3 +++ busybox-1.2.1/networking/httpd.c 2006-10-23 16:37:01.000000000 +0200 4 @@ -157,6 +157,7 @@ 5 5 const char *query; 6 6 … … 10 10 const char *configFile; 11 11 12 @@ -1 208,6 +1209,7 @@12 @@ -1111,6 +1112,7 @@ 13 13 addEnv("SERVER", "PROTOCOL", "HTTP/1.0"); 14 14 addEnv("GATEWAY_INTERFACE", "", "CGI/1.1"); … … 18 18 addEnvPort("REMOTE"); 19 19 #endif 20 @@ -1 771,6 +1773,10 @@20 @@ -1676,6 +1678,10 @@ 21 21 for(test = buf + 8; isspace(*test); test++) 22 22 ; trunk/freewrt/package/busybox/patches/340-lock_util.patch
r1 r993 1 diff -urN busybox.old/include/applets.h busybox.dev/include/applets.h 2 --- busybox.old/include/applets.h 2006-04-05 01:06:29.000000000 +0200 3 +++ busybox.dev/include/applets.h 2006-04-05 01:19:09.000000000 +0200 4 @@ -167,6 +167,7 @@ 5 USE_LN(APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 6 USE_LOADFONT(APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 7 USE_LOADKMAP(APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)) 8 +USE_LOCK(APPLET_NOUSAGE(lock, lock_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 9 USE_LOGGER(APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 10 USE_LOGIN(APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)) 11 USE_LOGNAME(APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 12 diff -urN busybox.old/miscutils/Config.in busybox.dev/miscutils/Config.in 13 --- busybox.old/miscutils/Config.in 2006-03-22 22:16:24.000000000 +0100 14 +++ busybox.dev/miscutils/Config.in 2006-04-05 01:07:12.000000000 +0200 15 @@ -209,6 +209,12 @@ 1 # Copyright (C) 2006 OpenWrt.org 2 # 3 # This is free software, licensed under the GNU General Public License v2. 4 # See /LICENSE for more information. 5 # 6 diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h 7 --- busybox-1.2.0-old/include/applets.h 2006-07-31 11:21:00.000000000 +0200 8 +++ busybox-1.2.0-new/include/applets.h 2006-08-01 10:21:15.000000000 +0200 9 @@ -169,6 +169,7 @@ 10 USE_LN(APPLET(ln, _BB_DIR_BIN, _BB_SUID_NEVER)) 11 USE_LOADFONT(APPLET(loadfont, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 12 USE_LOADKMAP(APPLET(loadkmap, _BB_DIR_SBIN, _BB_SUID_NEVER)) 13 +USE_LOCK(APPLET_NOUSAGE(lock, lock, _BB_DIR_BIN, _BB_SUID_NEVER)) 14 USE_LOGGER(APPLET(logger, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 15 USE_LOGIN(APPLET(login, _BB_DIR_BIN, _BB_SUID_ALWAYS)) 16 USE_LOGNAME(APPLET(logname, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 17 diff -ruN busybox-1.2.0-old/miscutils/Config.in busybox-1.2.0-new/miscutils/Config.in 18 --- busybox-1.2.0-old/miscutils/Config.in 2006-07-01 00:42:09.000000000 +0200 19 +++ busybox-1.2.0-new/miscutils/Config.in 2006-08-01 10:21:15.000000000 +0200 20 @@ -231,6 +231,12 @@ 16 21 Enables the 'hdparm -d' option to get/set using_dma flag. 17 22 This is dangerous stuff, so you should probably say N. … … 26 31 bool "makedevs" 27 32 default n 28 diff -urN busybox.old/miscutils/Makefile.in busybox.dev/miscutils/Makefile.in 29 --- busybox.old/miscutils/Makefile.in 2006-03-22 22:16:24.000000000 +0100 30 +++ busybox.dev/miscutils/Makefile.in 2006-04-05 01:10:50.000000000 +0200 31 @@ -20,6 +20,7 @@ 32 MISCUTILS-$(CONFIG_EJECT) += eject.o 33 MISCUTILS-$(CONFIG_HDPARM) += hdparm.o 34 MISCUTILS-$(CONFIG_LAST) += last.o 35 +MISCUTILS-$(CONFIG_LOCK) += lock.o 36 MISCUTILS-${CONFIG_LESS} += less.o 37 MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o 38 MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o 39 diff -urN busybox.old/miscutils/lock.c busybox.dev/miscutils/lock.c 40 --- busybox.old/miscutils/lock.c 1970-01-01 01:00:00.000000000 +0100 41 +++ busybox.dev/miscutils/lock.c 2006-04-05 01:07:12.000000000 +0200 42 @@ -0,0 +1,128 @@ 33 diff -ruN busybox-1.2.0-old/miscutils/lock.c busybox-1.2.0-new/miscutils/lock.c 34 --- busybox-1.2.0-old/miscutils/lock.c 1970-01-01 01:00:00.000000000 +0100 35 +++ busybox-1.2.0-new/miscutils/lock.c 2006-08-01 10:21:15.000000000 +0200 36 @@ -0,0 +1,133 @@ 37 +/* 38 + * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org> 39 + * 40 + * This is free software, licensed under the GNU General Public License v2. 41 + */ 43 42 +#include <sys/types.h> 44 43 +#include <sys/file.h> … … 169 168 + return do_lock(); 170 169 +} 170 diff -ruN busybox-1.2.0-old/miscutils/Makefile.in busybox-1.2.0-new/miscutils/Makefile.in 171 --- busybox-1.2.0-old/miscutils/Makefile.in 2006-07-01 00:42:09.000000000 +0200 172 +++ busybox-1.2.0-new/miscutils/Makefile.in 2006-08-01 10:21:15.000000000 +0200 173 @@ -20,6 +20,7 @@ 174 MISCUTILS-$(CONFIG_EJECT) += eject.o 175 MISCUTILS-$(CONFIG_HDPARM) += hdparm.o 176 MISCUTILS-$(CONFIG_LAST) += last.o 177 +MISCUTILS-$(CONFIG_LOCK) += lock.o 178 MISCUTILS-${CONFIG_LESS} += less.o 179 MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o 180 MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o trunk/freewrt/package/busybox/patches/350-ping-opt-srcaddr.patch
r324 r993 1 diff -Nur busybox-1. 1.3.orig/include/usage.h busybox-1.1.3/include/usage.h2 --- busybox-1. 1.3.orig/include/usage.h 2006-07-19 19:06:34.000000000 +02003 +++ busybox-1. 1.3/include/usage.h 2006-07-19 19:07:15.000000000 +02004 @@ -2 350,6 +2350,7 @@1 diff -Nur busybox-1.2.1.orig/include/usage.h busybox-1.2.1/include/usage.h 2 --- busybox-1.2.1.orig/include/usage.h 2006-10-23 16:32:21.000000000 +0200 3 +++ busybox-1.2.1/include/usage.h 2006-10-23 16:37:36.000000000 +0200 4 @@ -2286,6 +2286,7 @@ 5 5 "Options:\n" \ 6 6 "\t-c COUNT\tSend only COUNT pings\n" \ … … 10 10 "\t\t\tand when finished" 11 11 #endif 12 diff -Nur busybox-1. 1.3.orig/networking/ping.c busybox-1.1.3/networking/ping.c13 --- busybox-1. 1.3.orig/networking/ping.c 2006-03-22 22:16:19.000000000 +010014 +++ busybox-1. 1.3/networking/ping.c 2006-07-14 13:51:55.000000000 +020015 @@ -15 3,6 +153,7 @@12 diff -Nur busybox-1.2.1.orig/networking/ping.c busybox-1.2.1/networking/ping.c 13 --- busybox-1.2.1.orig/networking/ping.c 2006-07-01 00:42:02.000000000 +0200 14 +++ busybox-1.2.1/networking/ping.c 2006-10-23 16:37:36.000000000 +0200 15 @@ -155,6 +155,7 @@ 16 16 #else /* ! CONFIG_FEATURE_FANCY_PING */ 17 17 /* full(er) version */ … … 21 21 static int datalen; /* intentionally uninitialized to work around gcc bug */ 22 22 23 @@ -33 0,6 +331,11 @@23 @@ -332,6 +333,11 @@ 24 24 25 25 pingsock = create_icmp_socket(); … … 33 33 34 34 pingaddr.sin_family = AF_INET; 35 @@ -3 49,10 +355,14 @@35 @@ -351,10 +357,14 @@ 36 36 setsockopt(pingsock, SOL_SOCKET, SO_RCVBUF, (char *) &sockopt, 37 37 sizeof(sockopt)); … … 52 52 signal(SIGINT, pingstats); 53 53 54 @@ -3 88,6 +398,7 @@54 @@ -390,6 +400,7 @@ 55 55 argc--; 56 56 argv++; … … 60 60 while (argc >= 1 && **argv == '-') { 61 61 thisarg = *argv; 62 @@ -4 08,6 +419,27 @@62 @@ -410,6 +421,27 @@ 63 63 argv++; 64 64 datalen = atoi(*argv); trunk/freewrt/package/busybox/patches/911-ipkg.patch
r1 r993 1 # 2 # add ipkg support to busybox 3 # 4 diff -ruN busybox-1.1.2-orig/Makefile busybox-1.1.2+ipkg-0.99.162/Makefile 5 --- busybox-1.1.2-orig/Makefile 2006-04-10 21:45:46.000000000 +0200 6 +++ busybox-1.1.2+ipkg-0.99.162/Makefile 2006-05-09 02:06:48.000000000 +0200 7 @@ -25,7 +25,7 @@ 8 export srctree=$(top_srcdir) 9 vpath %/Config.in $(srctree) 10 11 -DIRS:=applets archival archival/libunarchive coreutils console-tools \ 12 +DIRS:=applets archival archival/libipkg archival/libunarchive coreutils console-tools \ 13 debianutils editors findutils init miscutils modutils networking \ 14 networking/libiproute networking/udhcp procps loginutils shell \ 15 sysklogd util-linux e2fsprogs libpwdgrp coreutils/libcoreutils libbb 16 diff -ruN busybox-1.1.2-orig/archival/Config.in busybox-1.1.2+ipkg-0.99.162/archival/Config.in 17 --- busybox-1.1.2-orig/archival/Config.in 2006-03-22 22:16:20.000000000 +0100 18 +++ busybox-1.1.2+ipkg-0.99.162/archival/Config.in 2006-05-09 02:06:48.000000000 +0200 1 diff -ruN busybox-1.2.0-orig/archival/Config.in busybox-1.2.0+ipkg-0.99.162/archival/Config.in 2 --- busybox-1.2.0-orig/archival/Config.in 2006-07-01 00:42:04.000000000 +0200 3 +++ busybox-1.2.0+ipkg-0.99.162/archival/Config.in 2006-07-22 16:31:25.000000000 +0200 19 4 @@ -121,6 +121,14 @@ 20 5 gzip is used to compress files. … … 32 17 bool "rpm2cpio" 33 18 default n 34 diff -ruN busybox-1.1.2-orig/archival/Makefile.in busybox-1.1.2+ipkg-0.99.162/archival/Makefile.in 35 --- busybox-1.1.2-orig/archival/Makefile.in 2006-03-22 22:16:20.000000000 +0100 36 +++ busybox-1.1.2+ipkg-0.99.162/archival/Makefile.in 2006-05-09 02:06:48.000000000 +0200 37 @@ -20,6 +20,7 @@ 38 ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o 39 ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o 40 ARCHIVAL-$(CONFIG_GZIP) += gzip.o 41 +ARCHIVAL-$(CONFIG_IPKG) += ipkg.o 42 ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o 43 ARCHIVAL-$(CONFIG_RPM) += rpm.o 44 ARCHIVAL-$(CONFIG_TAR) += tar.o 45 diff -ruN busybox-1.1.2-orig/archival/dpkg.c busybox-1.1.2+ipkg-0.99.162/archival/dpkg.c 46 --- busybox-1.1.2-orig/archival/dpkg.c 2006-03-22 22:16:20.000000000 +0100 47 +++ busybox-1.1.2+ipkg-0.99.162/archival/dpkg.c 2006-05-09 02:06:48.000000000 +0200 48 @@ -1530,6 +1530,10 @@ 19 diff -ruN busybox-1.2.0-orig/archival/dpkg.c busybox-1.2.0+ipkg-0.99.162/archival/dpkg.c 20 --- busybox-1.2.0-orig/archival/dpkg.c 2006-07-01 00:42:04.000000000 +0200 21 +++ busybox-1.2.0+ipkg-0.99.162/archival/dpkg.c 2006-07-22 16:31:25.000000000 +0200 22 @@ -1430,6 +1430,10 @@ 49 23 return(ar_handle->sub_archive->buffer); 50 24 } … … 57 31 { 58 32 char *name_ptr = archive_handle->file_header->name; 59 @@ -1 544,6 +1548,8 @@33 @@ -1442,6 +1446,8 @@ 60 34 return; 61 35 } … … 66 40 { 67 41 const char *package_name = name_hashtable[package_hashtable[deb_file->package]->name]; 68 diff -ruN busybox-1. 1.2-orig/archival/ipkg.c busybox-1.1.2+ipkg-0.99.162/archival/ipkg.c69 --- busybox-1. 1.2-orig/archival/ipkg.c 1970-01-01 01:00:00.000000000 +010070 +++ busybox-1. 1.2+ipkg-0.99.162/archival/ipkg.c 2006-05-09 02:06:48.000000000 +020042 diff -ruN busybox-1.2.0-orig/archival/ipkg.c busybox-1.2.0+ipkg-0.99.162/archival/ipkg.c 43 --- busybox-1.2.0-orig/archival/ipkg.c 1970-01-01 01:00:00.000000000 +0100 44 +++ busybox-1.2.0+ipkg-0.99.162/archival/ipkg.c 2006-07-22 16:31:25.000000000 +0200 71 45 @@ -0,0 +1,26 @@ 72 46 +/* ipkg.c - the itsy package management system … … 96 70 + return ipkg_op(argc, argv); 97 71 +} 98 diff -ruN busybox-1.1.2-orig/archival/libipkg/Makefile busybox-1.1.2+ipkg-0.99.162/archival/libipkg/Makefile 99 --- busybox-1.1.2-orig/archival/libipkg/Makefile 1970-01-01 01:00:00.000000000 +0100 100 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/Makefile 2006-05-09 02:06:48.000000000 +0200 101 @@ -0,0 +1,32 @@ 102 +# Makefile for busybox 103 +# 104 +# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 105 +# 106 +# This program is free software; you can redistribute it and/or modify 107 +# it under the terms of the GNU General Public License as published by 108 +# the Free Software Foundation; either version 2 of the License, or 109 +# (at your option) any later version. 110 +# 111 +# This program is distributed in the hope that it will be useful, 112 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 113 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 114 +# General Public License for more details. 115 +# 116 +# You should have received a copy of the GNU General Public License 117 +# along with this program; if not, write to the Free Software 118 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 119 +# 120 + 121 +top_srcdir=../.. 122 +top_builddir=../.. 123 +srcdir=$(top_srcdir)/archival/libipkg 124 +LIBIPKG_DIR:=./ 125 +include $(top_builddir)/Rules.mak 126 +include $(top_builddir)/.config 127 +include $(srcdir)/Makefile.in 128 +all: $(libraries-y) 129 +-include $(top_builddir)/.depend 130 + 131 +clean: 132 + rm -f *.o *.a $(AR_TARGET) 133 + 134 diff -ruN busybox-1.1.2-orig/archival/libipkg/Makefile.in busybox-1.1.2+ipkg-0.99.162/archival/libipkg/Makefile.in 135 --- busybox-1.1.2-orig/archival/libipkg/Makefile.in 1970-01-01 01:00:00.000000000 +0100 136 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/Makefile.in 2006-05-09 02:06:48.000000000 +0200 137 @@ -0,0 +1,85 @@ 138 +# Makefile for busybox 139 +# 140 +# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 141 +# 142 +# This program is free software; you can redistribute it and/or modify 143 +# it under the terms of the GNU General Public License as published by 144 +# the Free Software Foundation; either version 2 of the License, or 145 +# (at your option) any later version. 146 +# 147 +# This program is distributed in the hope that it will be useful, 148 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 149 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 150 +# General Public License for more details. 151 +# 152 +# You should have received a copy of the GNU General Public License 153 +# along with this program; if not, write to the Free Software 154 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 155 +# 156 + 157 +LIBIPKG_AR:=libipkg.a 158 +ifndef $(LIBIPKG_DIR) 159 +LIBIPKG_DIR:=$(top_builddir)/archival/libipkg/ 160 +endif 161 +srcdir=$(top_srcdir)/archival/libipkg 162 + 163 +LIBIPKG_CORE_SOURCES:= \ 164 + args.c \ 165 + libipkg.c \ 166 + user.c \ 167 + 168 +LIBIPKG_CMD_SOURCES:= \ 169 + ipkg_cmd.c \ 170 + ipkg_configure.c \ 171 + ipkg_download.c \ 172 + ipkg_install.c \ 173 + ipkg_remove.c \ 174 + ipkg_upgrade.c \ 175 + 176 +LIBIPKG_DB_SOURCES:= \ 177 + hash_table.c \ 178 + ipkg_conf.c \ 179 + ipkg_utils.c \ 180 + pkg.c \ 181 + pkg_depends.c \ 182 + pkg_extract.c \ 183 + pkg_hash.c \ 184 + pkg_parse.c \ 185 + pkg_vec.c \ 186 + 187 +LIBIPKG_LIST_SOURCES:= \ 188 + conffile.c \ 189 + conffile_list.c \ 190 + nv_pair.c \ 191 + nv_pair_list.c \ 192 + pkg_dest.c \ 193 + pkg_dest_list.c \ 194 + pkg_src.c \ 195 + pkg_src_list.c \ 196 + str_list.c \ 197 + void_list.c \ 198 + 199 +LIBIPKG_UTIL_SOURCES:= \ 200 + file_util.c \ 201 + ipkg_message.c \ 202 + md5.c \ 203 + str_util.c \ 204 + xsystem.c \ 205 + 206 +LIBIPKG-y += $(LIBIPKG_CORE_SOURCES) 207 +LIBIPKG-y += $(LIBIPKG_CMD_SOURCES) 208 +LIBIPKG-y += $(LIBIPKG_DB_SOURCES) 209 +LIBIPKG-y += $(LIBIPKG_LIST_SOURCES) 210 +LIBIPKG-y += $(LIBIPKG_UTIL_SOURCES) 211 +LIBIPKG_OBJS=$(patsubst %.c,$(LIBIPKG_DIR)%.o, $(LIBIPKG-y)) 212 + 213 +CFLAGS += -DIPKG_LIB -DIPKGLIBDIR="\"/usr/lib\"" -DHOST_CPU_STR="\"$(TARGET_ARCH)\"" 214 + 215 +libraries-y += $(LIBIPKG_DIR)$(LIBIPKG_AR) 216 + 217 +$(LIBIPKG_DIR)$(LIBIPKG_AR): $(LIBIPKG_OBJS) 218 + $(do_ar) 219 + 220 +$(LIBIPKG_OBJS): $(LIBIPKG_DIR)%.o : $(srcdir)/%.c 221 + $(compile.c) 222 + 223 diff -ruN busybox-1.1.2-orig/archival/libipkg/args.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/args.c 224 --- busybox-1.1.2-orig/archival/libipkg/args.c 1970-01-01 01:00:00.000000000 +0100 225 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/args.c 2006-05-09 02:12:03.000000000 +0200 72 diff -ruN busybox-1.2.0-orig/archival/libipkg/args.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/args.c 73 --- busybox-1.2.0-orig/archival/libipkg/args.c 1970-01-01 01:00:00.000000000 +0100 74 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/args.c 2006-07-22 16:31:25.000000000 +0200 226 75 @@ -0,0 +1,242 @@ 227 76 +/* args.c - parse command-line args … … 467 316 + bb_error_msg("version %s\n", IPKG_VERSION); 468 317 +} 469 diff -ruN busybox-1. 1.2-orig/archival/libipkg/args.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/args.h470 --- busybox-1. 1.2-orig/archival/libipkg/args.h 1970-01-01 01:00:00.000000000 +0100471 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/args.h 2006-05-09 02:12:03.000000000 +0200318 diff -ruN busybox-1.2.0-orig/archival/libipkg/args.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/args.h 319 --- busybox-1.2.0-orig/archival/libipkg/args.h 1970-01-01 01:00:00.000000000 +0100 320 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/args.h 2006-07-22 16:31:25.000000000 +0200 472 321 @@ -0,0 +1,72 @@ 473 322 +/* args.h - parse command-line args … … 543 392 + 544 393 +#endif 545 diff -ruN busybox-1. 1.2-orig/archival/libipkg/conffile.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/conffile.c546 --- busybox-1. 1.2-orig/archival/libipkg/conffile.c 1970-01-01 01:00:00.000000000 +0100547 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/conffile.c 2006-05-09 02:06:48.000000000 +0200394 diff -ruN busybox-1.2.0-orig/archival/libipkg/conffile.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile.c 395 --- busybox-1.2.0-orig/archival/libipkg/conffile.c 1970-01-01 01:00:00.000000000 +0100 396 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile.c 2006-07-22 16:31:25.000000000 +0200 548 397 @@ -0,0 +1,64 @@ 549 398 +/* conffile.c - the itsy package management system … … 611 460 + return ret; 612 461 +} 613 diff -ruN busybox-1. 1.2-orig/archival/libipkg/conffile.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/conffile.h614 --- busybox-1. 1.2-orig/archival/libipkg/conffile.h 1970-01-01 01:00:00.000000000 +0100615 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/conffile.h 2006-05-09 02:06:48.000000000 +0200462 diff -ruN busybox-1.2.0-orig/archival/libipkg/conffile.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile.h 463 --- busybox-1.2.0-orig/archival/libipkg/conffile.h 1970-01-01 01:00:00.000000000 +0100 464 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile.h 2006-07-22 16:31:25.000000000 +0200 616 465 @@ -0,0 +1,30 @@ 617 466 +/* conffile.h - the itsy package management system … … 645 494 +#endif 646 495 + 647 diff -ruN busybox-1. 1.2-orig/archival/libipkg/conffile_list.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/conffile_list.c648 --- busybox-1. 1.2-orig/archival/libipkg/conffile_list.c 1970-01-01 01:00:00.000000000 +0100649 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/conffile_list.c 2006-05-09 02:06:48.000000000 +0200496 diff -ruN busybox-1.2.0-orig/archival/libipkg/conffile_list.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile_list.c 497 --- busybox-1.2.0-orig/archival/libipkg/conffile_list.c 1970-01-01 01:00:00.000000000 +0100 498 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile_list.c 2006-07-22 16:31:25.000000000 +0200 650 499 @@ -0,0 +1,47 @@ 651 500 +/* conffile_list.c - the itsy package management system … … 696 545 +} 697 546 + 698 diff -ruN busybox-1. 1.2-orig/archival/libipkg/conffile_list.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/conffile_list.h699 --- busybox-1. 1.2-orig/archival/libipkg/conffile_list.h 1970-01-01 01:00:00.000000000 +0100700 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/conffile_list.h 2006-05-09 02:06:48.000000000 +0200547 diff -ruN busybox-1.2.0-orig/archival/libipkg/conffile_list.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile_list.h 548 --- busybox-1.2.0-orig/archival/libipkg/conffile_list.h 1970-01-01 01:00:00.000000000 +0100 549 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/conffile_list.h 2006-07-22 16:31:25.000000000 +0200 701 550 @@ -0,0 +1,36 @@ 702 551 +/* conffile_list.h - the itsy package management system … … 736 585 +#endif 737 586 + 738 diff -ruN busybox-1. 1.2-orig/archival/libipkg/file_util.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/file_util.c739 --- busybox-1. 1.2-orig/archival/libipkg/file_util.c 1970-01-01 01:00:00.000000000 +0100740 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/file_util.c 2006-05-09 02:06:48.000000000 +0200587 diff -ruN busybox-1.2.0-orig/archival/libipkg/file_util.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/file_util.c 588 --- busybox-1.2.0-orig/archival/libipkg/file_util.c 1970-01-01 01:00:00.000000000 +0100 589 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/file_util.c 2006-07-22 16:31:25.000000000 +0200 741 590 @@ -0,0 +1,177 @@ 742 591 +/* file_util.c - convenience routines for common stat operations … … 917 766 +} 918 767 + 919 diff -ruN busybox-1. 1.2-orig/archival/libipkg/file_util.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/file_util.h920 --- busybox-1. 1.2-orig/archival/libipkg/file_util.h 1970-01-01 01:00:00.000000000 +0100921 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/file_util.h 2006-05-09 02:06:48.000000000 +0200768 diff -ruN busybox-1.2.0-orig/archival/libipkg/file_util.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/file_util.h 769 --- busybox-1.2.0-orig/archival/libipkg/file_util.h 1970-01-01 01:00:00.000000000 +0100 770 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/file_util.h 2006-07-22 16:31:25.000000000 +0200 922 771 @@ -0,0 +1,29 @@ 923 772 +/* file_util.h - convenience routines for common file operations … … 950 799 + 951 800 +#endif 952 diff -ruN busybox-1. 1.2-orig/archival/libipkg/hash_table.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/hash_table.c953 --- busybox-1. 1.2-orig/archival/libipkg/hash_table.c 1970-01-01 01:00:00.000000000 +0100954 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/hash_table.c 2006-05-09 02:06:48.000000000 +0200801 diff -ruN busybox-1.2.0-orig/archival/libipkg/hash_table.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/hash_table.c 802 --- busybox-1.2.0-orig/archival/libipkg/hash_table.c 1970-01-01 01:00:00.000000000 +0100 803 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/hash_table.c 2006-07-22 16:31:25.000000000 +0200 955 804 @@ -0,0 +1,155 @@ 956 805 +/* hash.c - hash tables for ipkg … … 1109 958 +} 1110 959 + 1111 diff -ruN busybox-1. 1.2-orig/archival/libipkg/hash_table.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/hash_table.h1112 --- busybox-1. 1.2-orig/archival/libipkg/hash_table.h 1970-01-01 01:00:00.000000000 +01001113 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/hash_table.h 2006-05-09 02:06:48.000000000 +0200960 diff -ruN busybox-1.2.0-orig/archival/libipkg/hash_table.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/hash_table.h 961 --- busybox-1.2.0-orig/archival/libipkg/hash_table.h 1970-01-01 01:00:00.000000000 +0100 962 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/hash_table.h 2006-07-22 16:31:25.000000000 +0200 1114 963 @@ -0,0 +1,44 @@ 1115 964 +/* hash.h - hash tables for ipkg … … 1157 1006 + 1158 1007 +#endif /* _HASH_TABLE_H_ */ 1159 diff -ruN busybox-1.1.2-orig/archival/libipkg/ipkg.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg.h 1160 --- busybox-1.1.2-orig/archival/libipkg/ipkg.h 1970-01-01 01:00:00.000000000 +0100 1161 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg.h 2006-05-09 02:06:48.000000000 +0200 1162 @@ -0,0 +1,74 @@ 1163 +/* ipkg.h - the itsy package management system 1164 + 1165 + Carl D. Worth 1166 + 1167 + Copyright (C) 2001 University of Southern California 1168 + 1169 + This program is free software; you can redistribute it and/or 1170 + modify it under the terms of the GNU General Public License as 1171 + published by the Free Software Foundation; either version 2, or (at 1172 + your option) any later version. 1173 + 1174 + This program is distributed in the hope that it will be useful, but 1175 + WITHOUT ANY WARRANTY; without even the implied warranty of 1176 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1177 + General Public License for more details. 1178 +*/ 1179 + 1180 +#ifndef IPKG_H 1181 +#define IPKG_H 1182 + 1183 +/* 1184 +#ifdef HAVE_CONFIG_H 1185 +#include "config.h" 1186 +#endif 1187 +*/ 1188 + 1189 +#if 0 1190 +#define IPKG_DEBUG_NO_TMP_CLEANUP 1191 +#endif 1192 + 1193 +#include "ipkg_includes.h" 1194 +#include "ipkg_conf.h" 1195 +#include "ipkg_message.h" 1196 + 1197 +#define IPKG_PKG_EXTENSION ".ipk" 1198 +#define DPKG_PKG_EXTENSION ".deb" 1199 + 1200 +#define IPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-" 1201 +#define IPKG_PKG_VERSION_SEP_CHAR '_' 1202 + 1203 +#define IPKG_STATE_DIR_PREFIX IPKGLIBDIR"/ipkg" 1204 +#define IPKG_LISTS_DIR_SUFFIX "lists" 1205 +#define IPKG_INFO_DIR_SUFFIX "info" 1206 +#define IPKG_STATUS_FILE_SUFFIX "status" 1207 + 1208 +#define IPKG_BACKUP_SUFFIX "-ipkg.backup" 1209 + 1210 +#define IPKG_LIST_DESCRIPTION_LENGTH 128 1211 + 1212 +#define IPKG_VERSION "0.99.162" 1213 + 1214 + 1215 +enum ipkg_error { 1216 + IPKG_SUCCESS = 0, 1217 + IPKG_PKG_DEPS_UNSATISFIED, 1218 + IPKG_PKG_IS_ESSENTIAL, 1219 + IPKG_PKG_HAS_DEPENDENTS, 1220 + IPKG_PKG_HAS_NO_CANDIDATE 1221 +}; 1222 +typedef enum ipkg_error ipkg_error_t; 1223 + 1224 +extern int ipkg_state_changed; 1225 + 1226 + 1227 +struct errlist { 1228 + char * errmsg; 1229 + struct errlist * next; 1230 +} ; 1231 + 1232 +extern struct errlist* error_list; 1233 + 1234 +extern ipkg_conf_t *global_conf; 1235 + 1236 +#endif 1237 diff -ruN busybox-1.1.2-orig/archival/libipkg/ipkg_cmd.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_cmd.c 1238 --- busybox-1.1.2-orig/archival/libipkg/ipkg_cmd.c 1970-01-01 01:00:00.000000000 +0100 1239 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_cmd.c 2006-05-09 02:23:37.000000000 +0200 1008 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_cmd.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_cmd.c 1009 --- busybox-1.2.0-orig/archival/libipkg/ipkg_cmd.c 1970-01-01 01:00:00.000000000 +0100 1010 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_cmd.c 2006-07-22 16:31:25.000000000 +0200 1240 1011 @@ -0,0 +1,1431 @@ 1241 1012 +/* ipkg_cmd.c - the itsy package management system … … 2670 2441 + 2671 2442 + 2672 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_cmd.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_cmd.h2673 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_cmd.h 1970-01-01 01:00:00.000000000 +01002674 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_cmd.h 2006-05-09 02:06:48.000000000 +02002443 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_cmd.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_cmd.h 2444 --- busybox-1.2.0-orig/archival/libipkg/ipkg_cmd.h 1970-01-01 01:00:00.000000000 +0100 2445 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_cmd.h 2006-07-22 16:31:25.000000000 +0200 2675 2446 @@ -0,0 +1,46 @@ 2676 2447 +/* ipkg_cmd.h - the itsy package management system … … 2720 2491 + 2721 2492 +#endif 2722 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_conf.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_conf.c2723 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_conf.c 1970-01-01 01:00:00.000000000 +01002724 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_conf.c 2006-05-09 02:12:04.000000000 +02002493 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_conf.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_conf.c 2494 --- busybox-1.2.0-orig/archival/libipkg/ipkg_conf.c 1970-01-01 01:00:00.000000000 +0100 2495 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_conf.c 2006-07-22 16:31:25.000000000 +0200 2725 2496 @@ -0,0 +1,711 @@ 2726 2497 +/* ipkg_conf.c - the itsy package management system … … 3435 3206 + return root_filename; 3436 3207 +} 3437 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_conf.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_conf.h3438 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_conf.h 1970-01-01 01:00:00.000000000 +01003439 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_conf.h 2006-05-09 02:06:48.000000000 +02003208 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_conf.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_conf.h 3209 --- busybox-1.2.0-orig/archival/libipkg/ipkg_conf.h 1970-01-01 01:00:00.000000000 +0100 3210 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_conf.h 2006-07-22 16:31:25.000000000 +0200 3440 3211 @@ -0,0 +1,107 @@ 3441 3212 +/* ipkg_conf.h - the itsy package management system … … 3546 3317 + 3547 3318 +#endif 3548 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_configure.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_configure.c3549 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_configure.c 1970-01-01 01:00:00.000000000 +01003550 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_configure.c 2006-05-09 02:06:48.000000000 +02003319 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_configure.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_configure.c 3320 --- busybox-1.2.0-orig/archival/libipkg/ipkg_configure.c 1970-01-01 01:00:00.000000000 +0100 3321 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_configure.c 2006-07-22 16:31:25.000000000 +0200 3551 3322 @@ -0,0 +1,40 @@ 3552 3323 +/* ipkg_configure.c - the itsy package management system … … 3590 3361 +} 3591 3362 + 3592 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_configure.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_configure.h3593 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_configure.h 1970-01-01 01:00:00.000000000 +01003594 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_configure.h 2006-05-09 02:06:48.000000000 +02003363 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_configure.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_configure.h 3364 --- busybox-1.2.0-orig/archival/libipkg/ipkg_configure.h 1970-01-01 01:00:00.000000000 +0100 3365 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_configure.h 2006-07-22 16:31:25.000000000 +0200 3595 3366 @@ -0,0 +1,25 @@ 3596 3367 +/* ipkg_configure.h - the itsy package management system … … 3619 3390 + 3620 3391 +#endif 3621 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_download.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_download.c3622 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_download.c 1970-01-01 01:00:00.000000000 +01003623 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_download.c 2006-05-09 02:12:04.000000000 +02003392 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_download.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_download.c 3393 --- busybox-1.2.0-orig/archival/libipkg/ipkg_download.c 1970-01-01 01:00:00.000000000 +0100 3394 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_download.c 2006-07-22 16:31:25.000000000 +0200 3624 3395 @@ -0,0 +1,195 @@ 3625 3396 +/* ipkg_download.c - the itsy package management system … … 3818 3589 + return 0; 3819 3590 +} 3820 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_download.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_download.h3821 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_download.h 1970-01-01 01:00:00.000000000 +01003822 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_download.h 2006-05-09 02:06:48.000000000 +02003591 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_download.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_download.h 3592 --- busybox-1.2.0-orig/archival/libipkg/ipkg_download.h 1970-01-01 01:00:00.000000000 +0100 3593 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_download.h 2006-07-22 16:31:25.000000000 +0200 3823 3594 @@ -0,0 +1,30 @@ 3824 3595 +/* ipkg_download.h - the itsy package management system … … 3852 3623 + 3853 3624 +#endif 3854 diff -ruN busybox-1.1.2-orig/archival/libipkg/ipkg_includes.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_includes.h 3855 --- busybox-1.1.2-orig/archival/libipkg/ipkg_includes.h 1970-01-01 01:00:00.000000000 +0100 3856 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_includes.h 2006-05-09 02:06:48.000000000 +0200 3625 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg.h 3626 --- busybox-1.2.0-orig/archival/libipkg/ipkg.h 1970-01-01 01:00:00.000000000 +0100 3627 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg.h 2006-07-22 16:31:25.000000000 +0200 3628 @@ -0,0 +1,74 @@ 3629 +/* ipkg.h - the itsy package management system 3630 + 3631 + Carl D. Worth 3632 + 3633 + Copyright (C) 2001 University of Southern California 3634 + 3635 + This program is free software; you can redistribute it and/or 3636 + modify it under the terms of the GNU General Public License as 3637 + published by the Free Software Foundation; either version 2, or (at 3638 + your option) any later version. 3639 + 3640 + This program is distributed in the hope that it will be useful, but 3641 + WITHOUT ANY WARRANTY; without even the implied warranty of 3642 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3643 + General Public License for more details. 3644 +*/ 3645 + 3646 +#ifndef IPKG_H 3647 +#define IPKG_H 3648 + 3649 +/* 3650 +#ifdef HAVE_CONFIG_H 3651 +#include "config.h" 3652 +#endif 3653 +*/ 3654 + 3655 +#if 0 3656 +#define IPKG_DEBUG_NO_TMP_CLEANUP 3657 +#endif 3658 + 3659 +#include "ipkg_includes.h" 3660 +#include "ipkg_conf.h" 3661 +#include "ipkg_message.h" 3662 + 3663 +#define IPKG_PKG_EXTENSION ".ipk" 3664 +#define DPKG_PKG_EXTENSION ".deb" 3665 + 3666 +#define IPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-" 3667 +#define IPKG_PKG_VERSION_SEP_CHAR '_' 3668 + 3669 +#define IPKG_STATE_DIR_PREFIX IPKGLIBDIR"/ipkg" 3670 +#define IPKG_LISTS_DIR_SUFFIX "lists" 3671 +#define IPKG_INFO_DIR_SUFFIX "info" 3672 +#define IPKG_STATUS_FILE_SUFFIX "status" 3673 + 3674 +#define IPKG_BACKUP_SUFFIX "-ipkg.backup" 3675 + 3676 +#define IPKG_LIST_DESCRIPTION_LENGTH 128 3677 + 3678 +#define IPKG_VERSION "0.99.162" 3679 + 3680 + 3681 +enum ipkg_error { 3682 + IPKG_SUCCESS = 0, 3683 + IPKG_PKG_DEPS_UNSATISFIED, 3684 + IPKG_PKG_IS_ESSENTIAL, 3685 + IPKG_PKG_HAS_DEPENDENTS, 3686 + IPKG_PKG_HAS_NO_CANDIDATE 3687 +}; 3688 +typedef enum ipkg_error ipkg_error_t; 3689 + 3690 +extern int ipkg_state_changed; 3691 + 3692 + 3693 +struct errlist { 3694 + char * errmsg; 3695 + struct errlist * next; 3696 +} ; 3697 + 3698 +extern struct errlist* error_list; 3699 + 3700 +extern ipkg_conf_t *global_conf; 3701 + 3702 +#endif 3703 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_includes.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_includes.h 3704 --- busybox-1.2.0-orig/archival/libipkg/ipkg_includes.h 1970-01-01 01:00:00.000000000 +0100 3705 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_includes.h 2006-07-22 16:31:25.000000000 +0200 3857 3706 @@ -0,0 +1,79 @@ 3858 3707 +#ifndef IPKG_INCLUDES_H … … 3935 3784 + 3936 3785 +#endif /* IPKG_INCLUDES_H */ 3937 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_install.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_install.c3938 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_install.c 1970-01-01 01:00:00.000000000 +01003939 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_install.c 2006-05-09 02:12:04.000000000 +02003786 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_install.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_install.c 3787 --- busybox-1.2.0-orig/archival/libipkg/ipkg_install.c 1970-01-01 01:00:00.000000000 +0100 3788 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_install.c 2006-07-22 16:31:25.000000000 +0200 3940 3789 @@ -0,0 +1,1942 @@ 3941 3790 +/* ipkg_install.c - the itsy package management system … … 5881 5730 + 5882 5731 +#endif 5883 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_install.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_install.h5884 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_install.h 1970-01-01 01:00:00.000000000 +01005885 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_install.h 2006-05-09 02:12:04.000000000 +02005732 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_install.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_install.h 5733 --- busybox-1.2.0-orig/archival/libipkg/ipkg_install.h 1970-01-01 01:00:00.000000000 +0100 5734 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_install.h 2006-07-22 16:31:25.000000000 +0200 5886 5735 @@ -0,0 +1,35 @@ 5887 5736 +/* ipkg_install.h - the itsy package management system … … 5920 5769 + 5921 5770 +#endif 5922 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_message.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_message.c5923 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_message.c 1970-01-01 01:00:00.000000000 +01005924 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_message.c 2006-05-09 02:06:48.000000000 +02005771 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_message.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_message.c 5772 --- busybox-1.2.0-orig/archival/libipkg/ipkg_message.c 1970-01-01 01:00:00.000000000 +0100 5773 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_message.c 2006-07-22 16:31:25.000000000 +0200 5925 5774 @@ -0,0 +1,61 @@ 5926 5775 +/* ipkg_message.c - the itsy package management system … … 5985 5834 +} 5986 5835 +#endif 5987 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_message.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_message.h5988 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_message.h 1970-01-01 01:00:00.000000000 +01005989 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_message.h 2006-05-09 02:06:48.000000000 +02005836 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_message.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_message.h 5837 --- busybox-1.2.0-orig/archival/libipkg/ipkg_message.h 1970-01-01 01:00:00.000000000 +0100 5838 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_message.h 2006-07-22 16:31:25.000000000 +0200 5990 5839 @@ -0,0 +1,32 @@ 5991 5840 +/* ipkg_message.h - the itsy package management system … … 6021 5870 + 6022 5871 +#endif /* _IPKG_MESSAGE_H_ */ 6023 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_remove.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_remove.c6024 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_remove.c 1970-01-01 01:00:00.000000000 +01006025 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_remove.c 2006-05-09 02:12:04.000000000 +02005872 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_remove.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_remove.c 5873 --- busybox-1.2.0-orig/archival/libipkg/ipkg_remove.c 1970-01-01 01:00:00.000000000 +0100 5874 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_remove.c 2006-07-22 16:31:25.000000000 +0200 6026 5875 @@ -0,0 +1,383 @@ 6027 5876 +/* ipkg_remove.c - the itsy package management system … … 6408 6257 + return 0; 6409 6258 +} 6410 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_remove.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_remove.h6411 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_remove.h 1970-01-01 01:00:00.000000000 +01006412 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_remove.h 2006-05-09 02:12:04.000000000 +02006259 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_remove.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_remove.h 6260 --- busybox-1.2.0-orig/archival/libipkg/ipkg_remove.h 1970-01-01 01:00:00.000000000 +0100 6261 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_remove.h 2006-07-22 16:31:25.000000000 +0200 6413 6262 @@ -0,0 +1,33 @@ 6414 6263 +/* ipkg_remove.h - the itsy package management system … … 6445 6294 + 6446 6295 +#endif 6447 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_upgrade.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.c6448 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_upgrade.c 1970-01-01 01:00:00.000000000 +01006449 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.c 2006-05-09 02:12:04.000000000 +02006296 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_upgrade.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.c 6297 --- busybox-1.2.0-orig/archival/libipkg/ipkg_upgrade.c 1970-01-01 01:00:00.000000000 +0100 6298 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.c 2006-07-22 16:31:25.000000000 +0200 6450 6299 @@ -0,0 +1,77 @@ 6451 6300 +/* ipkg_upgrade.c - the itsy package management system … … 6526 6375 + return ipkg_install_pkg(conf, new,1); 6527 6376 +} 6528 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_upgrade.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.h6529 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_upgrade.h 1970-01-01 01:00:00.000000000 +01006530 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.h 2006-05-09 02:06:48.000000000 +02006377 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_upgrade.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.h 6378 --- busybox-1.2.0-orig/archival/libipkg/ipkg_upgrade.h 1970-01-01 01:00:00.000000000 +0100 6379 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_upgrade.h 2006-07-22 16:31:25.000000000 +0200 6531 6380 @@ -0,0 +1,18 @@ 6532 6381 +/* ipkg_upgrade.c - the itsy package management system … … 6548 6397 + 6549 6398 +int ipkg_upgrade_pkg(ipkg_conf_t *conf, pkg_t *old); 6550 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_utils.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_utils.c6551 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_utils.c 1970-01-01 01:00:00.000000000 +01006552 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_utils.c 2006-05-09 02:06:48.000000000 +02006399 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_utils.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_utils.c 6400 --- busybox-1.2.0-orig/archival/libipkg/ipkg_utils.c 1970-01-01 01:00:00.000000000 +0100 6401 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_utils.c 2006-07-22 16:31:25.000000000 +0200 6553 6402 @@ -0,0 +1,181 @@ 6554 6403 +/* ipkg_utils.c - the itsy package management system … … 6733 6582 + 6734 6583 + 6735 diff -ruN busybox-1. 1.2-orig/archival/libipkg/ipkg_utils.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/ipkg_utils.h6736 --- busybox-1. 1.2-orig/archival/libipkg/ipkg_utils.h 1970-01-01 01:00:00.000000000 +01006737 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/ipkg_utils.h 2006-05-09 02:06:48.000000000 +02006584 diff -ruN busybox-1.2.0-orig/archival/libipkg/ipkg_utils.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_utils.h 6585 --- busybox-1.2.0-orig/archival/libipkg/ipkg_utils.h 1970-01-01 01:00:00.000000000 +0100 6586 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/ipkg_utils.h 2006-07-22 16:31:25.000000000 +0200 6738 6587 @@ -0,0 +1,29 @@ 6739 6588 +/* ipkg_utils.h - the itsy package management system … … 6766 6615 + 6767 6616 +#endif 6768 diff -ruN busybox-1. 1.2-orig/archival/libipkg/libipkg.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/libipkg.c6769 --- busybox-1. 1.2-orig/archival/libipkg/libipkg.c 1970-01-01 01:00:00.000000000 +01006770 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/libipkg.c 2006-05-09 02:12:05.000000000 +02006617 diff -ruN busybox-1.2.0-orig/archival/libipkg/libipkg.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/libipkg.c 6618 --- busybox-1.2.0-orig/archival/libipkg/libipkg.c 1970-01-01 01:00:00.000000000 +0100 6619 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/libipkg.c 2006-07-22 16:31:25.000000000 +0200 6771 6620 @@ -0,0 +1,527 @@ 6772 6621 +/* ipkglib.c - the itsy package management system … … 7297 7146 + 7298 7147 +#endif /* IPKG_LIB */ 7299 diff -ruN busybox-1. 1.2-orig/archival/libipkg/libipkg.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/libipkg.h7300 --- busybox-1. 1.2-orig/archival/libipkg/libipkg.h 1970-01-01 01:00:00.000000000 +01007301 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/libipkg.h 2006-05-09 02:06:48.000000000 +02007148 diff -ruN busybox-1.2.0-orig/archival/libipkg/libipkg.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/libipkg.h 7149 --- busybox-1.2.0-orig/archival/libipkg/libipkg.h 1970-01-01 01:00:00.000000000 +0100 7150 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/libipkg.h 2006-07-22 16:31:25.000000000 +0200 7302 7151 @@ -0,0 +1,87 @@ 7303 7152 +/* ipkglib.h - the itsy package management system … … 7388 7237 + 7389 7238 +#endif 7390 diff -ruN busybox-1.1.2-orig/archival/libipkg/md5.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/md5.c 7391 --- busybox-1.1.2-orig/archival/libipkg/md5.c 1970-01-01 01:00:00.000000000 +0100 7392 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/md5.c 2006-05-09 02:06:48.000000000 +0200 7239 diff -ruN busybox-1.2.0-orig/archival/libipkg/Makefile busybox-1.2.0+ipkg-0.99.162/archival/libipkg/Makefile 7240 --- busybox-1.2.0-orig/archival/libipkg/Makefile 1970-01-01 01:00:00.000000000 +0100 7241 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/Makefile 2006-07-22 16:31:25.000000000 +0200 7242 @@ -0,0 +1,32 @@ 7243 +# Makefile for busybox 7244 +# 7245 +# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 7246 +# 7247 +# This program is free software; you can redistribute it and/or modify 7248 +# it under the terms of the GNU General Public License as published by 7249 +# the Free Software Foundation; either version 2 of the License, or 7250 +# (at your option) any later version. 7251 +# 7252 +# This program is distributed in the hope that it will be useful, 7253 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 7254 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7255 +# General Public License for more details. 7256 +# 7257 +# You should have received a copy of the GNU General Public License 7258 +# along with this program; if not, write to the Free Software 7259 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 7260 +# 7261 + 7262 +top_srcdir=../.. 7263 +top_builddir=../.. 7264 +srcdir=$(top_srcdir)/archival/libipkg 7265 +LIBIPKG_DIR:=./ 7266 +include $(top_builddir)/Rules.mak 7267 +include $(top_builddir)/.config 7268 +include $(srcdir)/Makefile.in 7269 +all: $(libraries-y) 7270 +-include $(top_builddir)/.depend 7271 + 7272 +clean: 7273 + rm -f *.o *.a $(AR_TARGET) 7274 + 7275 diff -ruN busybox-1.2.0-orig/archival/libipkg/Makefile.in busybox-1.2.0+ipkg-0.99.162/archival/libipkg/Makefile.in 7276 --- busybox-1.2.0-orig/archival/libipkg/Makefile.in 1970-01-01 01:00:00.000000000 +0100 7277 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/Makefile.in 2006-10-08 12:29:39.000000000 +0200 7278 @@ -0,0 +1,88 @@ 7279 +# Makefile for busybox 7280 +# 7281 +# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 7282 +# 7283 +# This program is free software; you can redistribute it and/or modify 7284 +# it under the terms of the GNU General Public License as published by 7285 +# the Free Software Foundation; either version 2 of the License, or 7286 +# (at your option) any later version. 7287 +# 7288 +# This program is distributed in the hope that it will be useful, 7289 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 7290 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7291 +# General Public License for more details. 7292 +# 7293 +# You should have received a copy of the GNU General Public License 7294 +# along with this program; if not, write to the Free Software 7295 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 7296 +# 7297 + 7298 +LIBIPKG_AR:=libipkg.a 7299 +ifndef $(LIBIPKG_DIR) 7300 +LIBIPKG_DIR:=$(top_builddir)/archival/libipkg/ 7301 +endif 7302 +srcdir=$(top_srcdir)/archival/libipkg 7303 + 7304 +LIBIPKG_CORE_SOURCES:= \ 7305 + args.c \ 7306 + libipkg.c \ 7307 + user.c \ 7308 + 7309 +LIBIPKG_CMD_SOURCES:= \ 7310 + ipkg_cmd.c \ 7311 + ipkg_configure.c \ 7312 + ipkg_download.c \ 7313 + ipkg_install.c \ 7314 + ipkg_remove.c \ 7315 + ipkg_upgrade.c \ 7316 + 7317 +LIBIPKG_DB_SOURCES:= \ 7318 + hash_table.c \ 7319 + ipkg_conf.c \ 7320 + ipkg_utils.c \ 7321 + pkg.c \ 7322 + pkg_depends.c \ 7323 + pkg_extract.c \ 7324 + pkg_hash.c \ 7325 + pkg_parse.c \ 7326 + pkg_vec.c \ 7327 + 7328 +LIBIPKG_LIST_SOURCES:= \ 7329 + conffile.c \ 7330 + conffile_list.c \ 7331 + nv_pair.c \ 7332 + nv_pair_list.c \ 7333 + pkg_dest.c \ 7334 + pkg_dest_list.c \ 7335 + pkg_src.c \ 7336 + pkg_src_list.c \ 7337 + str_list.c \ 7338 + void_list.c \ 7339 + 7340 +LIBIPKG_UTIL_SOURCES:= \ 7341 + file_util.c \ 7342 + ipkg_message.c \ 7343 + md5.c \ 7344 + str_util.c \ 7345 + xsystem.c \ 7346 + 7347 +LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_CORE_SOURCES) 7348 +LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_CMD_SOURCES) 7349 +LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_DB_SOURCES) 7350 +LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_LIST_SOURCES) 7351 +LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_UTIL_SOURCES) 7352 +LIBIPKG_OBJS=$(patsubst %.c,$(LIBIPKG_DIR)%.o, $(LIBIPKG-y)) 7353 + 7354 +ifeq ($(strip $(IPKG_ARCH)),) 7355 +IPKG_ARCH:=$(TARGET_ARCH) 7356 +endif 7357 +CFLAGS += -DIPKG_LIB -DIPKGLIBDIR="\"/usr/lib\"" -DHOST_CPU_STR="\"$(IPKG_ARCH)\"" 7358 + 7359 +libraries-$(CONFIG_IPKG) += $(LIBIPKG_DIR)$(LIBIPKG_AR) 7360 + 7361 +$(LIBIPKG_DIR)$(LIBIPKG_AR): $(LIBIPKG_OBJS) 7362 + $(do_ar) 7363 + 7364 +$(LIBIPKG_OBJS): $(LIBIPKG_DIR)%.o : $(srcdir)/%.c 7365 + $(compile.c) 7366 + 7367 diff -ruN busybox-1.2.0-orig/archival/libipkg/md5.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/md5.c 7368 --- busybox-1.2.0-orig/archival/libipkg/md5.c 1970-01-01 01:00:00.000000000 +0100 7369 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/md5.c 2006-07-22 16:31:25.000000000 +0200 7393 7370 @@ -0,0 +1,48 @@ 7394 7371 +/* md5.c - wrappers to busybox md5 functions … … 7440 7417 +} 7441 7418 + 7442 diff -ruN busybox-1. 1.2-orig/archival/libipkg/md5.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/md5.h7443 --- busybox-1. 1.2-orig/archival/libipkg/md5.h 1970-01-01 01:00:00.000000000 +01007444 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/md5.h 2006-05-09 02:06:48.000000000 +02007419 diff -ruN busybox-1.2.0-orig/archival/libipkg/md5.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/md5.h 7420 --- busybox-1.2.0-orig/archival/libipkg/md5.h 1970-01-01 01:00:00.000000000 +0100 7421 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/md5.h 2006-07-22 16:31:25.000000000 +0200 7445 7422 @@ -0,0 +1,35 @@ 7446 7423 +/* md5.h - Compute MD5 checksum of files or strings according to the … … 7479 7456 +#endif 7480 7457 + 7481 diff -ruN busybox-1. 1.2-orig/archival/libipkg/nv_pair.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/nv_pair.c7482 --- busybox-1. 1.2-orig/archival/libipkg/nv_pair.c 1970-01-01 01:00:00.000000000 +01007483 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/nv_pair.c 2006-05-09 02:06:48.000000000 +02007458 diff -ruN busybox-1.2.0-orig/archival/libipkg/nv_pair.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair.c 7459 --- busybox-1.2.0-orig/archival/libipkg/nv_pair.c 1970-01-01 01:00:00.000000000 +0100 7460 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair.c 2006-07-22 16:31:25.000000000 +0200 7484 7461 @@ -0,0 +1,40 @@ 7485 7462 +/* nv_pair.c - the itsy package management system … … 7523 7500 + 7524 7501 + 7525 diff -ruN busybox-1. 1.2-orig/archival/libipkg/nv_pair.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/nv_pair.h7526 --- busybox-1. 1.2-orig/archival/libipkg/nv_pair.h 1970-01-01 01:00:00.000000000 +01007527 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/nv_pair.h 2006-05-09 02:06:48.000000000 +02007502 diff -ruN busybox-1.2.0-orig/archival/libipkg/nv_pair.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair.h 7503 --- busybox-1.2.0-orig/archival/libipkg/nv_pair.h 1970-01-01 01:00:00.000000000 +0100 7504 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair.h 2006-07-22 16:31:25.000000000 +0200 7528 7505 @@ -0,0 +1,32 @@ 7529 7506 +/* nv_pair.h - the itsy package management system … … 7559 7536 +#endif 7560 7537 + 7561 diff -ruN busybox-1. 1.2-orig/archival/libipkg/nv_pair_list.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/nv_pair_list.c7562 --- busybox-1. 1.2-orig/archival/libipkg/nv_pair_list.c 1970-01-01 01:00:00.000000000 +01007563 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/nv_pair_list.c 2006-05-09 02:06:48.000000000 +02007538 diff -ruN busybox-1.2.0-orig/archival/libipkg/nv_pair_list.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair_list.c 7539 --- busybox-1.2.0-orig/archival/libipkg/nv_pair_list.c 1970-01-01 01:00:00.000000000 +0100 7540 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair_list.c 2006-07-22 16:31:25.000000000 +0200 7564 7541 @@ -0,0 +1,98 @@ 7565 7542 +/* nv_pair_list.c - the itsy package management system … … 7661 7638 + return NULL; 7662 7639 +} 7663 diff -ruN busybox-1. 1.2-orig/archival/libipkg/nv_pair_list.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/nv_pair_list.h7664 --- busybox-1. 1.2-orig/archival/libipkg/nv_pair_list.h 1970-01-01 01:00:00.000000000 +01007665 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/nv_pair_list.h 2006-05-09 02:06:48.000000000 +02007640 diff -ruN busybox-1.2.0-orig/archival/libipkg/nv_pair_list.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair_list.h 7641 --- busybox-1.2.0-orig/archival/libipkg/nv_pair_list.h 1970-01-01 01:00:00.000000000 +0100 7642 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/nv_pair_list.h 2006-07-22 16:31:25.000000000 +0200 7666 7643 @@ -0,0 +1,60 @@ 7667 7644 +/* nv_pair_list.h - the itsy package management system … … 7725 7702 +#endif 7726 7703 + 7727 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg.c7728 --- busybox-1. 1.2-orig/archival/libipkg/pkg.c 1970-01-01 01:00:00.000000000 +01007729 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg.c 2006-05-09 02:12:05.000000000 +02007704 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg.c 7705 --- busybox-1.2.0-orig/archival/libipkg/pkg.c 1970-01-01 01:00:00.000000000 +0100 7706 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg.c 2006-07-22 16:31:25.000000000 +0200 7730 7707 @@ -0,0 +1,1754 @@ 7731 7708 +/* pkg.c - the itsy package management system … … 9483 9460 + return 0; 9484 9461 +} 9485 diff -ruN busybox-1.1.2-orig/archival/libipkg/pkg.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg.h 9486 --- busybox-1.1.2-orig/archival/libipkg/pkg.h 1970-01-01 01:00:00.000000000 +0100 9487 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg.h 2006-05-09 02:12:05.000000000 +0200 9488 @@ -0,0 +1,232 @@ 9489 +/* pkg.h - the itsy package management system 9490 + 9491 + Carl D. Worth 9492 + 9493 + Copyright (C) 2001 University of Southern California 9494 + 9495 + This program is free software; you can redistribute it and/or 9496 + modify it under the terms of the GNU General Public License as 9497 + published by the Free Software Foundation; either version 2, or (at 9498 + your option) any later version. 9499 + 9500 + This program is distributed in the hope that it will be useful, but 9501 + WITHOUT ANY WARRANTY; without even the implied warranty of 9502 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9503 + General Public License for more details. 9504 +*/ 9505 + 9506 +#ifndef PKG_H 9507 +#define PKG_H 9508 + 9509 +#include <sys/types.h> 9510 +#include <sys/stat.h> 9511 +#include <unistd.h> 9512 + 9513 +#include "pkg_vec.h" 9514 +#include "str_list.h" 9515 +#include "pkg_src.h" 9516 +#include "pkg_dest.h" 9517 +#include "ipkg_conf.h" 9518 +#include "conffile_list.h" 9519 + 9520 +struct ipkg_conf; 9521 + 9522 + 9523 +#define ARRAY_SIZE(array) sizeof(array) / sizeof((array)[0]) 9524 + 9525 +/* I think "Size" is currently the shortest field name */ 9526 +#define PKG_MINIMUM_FIELD_NAME_LEN 4 9527 + 9528 +enum pkg_state_want 9529 +{ 9530 + SW_UNKNOWN = 1, 9531 + SW_INSTALL, 9532 + SW_DEINSTALL, 9533 + SW_PURGE, 9534 + SW_LAST_STATE_WANT 9535 +}; 9536 +typedef enum pkg_state_want pkg_state_want_t; 9537 + 9538 +enum pkg_state_flag 9539 +{ 9540 + SF_OK = 0, 9541 + SF_REINSTREQ = 1, 9542 + SF_HOLD = 2, /* do not upgrade version */ 9543 + SF_REPLACE = 4, /* replace this package */ 9544 + SF_NOPRUNE = 8, /* do not remove obsolete files */ 9545 + SF_PREFER = 16, /* prefer this version */ 9546 + SF_OBSOLETE = 32, /* old package in upgrade pair */ 9547 + SF_MARKED = 64, /* temporary mark */ 9548 + SF_FILELIST_CHANGED = 128, /* needs filelist written */ 9549 + SF_USER = 256, 9550 + SF_LAST_STATE_FLAG 9551 +}; 9552 +typedef enum pkg_state_flag pkg_state_flag_t; 9553 +#define SF_NONVOLATILE_FLAGS (SF_HOLD|SF_NOPRUNE|SF_PREFER|SF_OBSOLETE|SF_USER) 9554 + 9555 +enum pkg_state_status 9556 +{ 9557 + SS_NOT_INSTALLED = 1, 9558 + SS_UNPACKED, 9559 + SS_HALF_CONFIGURED, 9560 + SS_INSTALLED, 9561 + SS_HALF_INSTALLED, 9562 + SS_CONFIG_FILES, 9563 + SS_POST_INST_FAILED, 9564 + SS_REMOVAL_FAILED, 9565 + SS_LAST_STATE_STATUS 9566 +}; 9567 +typedef enum pkg_state_status pkg_state_status_t; 9568 + 9569 +struct abstract_pkg{ 9570 + char * name; 9571 + int dependencies_checked; 9572 + pkg_vec_t * pkgs; 9573 + pkg_state_status_t state_status; 9574 + pkg_state_flag_t state_flag; 9575 + struct abstract_pkg ** depended_upon_by; /* @@@@ this should be abstract_pkg_vec_t -Jamey */ 9576 + abstract_pkg_vec_t * provided_by; 9577 + abstract_pkg_vec_t * replaced_by; 9578 +}; 9579 + 9580 +#include "pkg_depends.h" 9581 + 9582 +/* XXX: CLEANUP: I'd like to clean up pkg_t in several ways: 9583 + 9584 + The 3 version fields should go into a single version struct. (This 9585 + is especially important since, currently, pkg->version can easily 9586 + be mistaken for pkg_verson_str_alloc(pkg) although they are very 9587 + distinct. This has been the source of multiple bugs. 9588 + 9589 + The 3 state fields could possibly also go into their own struct. 9590 + 9591 + All fields which deal with lists of packages, (Depends, 9592 + Pre-Depends, Provides, Suggests, Recommends, Enhances), should each 9593 + be handled by a single struct in pkg_t 9594 + 9595 + All string fields for which there is a small set of possible 9596 + values, (section, maintainer, architecture, maybe version?), that 9597 + are reused among different packages -- for all such packages we 9598 + should move from "char *"s to some atom datatype to share data 9599 + storage and use less memory. We might even do reference counting, 9600 + but probably not since most often we only create new pkg_t structs, 9601 + we don't often free them. */ 9602 +struct pkg 9603 +{ 9604 + char *name; 9605 + unsigned long epoch; 9606 + char *version; 9607 + char *revision; 9608 + char *familiar_revision; 9609 + pkg_src_t *src; 9610 + pkg_dest_t *dest; 9611 + char *architecture; 9612 + char *section; 9613 + char *maintainer; 9614 + char *description; 9615 + pkg_state_want_t state_want; 9616 + pkg_state_flag_t state_flag; 9617 + pkg_state_status_t state_status; 9618 + char **depends_str; 9619 + int depends_count; 9620 + char **pre_depends_str; 9621 + int pre_depends_count; 9622 + char **recommends_str; 9623 + int recommends_count; 9624 + char **suggests_str; 9625 + int suggests_count; 9626 + compound_depend_t * depends; 9627 + 9628 + /* Abhaya: new conflicts */ 9629 + char **conflicts_str; 9630 + compound_depend_t * conflicts; 9631 + int conflicts_count; 9632 + 9633 + char **replaces_str; 9634 + int replaces_count; 9635 + abstract_pkg_t ** replaces; 9636 + 9637 + char **provides_str; 9638 + int provides_count; 9639 + abstract_pkg_t ** provides; 9640 + 9641 + abstract_pkg_t *parent; 9642 + 9643 + pkg_t *old_pkg; /* during upgrade, points from installee to previously installed */ 9644 + 9645 + char *filename; 9646 + char *local_filename; 9647 + char *url; 9648 + char *tmp_unpack_dir; 9649 + char *md5sum; 9650 + char *size; 9651 + char *installed_size; 9652 + char *priority; 9653 + char *source; 9654 + conffile_list_t conffiles; 9655 + time_t installed_time; 9656 + /* As pointer for lazy evaluation */ 9657 + str_list_t *installed_files; 9658 + /* XXX: CLEANUP: I'd like to perhaps come up with a better 9659 + mechanism to avoid the problem here, (which is that the 9660 + installed_files list was being freed from an inner loop while 9661 + still being used within an outer loop. */ 9662 + int installed_files_ref_cnt; 9663 + int essential; 9664 + int arch_priority; 9665 +/* Adding this flag, to "force" ipkg to choose a "provided_by_hand" package, if there are multiple choice */ 9666 + int provided_by_hand; 9667 +}; 9668 + 9669 +pkg_t *pkg_new(void); 9670 +int pkg_init(pkg_t *pkg); 9671 +void pkg_deinit(pkg_t *pkg); 9672 +int pkg_init_from_file(pkg_t *pkg, const char *filename); 9673 +abstract_pkg_t *abstract_pkg_new(void); 9674 +int abstract_pkg_init(abstract_pkg_t *ab_pkg); 9675 + 9676 +/* 9677 + * merges fields from newpkg into oldpkg. 9678 + * Forcibly sets oldpkg state_status, state_want and state_flags if set_status is nonzero 9679 + */ 9680 +int pkg_merge(pkg_t *oldpkg, pkg_t *newpkg, int set_status); 9681 + 9682 +char *pkg_version_str_alloc(pkg_t *pkg); 9683 + 9684 +int pkg_compare_versions(const pkg_t *pkg, const pkg_t *ref_pkg); 9685 +int pkg_name_version_and_architecture_compare(void *a, void *b); 9686 +int abstract_pkg_name_compare(void *a, void *b); 9687 + 9688 +char * pkg_formatted_info(pkg_t *pkg ); 9689 +char * pkg_formatted_field(pkg_t *pkg, const char *field ); 9690 + 9691 +void set_flags_from_control(ipkg_conf_t *conf, pkg_t *pkg); 9692 + 9693 +void pkg_print_info(pkg_t *pkg, FILE *file); 9694 +void pkg_print_status(pkg_t * pkg, FILE * file); 9695 +void pkg_print_field(pkg_t *pkg, FILE *file, const char *field); 9696 +str_list_t *pkg_get_installed_files(pkg_t *pkg); 9697 +int pkg_free_installed_files(pkg_t *pkg); 9698 +int pkg_remove_installed_files_list(ipkg_conf_t *conf, pkg_t *pkg); 9699 +conffile_t *pkg_get_conffile(pkg_t *pkg, const char *file_name); 9700 +int pkg_run_script(struct ipkg_conf *conf, pkg_t *pkg, 9701 + const char *script, const char *args); 9702 + 9703 +/* enum mappings */ 9704 +char *pkg_state_want_to_str(pkg_state_want_t sw); 9705 +pkg_state_want_t pkg_state_want_from_str(char *str); 9706 +char *pkg_state_flag_to_str(pkg_state_flag_t sf); 9707 +pkg_state_flag_t pkg_state_flag_from_str(char *str); 9708 +char *pkg_state_status_to_str(pkg_state_status_t ss); 9709 +pkg_state_status_t pkg_state_status_from_str(char *str); 9710 + 9711 +int pkg_version_satisfied(pkg_t *it, pkg_t *ref, const char *op); 9712 + 9713 +int pkg_arch_supported(ipkg_conf_t *conf, pkg_t *pkg); 9714 +int pkg_info_preinstall_check(ipkg_conf_t *conf); 9715 +int pkg_free_installed_files(pkg_t *pkg); 9716 + 9717 +int pkg_write_filelist(ipkg_conf_t *conf, pkg_t *pkg); 9718 +int pkg_write_changed_filelists(ipkg_conf_t *conf); 9719 + 9720 +#endif 9721 diff -ruN busybox-1.1.2-orig/archival/libipkg/pkg_depends.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_depends.c 9722 --- busybox-1.1.2-orig/archival/libipkg/pkg_depends.c 1970-01-01 01:00:00.000000000 +0100 9723 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_depends.c 2006-05-09 02:12:05.000000000 +0200 9462 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_depends.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_depends.c 9463 --- busybox-1.2.0-orig/archival/libipkg/pkg_depends.c 1970-01-01 01:00:00.000000000 +0100 9464 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_depends.c 2006-07-22 16:31:25.000000000 +0200 9724 9465 @@ -0,0 +1,1033 @@ 9725 9466 +/* pkg_depends.c - the itsy package management system … … 10756 10497 + return 0; 10757 10498 +} 10758 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_depends.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_depends.h10759 --- busybox-1. 1.2-orig/archival/libipkg/pkg_depends.h 1970-01-01 01:00:00.000000000 +010010760 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_depends.h 2006-05-09 02:06:48.000000000 +020010499 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_depends.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_depends.h 10500 --- busybox-1.2.0-orig/archival/libipkg/pkg_depends.h 1970-01-01 01:00:00.000000000 +0100 10501 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_depends.h 2006-07-22 16:31:25.000000000 +0200 10761 10502 @@ -0,0 +1,105 @@ 10762 10503 +/* pkg_depends.h - the itsy package management system … … 10865 10606 + 10866 10607 +#endif 10867 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_dest.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_dest.c10868 --- busybox-1. 1.2-orig/archival/libipkg/pkg_dest.c 1970-01-01 01:00:00.000000000 +010010869 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_dest.c 2006-05-09 02:06:48.000000000 +020010608 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_dest.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest.c 10609 --- busybox-1.2.0-orig/archival/libipkg/pkg_dest.c 1970-01-01 01:00:00.000000000 +0100 10610 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest.c 2006-07-22 16:31:25.000000000 +0200 10870 10611 @@ -0,0 +1,92 @@ 10871 10612 +/* pkg_dest.c - the itsy package management system … … 10961 10702 + dest->root_dir = NULL; 10962 10703 +} 10963 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_dest.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_dest.h10964 --- busybox-1. 1.2-orig/archival/libipkg/pkg_dest.h 1970-01-01 01:00:00.000000000 +010010965 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_dest.h 2006-05-09 02:06:48.000000000 +020010704 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_dest.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest.h 10705 --- busybox-1.2.0-orig/archival/libipkg/pkg_dest.h 1970-01-01 01:00:00.000000000 +0100 10706 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest.h 2006-07-22 16:31:25.000000000 +0200 10966 10707 @@ -0,0 +1,38 @@ 10967 10708 +/* pkg_dest.h - the itsy package management system … … 11003 10744 +#endif 11004 10745 + 11005 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_dest_list.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_dest_list.c11006 --- busybox-1. 1.2-orig/archival/libipkg/pkg_dest_list.c 1970-01-01 01:00:00.000000000 +010011007 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_dest_list.c 2006-05-09 02:06:48.000000000 +020010746 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_dest_list.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest_list.c 10747 --- busybox-1.2.0-orig/archival/libipkg/pkg_dest_list.c 1970-01-01 01:00:00.000000000 +0100 10748 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest_list.c 2006-07-22 16:31:25.000000000 +0200 11008 10749 @@ -0,0 +1,85 @@ 11009 10750 +/* pkg_dest_list.c - the itsy package management system … … 11092 10833 + return (pkg_dest_list_elt_t *) void_list_pop((void_list_t *) list); 11093 10834 +} 11094 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_dest_list.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_dest_list.h11095 --- busybox-1. 1.2-orig/archival/libipkg/pkg_dest_list.h 1970-01-01 01:00:00.000000000 +010011096 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_dest_list.h 2006-05-09 02:06:48.000000000 +020010835 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_dest_list.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest_list.h 10836 --- busybox-1.2.0-orig/archival/libipkg/pkg_dest_list.h 1970-01-01 01:00:00.000000000 +0100 10837 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_dest_list.h 2006-07-22 16:31:25.000000000 +0200 11097 10838 @@ -0,0 +1,50 @@ 11098 10839 +/* pkg_dest_list.h - the itsy package management system … … 11146 10887 +#endif 11147 10888 + 11148 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_extract.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_extract.c11149 --- busybox-1. 1.2-orig/archival/libipkg/pkg_extract.c 1970-01-01 01:00:00.000000000 +010011150 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_extract.c 2006-05-09 02:06:48.000000000 +020010889 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_extract.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_extract.c 10890 --- busybox-1.2.0-orig/archival/libipkg/pkg_extract.c 1970-01-01 01:00:00.000000000 +0100 10891 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_extract.c 2006-07-30 22:47:49.000000000 +0200 11151 10892 @@ -0,0 +1,224 @@ 11152 10893 +/* pkg_extract.c - the itsy package management system … … 11192 10933 + archive->src_fd = bb_xopen(pkg->local_filename, O_RDONLY); 11193 10934 + archive->filter = filter_accept_list; 11194 + archive->accept = llist_add_to(NULL, (char *)filename);10935 + llist_add_to(&(archive->accept), (char *)filename); 11195 10936 + archive->buffer = path; 11196 10937 + archive->action_data = data_extract_all_prefix; … … 11229 10970 + archive->src_fd = bb_xopen(name, O_RDONLY); 11230 10971 + archive->filter = filter_accept_list; 11231 + archive->accept = llist_add_to(NULL, "./" IPKG_CONTROL_FILE);10972 + llist_add_to(&(archive->accept), "./" IPKG_CONTROL_FILE); 11232 10973 + archive->action_data = data_extract_to_buffer; 11233 10974 + while( get_header_tar_gz(archive) == EXIT_SUCCESS ); … … 11374 11115 + return 0; 11375 11116 +} 11376 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_extract.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_extract.h11377 --- busybox-1. 1.2-orig/archival/libipkg/pkg_extract.h 1970-01-01 01:00:00.000000000 +010011378 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_extract.h 2006-05-09 02:06:48.000000000 +020011117 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_extract.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_extract.h 11118 --- busybox-1.2.0-orig/archival/libipkg/pkg_extract.h 1970-01-01 01:00:00.000000000 +0100 11119 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_extract.h 2006-07-22 16:31:25.000000000 +0200 11379 11120 @@ -0,0 +1,32 @@ 11380 11121 +/* pkg_extract.c - the itsy package management system … … 11410 11151 + 11411 11152 +#endif 11412 diff -ruN busybox-1.1.2-orig/archival/libipkg/pkg_hash.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_hash.c 11413 --- busybox-1.1.2-orig/archival/libipkg/pkg_hash.c 1970-01-01 01:00:00.000000000 +0100 11414 +++ busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_hash.c 2006-05-09 02:12:05.000000000 +0200 11153 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg.h 11154 --- busybox-1.2.0-orig/archival/libipkg/pkg.h 1970-01-01 01:00:00.000000000 +0100 11155 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg.h 2006-07-22 16:31:25.000000000 +0200 11156 @@ -0,0 +1,232 @@ 11157 +/* pkg.h - the itsy package management system 11158 + 11159 + Carl D. Worth 11160 + 11161 + Copyright (C) 2001 University of Southern California 11162 + 11163 + This program is free software; you can redistribute it and/or 11164 + modify it under the terms of the GNU General Public License as 11165 + published by the Free Software Foundation; either version 2, or (at 11166 + your option) any later version. 11167 + 11168 + This program is distributed in the hope that it will be useful, but 11169 + WITHOUT ANY WARRANTY; without even the implied warranty of 11170 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11171 + General Public License for more details. 11172 +*/ 11173 + 11174 +#ifndef PKG_H 11175 +#define PKG_H 11176 + 11177 +#include <sys/types.h> 11178 +#include <sys/stat.h> 11179 +#include <unistd.h> 11180 + 11181 +#include "pkg_vec.h" 11182 +#include "str_list.h" 11183 +#include "pkg_src.h" 11184 +#include "pkg_dest.h" 11185 +#include "ipkg_conf.h" 11186 +#include "conffile_list.h" 11187 + 11188 +struct ipkg_conf; 11189 + 11190 + 11191 +#define ARRAY_SIZE(array) sizeof(array) / sizeof((array)[0]) 11192 + 11193 +/* I think "Size" is currently the shortest field name */ 11194 +#define PKG_MINIMUM_FIELD_NAME_LEN 4 11195 + 11196 +enum pkg_state_want 11197 +{ 11198 + SW_UNKNOWN = 1, 11199 + SW_INSTALL, 11200 + SW_DEINSTALL, 11201 + SW_PURGE, 11202 + SW_LAST_STATE_WANT 11203 +}; 11204 +typedef enum pkg_state_want pkg_state_want_t; 11205 + 11206 +enum pkg_state_flag 11207 +{ 11208 + SF_OK = 0, 11209 + SF_REINSTREQ = 1, 11210 + SF_HOLD = 2, /* do not upgrade version */ 11211 + SF_REPLACE = 4, /* replace this package */ 11212 + SF_NOPRUNE = 8, /* do not remove obsolete files */ 11213 + SF_PREFER = 16, /* prefer this version */ 11214 + SF_OBSOLETE = 32, /* old package in upgrade pair */ 11215 + SF_MARKED = 64, /* temporary mark */ 11216 + SF_FILELIST_CHANGED = 128, /* needs filelist written */ 11217 + SF_USER = 256, 11218 + SF_LAST_STATE_FLAG 11219 +}; 11220 +typedef enum pkg_state_flag pkg_state_flag_t; 11221 +#define SF_NONVOLATILE_FLAGS (SF_HOLD|SF_NOPRUNE|SF_PREFER|SF_OBSOLETE|SF_USER) 11222 + 11223 +enum pkg_state_status 11224 +{ 11225 + SS_NOT_INSTALLED = 1, 11226 + SS_UNPACKED, 11227 + SS_HALF_CONFIGURED, 11228 + SS_INSTALLED, 11229 + SS_HALF_INSTALLED, 11230 + SS_CONFIG_FILES, 11231 + SS_POST_INST_FAILED, 11232 + SS_REMOVAL_FAILED, 11233 + SS_LAST_STATE_STATUS 11234 +}; 11235 +typedef enum pkg_state_status pkg_state_status_t; 11236 + 11237 +struct abstract_pkg{ 11238 + char * name; 11239 + int dependencies_checked; 11240 + pkg_vec_t * pkgs; 11241 + pkg_state_status_t state_status; 11242 + pkg_state_flag_t state_flag; 11243 + struct abstract_pkg ** depended_upon_by; /* @@@@ this should be abstract_pkg_vec_t -Jamey */ 11244 + abstract_pkg_vec_t * provided_by; 11245 + abstract_pkg_vec_t * replaced_by; 11246 +}; 11247 + 11248 +#include "pkg_depends.h" 11249 + 11250 +/* XXX: CLEANUP: I'd like to clean up pkg_t in several ways: 11251 + 11252 + The 3 version fields should go into a single version struct. (This 11253 + is especially important since, currently, pkg->version can easily 11254 + be mistaken for pkg_verson_str_alloc(pkg) although they are very 11255 + distinct. This has been the source of multiple bugs. 11256 + 11257 + The 3 state fields could possibly also go into their own struct. 11258 + 11259 + All fields which deal with lists of packages, (Depends, 11260 + Pre-Depends, Provides, Suggests, Recommends, Enhances), should each 11261 + be handled by a single struct in pkg_t 11262 + 11263 + All string fields for which there is a small set of possible 11264 + values, (section, maintainer, architecture, maybe version?), that 11265 + are reused among different packages -- for all such packages we 11266 + should move from "char *"s to some atom datatype to share data 11267 + storage and use less memory. We might even do reference counting, 11268 + but probably not since most often we only create new pkg_t structs, 11269 + we don't often free them. */ 11270 +struct pkg 11271 +{ 11272 + char *name; 11273 + unsigned long epoch; 11274 + char *version; 11275 + char *revision; 11276 + char *familiar_revision; 11277 + pkg_src_t *src; 11278 + pkg_dest_t *dest; 11279 + char *architecture; 11280 + char *section; 11281 + char *maintainer; 11282 + char *description; 11283 + pkg_state_want_t state_want; 11284 + pkg_state_flag_t state_flag; 11285 + pkg_state_status_t state_status; 11286 + char **depends_str; 11287 + int depends_count; 11288 + char **pre_depends_str; 11289 + int pre_depends_count; 11290 + char **recommends_str; 11291 + int recommends_count; 11292 + char **suggests_str; 11293 + int suggests_count; 11294 + compound_depend_t * depends; 11295 + 11296 + /* Abhaya: new conflicts */ 11297 + char **conflicts_str; 11298 + compound_depend_t * conflicts; 11299 + int conflicts_count; 11300 + 11301 + char **replaces_str; 11302 + int replaces_count; 11303 + abstract_pkg_t ** replaces; 11304 + 11305 + char **provides_str; 11306 + int provides_count; 11307 + abstract_pkg_t ** provides; 11308 + 11309 + abstract_pkg_t *parent; 11310 + 11311 + pkg_t *old_pkg; /* during upgrade, points from installee to previously installed */ 11312 + 11313 + char *filename; 11314 + char *local_filename; 11315 + char *url; 11316 + char *tmp_unpack_dir; 11317 + char *md5sum; 11318 + char *size; 11319 + char *installed_size; 11320 + char *priority; 11321 + char *source; 11322 + conffile_list_t conffiles; 11323 + time_t installed_time; 11324 + /* As pointer for lazy evaluation */ 11325 + str_list_t *installed_files; 11326 + /* XXX: CLEANUP: I'd like to perhaps come up with a better 11327 + mechanism to avoid the problem here, (which is that the 11328 + installed_files list was being freed from an inner loop while 11329 + still being used within an outer loop. */ 11330 + int installed_files_ref_cnt; 11331 + int essential; 11332 + int arch_priority; 11333 +/* Adding this flag, to "force" ipkg to choose a "provided_by_hand" package, if there are multiple choice */ 11334 + int provided_by_hand; 11335 +}; 11336 + 11337 +pkg_t *pkg_new(void); 11338 +int pkg_init(pkg_t *pkg); 11339 +void pkg_deinit(pkg_t *pkg); 11340 +int pkg_init_from_file(pkg_t *pkg, const char *filename); 11341 +abstract_pkg_t *abstract_pkg_new(void); 11342 +int abstract_pkg_init(abstract_pkg_t *ab_pkg); 11343 + 11344 +/* 11345 + * merges fields from newpkg into oldpkg. 11346 + * Forcibly sets oldpkg state_status, state_want and state_flags if set_status is nonzero 11347 + */ 11348 +int pkg_merge(pkg_t *oldpkg, pkg_t *newpkg, int set_status); 11349 + 11350 +char *pkg_version_str_alloc(pkg_t *pkg); 11351 + 11352 +int pkg_compare_versions(const pkg_t *pkg, const pkg_t *ref_pkg); 11353 +int pkg_name_version_and_architecture_compare(void *a, void *b); 11354 +int abstract_pkg_name_compare(void *a, void *b); 11355 + 11356 +char * pkg_formatted_info(pkg_t *pkg ); 11357 +char * pkg_formatted_field(pkg_t *pkg, const char *field ); 11358 + 11359 +void set_flags_from_control(ipkg_conf_t *conf, pkg_t *pkg); 11360 + 11361 +void pkg_print_info(pkg_t *pkg, FILE *file); 11362 +void pkg_print_status(pkg_t * pkg, FILE * file); 11363 +void pkg_print_field(pkg_t *pkg, FILE *file, const char *field); 11364 +str_list_t *pkg_get_installed_files(pkg_t *pkg); 11365 +int pkg_free_installed_files(pkg_t *pkg); 11366 +int pkg_remove_installed_files_list(ipkg_conf_t *conf, pkg_t *pkg); 11367 +conffile_t *pkg_get_conffile(pkg_t *pkg, const char *file_name); 11368 +int pkg_run_script(struct ipkg_conf *conf, pkg_t *pkg, 11369 + const char *script, const char *args); 11370 + 11371 +/* enum mappings */ 11372 +char *pkg_state_want_to_str(pkg_state_want_t sw); 11373 +pkg_state_want_t pkg_state_want_from_str(char *str); 11374 +char *pkg_state_flag_to_str(pkg_state_flag_t sf); 11375 +pkg_state_flag_t pkg_state_flag_from_str(char *str); 11376 +char *pkg_state_status_to_str(pkg_state_status_t ss); 11377 +pkg_state_status_t pkg_state_status_from_str(char *str); 11378 + 11379 +int pkg_version_satisfied(pkg_t *it, pkg_t *ref, const char *op); 11380 + 11381 +int pkg_arch_supported(ipkg_conf_t *conf, pkg_t *pkg); 11382 +int pkg_info_preinstall_check(ipkg_conf_t *conf); 11383 +int pkg_free_installed_files(pkg_t *pkg); 11384 + 11385 +int pkg_write_filelist(ipkg_conf_t *conf, pkg_t *pkg); 11386 +int pkg_write_changed_filelists(ipkg_conf_t *conf); 11387 + 11388 +#endif 11389 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_hash.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_hash.c 11390 --- busybox-1.2.0-orig/archival/libipkg/pkg_hash.c 1970-01-01 01:00:00.000000000 +0100 11391 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_hash.c 2006-07-22 16:31:25.000000000 +0200 11415 11392 @@ -0,0 +1,617 @@ 11416 11393 +/* ipkg_hash.c - the itsy package management system … … 12031 12008 + 12032 12009 + 12033 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_hash.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_hash.h12034 --- busybox-1. 1.2-orig/archival/libipkg/pkg_hash.h 1970-01-01 01:00:00.000000000 +010012035 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_hash.h 2006-05-09 02:06:48.000000000 +020012010 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_hash.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_hash.h 12011 --- busybox-1.2.0-orig/archival/libipkg/pkg_hash.h 1970-01-01 01:00:00.000000000 +0100 12012 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_hash.h 2006-07-22 16:31:25.000000000 +0200 12036 12013 @@ -0,0 +1,61 @@ 12037 12014 +/* pkg_hash.h - the itsy package management system … … 12096 12073 +#endif 12097 12074 + 12098 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_parse.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_parse.c12099 --- busybox-1. 1.2-orig/archival/libipkg/pkg_parse.c 1970-01-01 01:00:00.000000000 +010012100 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_parse.c 2006-05-09 02:06:48.000000000 +020012075 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_parse.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_parse.c 12076 --- busybox-1.2.0-orig/archival/libipkg/pkg_parse.c 1970-01-01 01:00:00.000000000 +0100 12077 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_parse.c 2006-07-22 16:31:25.000000000 +0200 12101 12078 @@ -0,0 +1,366 @@ 12102 12079 +/* pkg_parse.c - the itsy package management system … … 12466 12443 + return 0; 12467 12444 +} 12468 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_parse.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_parse.h12469 --- busybox-1. 1.2-orig/archival/libipkg/pkg_parse.h 1970-01-01 01:00:00.000000000 +010012470 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_parse.h 2006-05-09 02:06:48.000000000 +020012445 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_parse.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_parse.h 12446 --- busybox-1.2.0-orig/archival/libipkg/pkg_parse.h 1970-01-01 01:00:00.000000000 +0100 12447 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_parse.h 2006-07-22 16:31:25.000000000 +0200 12471 12448 @@ -0,0 +1,31 @@ 12472 12449 +/* pkg_parse.h - the itsy package management system … … 12501 12478 + 12502 12479 +#endif 12503 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_src.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_src.c12504 --- busybox-1. 1.2-orig/archival/libipkg/pkg_src.c 1970-01-01 01:00:00.000000000 +010012505 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_src.c 2006-05-09 02:06:48.000000000 +020012480 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_src.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src.c 12481 --- busybox-1.2.0-orig/archival/libipkg/pkg_src.c 1970-01-01 01:00:00.000000000 +0100 12482 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src.c 2006-07-22 16:31:25.000000000 +0200 12506 12483 @@ -0,0 +1,43 @@ 12507 12484 +/* pkg_src.c - the itsy package management system … … 12548 12525 + 12549 12526 + 12550 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_src.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_src.h12551 --- busybox-1. 1.2-orig/archival/libipkg/pkg_src.h 1970-01-01 01:00:00.000000000 +010012552 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_src.h 2006-05-09 02:06:48.000000000 +020012527 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_src.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src.h 12528 --- busybox-1.2.0-orig/archival/libipkg/pkg_src.h 1970-01-01 01:00:00.000000000 +0100 12529 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src.h 2006-07-22 16:31:25.000000000 +0200 12553 12530 @@ -0,0 +1,34 @@ 12554 12531 +/* pkg_src.h - the itsy package management system … … 12586 12563 + 12587 12564 +#endif 12588 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_src_list.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_src_list.c12589 --- busybox-1. 1.2-orig/archival/libipkg/pkg_src_list.c 1970-01-01 01:00:00.000000000 +010012590 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_src_list.c 2006-05-09 02:06:48.000000000 +020012565 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_src_list.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src_list.c 12566 --- busybox-1.2.0-orig/archival/libipkg/pkg_src_list.c 1970-01-01 01:00:00.000000000 +0100 12567 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src_list.c 2006-07-22 16:31:25.000000000 +0200 12591 12568 @@ -0,0 +1,75 @@ 12592 12569 +/* pkg_src_list.c - the itsy package management system … … 12665 12642 + return (pkg_src_list_elt_t *) void_list_pop((void_list_t *) list); 12666 12643 +} 12667 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_src_list.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_src_list.h12668 --- busybox-1. 1.2-orig/archival/libipkg/pkg_src_list.h 1970-01-01 01:00:00.000000000 +010012669 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_src_list.h 2006-05-09 02:06:48.000000000 +020012644 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_src_list.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src_list.h 12645 --- busybox-1.2.0-orig/archival/libipkg/pkg_src_list.h 1970-01-01 01:00:00.000000000 +0100 12646 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_src_list.h 2006-07-22 16:31:25.000000000 +0200 12670 12647 @@ -0,0 +1,57 @@ 12671 12648 +/* pkg_src_list.h - the itsy package management system … … 12726 12703 +#endif 12727 12704 + 12728 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_vec.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_vec.c12729 --- busybox-1. 1.2-orig/archival/libipkg/pkg_vec.c 1970-01-01 01:00:00.000000000 +010012730 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_vec.c 2006-05-09 02:12:05.000000000 +020012705 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_vec.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_vec.c 12706 --- busybox-1.2.0-orig/archival/libipkg/pkg_vec.c 1970-01-01 01:00:00.000000000 +0100 12707 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_vec.c 2006-07-22 16:31:26.000000000 +0200 12731 12708 @@ -0,0 +1,230 @@ 12732 12709 +/* pkg_vec.c - the itsy package management system … … 12960 12937 +} 12961 12938 + 12962 diff -ruN busybox-1. 1.2-orig/archival/libipkg/pkg_vec.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/pkg_vec.h12963 --- busybox-1. 1.2-orig/archival/libipkg/pkg_vec.h 1970-01-01 01:00:00.000000000 +010012964 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/pkg_vec.h 2006-05-09 02:06:48.000000000 +020012939 diff -ruN busybox-1.2.0-orig/archival/libipkg/pkg_vec.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_vec.h 12940 --- busybox-1.2.0-orig/archival/libipkg/pkg_vec.h 1970-01-01 01:00:00.000000000 +0100 12941 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/pkg_vec.h 2006-07-22 16:31:26.000000000 +0200 12965 12942 @@ -0,0 +1,62 @@ 12966 12943 +/* pkg_vec.h - the itsy package management system … … 13026 13003 +#endif 13027 13004 + 13028 diff -ruN busybox-1. 1.2-orig/archival/libipkg/sprintf_alloc.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/sprintf_alloc.h13029 --- busybox-1. 1.2-orig/archival/libipkg/sprintf_alloc.h 1970-01-01 01:00:00.000000000 +010013030 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/sprintf_alloc.h 2006-05-09 02:06:48.000000000 +020013005 diff -ruN busybox-1.2.0-orig/archival/libipkg/sprintf_alloc.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/sprintf_alloc.h 13006 --- busybox-1.2.0-orig/archival/libipkg/sprintf_alloc.h 1970-01-01 01:00:00.000000000 +0100 13007 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/sprintf_alloc.h 2006-07-22 16:31:26.000000000 +0200 13031 13008 @@ -0,0 +1,25 @@ 13032 13009 +/* sprintf_alloca.c -- like sprintf with memory allocation … … 13055 13032 + 13056 13033 +#endif 13057 diff -ruN busybox-1. 1.2-orig/archival/libipkg/str_list.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/str_list.c13058 --- busybox-1. 1.2-orig/archival/libipkg/str_list.c 1970-01-01 01:00:00.000000000 +010013059 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/str_list.c 2006-05-09 02:06:48.000000000 +020013034 diff -ruN busybox-1.2.0-orig/archival/libipkg/str_list.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_list.c 13035 --- busybox-1.2.0-orig/archival/libipkg/str_list.c 1970-01-01 01:00:00.000000000 +0100 13036 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_list.c 2006-07-22 16:31:26.000000000 +0200 13060 13037 @@ -0,0 +1,76 @@ 13061 13038 +/* str_list.c - the itsy package management system … … 13135 13112 + (void_list_cmp_t)strcmp); 13136 13113 +} 13137 diff -ruN busybox-1. 1.2-orig/archival/libipkg/str_list.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/str_list.h13138 --- busybox-1. 1.2-orig/archival/libipkg/str_list.h 1970-01-01 01:00:00.000000000 +010013139 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/str_list.h 2006-05-09 02:06:48.000000000 +020013114 diff -ruN busybox-1.2.0-orig/archival/libipkg/str_list.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_list.h 13115 --- busybox-1.2.0-orig/archival/libipkg/str_list.h 1970-01-01 01:00:00.000000000 +0100 13116 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_list.h 2006-07-22 16:31:26.000000000 +0200 13140 13117 @@ -0,0 +1,51 @@ 13141 13118 +/* str_list.h - the itsy package management system … … 13190 13167 + 13191 13168 +#endif 13192 diff -ruN busybox-1. 1.2-orig/archival/libipkg/str_util.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/str_util.c13193 --- busybox-1. 1.2-orig/archival/libipkg/str_util.c 1970-01-01 01:00:00.000000000 +010013194 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/str_util.c 2006-05-09 02:06:48.000000000 +020013169 diff -ruN busybox-1.2.0-orig/archival/libipkg/str_util.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_util.c 13170 --- busybox-1.2.0-orig/archival/libipkg/str_util.c 1970-01-01 01:00:00.000000000 +0100 13171 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_util.c 2006-07-22 16:31:26.000000000 +0200 13195 13172 @@ -0,0 +1,73 @@ 13196 13173 +/* str_utils.c - the itsy package management system … … 13267 13244 +} 13268 13245 + 13269 diff -ruN busybox-1. 1.2-orig/archival/libipkg/str_util.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/str_util.h13270 --- busybox-1. 1.2-orig/archival/libipkg/str_util.h 1970-01-01 01:00:00.000000000 +010013271 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/str_util.h 2006-05-09 02:06:48.000000000 +020013246 diff -ruN busybox-1.2.0-orig/archival/libipkg/str_util.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_util.h 13247 --- busybox-1.2.0-orig/archival/libipkg/str_util.h 1970-01-01 01:00:00.000000000 +0100 13248 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/str_util.h 2006-07-22 16:31:26.000000000 +0200 13272 13249 @@ -0,0 +1,28 @@ 13273 13250 +/* str_utils.h - the itsy package management system … … 13299 13276 + 13300 13277 +#endif 13301 diff -ruN busybox-1. 1.2-orig/archival/libipkg/user.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/user.c13302 --- busybox-1. 1.2-orig/archival/libipkg/user.c 1970-01-01 01:00:00.000000000 +010013303 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/user.c 2006-05-09 02:06:48.000000000 +020013278 diff -ruN busybox-1.2.0-orig/archival/libipkg/user.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/user.c 13279 --- busybox-1.2.0-orig/archival/libipkg/user.c 1970-01-01 01:00:00.000000000 +0100 13280 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/user.c 2006-07-22 16:31:26.000000000 +0200 13304 13281 @@ -0,0 +1,58 @@ 13305 13282 +/* user.c - the itsy package management system … … 13361 13338 + return response; 13362 13339 +} 13363 diff -ruN busybox-1. 1.2-orig/archival/libipkg/user.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/user.h13364 --- busybox-1. 1.2-orig/archival/libipkg/user.h 1970-01-01 01:00:00.000000000 +010013365 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/user.h 2006-05-09 02:06:48.000000000 +020013340 diff -ruN busybox-1.2.0-orig/archival/libipkg/user.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/user.h 13341 --- busybox-1.2.0-orig/archival/libipkg/user.h 1970-01-01 01:00:00.000000000 +0100 13342 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/user.h 2006-07-22 16:31:26.000000000 +0200 13366 13343 @@ -0,0 +1,23 @@ 13367 13344 +/* user.c - the itsy package management system … … 13388 13365 +char *get_user_response(const char *format, ...); 13389 13366 + 13390 diff -ruN busybox-1. 1.2-orig/archival/libipkg/void_list.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/void_list.c13391 --- busybox-1. 1.2-orig/archival/libipkg/void_list.c 1970-01-01 01:00:00.000000000 +010013392 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/void_list.c 2006-05-09 02:06:48.000000000 +020013367 diff -ruN busybox-1.2.0-orig/archival/libipkg/void_list.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/void_list.c 13368 --- busybox-1.2.0-orig/archival/libipkg/void_list.c 1970-01-01 01:00:00.000000000 +0100 13369 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/void_list.c 2006-07-22 16:31:26.000000000 +0200 13393 13370 @@ -0,0 +1,194 @@ 13394 13371 +/* void_list.c - the itsy package management system … … 13586 13563 + return NULL; 13587 13564 +} 13588 diff -ruN busybox-1. 1.2-orig/archival/libipkg/void_list.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/void_list.h13589 --- busybox-1. 1.2-orig/archival/libipkg/void_list.h 1970-01-01 01:00:00.000000000 +010013590 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/void_list.h 2006-05-09 02:06:48.000000000 +020013565 diff -ruN busybox-1.2.0-orig/archival/libipkg/void_list.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/void_list.h 13566 --- busybox-1.2.0-orig/archival/libipkg/void_list.h 1970-01-01 01:00:00.000000000 +0100 13567 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/void_list.h 2006-07-22 16:31:26.000000000 +0200 13591 13568 @@ -0,0 +1,59 @@ 13592 13569 +/* void_list.h - the itsy package management system … … 13649 13626 + 13650 13627 +#endif 13651 diff -ruN busybox-1. 1.2-orig/archival/libipkg/xsystem.c busybox-1.1.2+ipkg-0.99.162/archival/libipkg/xsystem.c13652 --- busybox-1. 1.2-orig/archival/libipkg/xsystem.c 1970-01-01 01:00:00.000000000 +010013653 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/xsystem.c 2006-05-09 02:06:48.000000000 +020013628 diff -ruN busybox-1.2.0-orig/archival/libipkg/xsystem.c busybox-1.2.0+ipkg-0.99.162/archival/libipkg/xsystem.c 13629 --- busybox-1.2.0-orig/archival/libipkg/xsystem.c 1970-01-01 01:00:00.000000000 +0100 13630 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/xsystem.c 2006-07-22 16:31:26.000000000 +0200 13654 13631 @@ -0,0 +1,64 @@ 13655 13632 +/* xsystem.c - system(3) with error messages … … 13717 13694 +} 13718 13695 + 13719 diff -ruN busybox-1. 1.2-orig/archival/libipkg/xsystem.h busybox-1.1.2+ipkg-0.99.162/archival/libipkg/xsystem.h13720 --- busybox-1. 1.2-orig/archival/libipkg/xsystem.h 1970-01-01 01:00:00.000000000 +010013721 +++ busybox-1. 1.2+ipkg-0.99.162/archival/libipkg/xsystem.h 2006-05-09 02:06:48.000000000 +020013696 diff -ruN busybox-1.2.0-orig/archival/libipkg/xsystem.h busybox-1.2.0+ipkg-0.99.162/archival/libipkg/xsystem.h 13697 --- busybox-1.2.0-orig/archival/libipkg/xsystem.h 1970-01-01 01:00:00.000000000 +0100 13698 +++ busybox-1.2.0+ipkg-0.99.162/archival/libipkg/xsystem.h 2006-07-22 16:31:26.000000000 +0200 13722 13699 @@ -0,0 +1,34 @@ 13723 13700 +/* xsystem.h - system(3) with error messages … … 13755 13732 +#endif 13756 13733 + 13757 diff -ruN busybox-1.1.2-orig/archival/libunarchive/Makefile.in busybox-1.1.2+ipkg-0.99.162/archival/libunarchive/Makefile.in 13758 --- busybox-1.1.2-orig/archival/libunarchive/Makefile.in 2006-03-22 22:16:20.000000000 +0100 13759 +++ busybox-1.1.2+ipkg-0.99.162/archival/libunarchive/Makefile.in 2006-05-09 02:06:48.000000000 +0200 13734 diff -ruN busybox-1.2.0-orig/archival/libunarchive/data_extract_all.c busybox-1.2.0+ipkg-0.99.162/archival/libunarchive/data_extract_all.c 13735 --- busybox-1.2.0-orig/archival/libunarchive/data_extract_all.c 2006-07-01 00:42:04.000000000 +0200 13736 +++ busybox-1.2.0+ipkg-0.99.162/archival/libunarchive/data_extract_all.c 2006-07-22 16:31:26.000000000 +0200 13737 @@ -126,3 +126,17 @@ 13738 utime(file_header->name, &t); 13739 } 13740 } 13741 + 13742 +extern void data_extract_all_prefix(archive_handle_t *archive_handle) 13743 +{ 13744 + char *name_ptr = archive_handle->file_header->name; 13745 + 13746 + name_ptr += strspn(name_ptr, "./"); 13747 + if (name_ptr[0] != '\0') { 13748 + archive_handle->file_header->name = xmalloc(strlen(archive_handle->buffer) + 1 + strlen(name_ptr) + 1); 13749 + strcpy(archive_handle->file_header->name, archive_handle->buffer); 13750 + strcat(archive_handle->file_header->name, name_ptr); 13751 + data_extract_all(archive_handle); 13752 + } 13753 +} 13754 + 13755 diff -ruN busybox-1.2.0-orig/archival/libunarchive/Makefile.in busybox-1.2.0+ipkg-0.99.162/archival/libunarchive/Makefile.in 13756 --- busybox-1.2.0-orig/archival/libunarchive/Makefile.in 2006-07-01 00:42:03.000000000 +0200 13757 +++ busybox-1.2.0+ipkg-0.99.162/archival/libunarchive/Makefile.in 2006-07-22 16:31:26.000000000 +0200 13760 13758 @@ -58,6 +58,7 @@ 13761 13759 LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o … … 13766 13764 LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o 13767 13765 LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o 13768 diff -ruN busybox-1.1.2-orig/archival/libunarchive/data_extract_all.c busybox-1.1.2+ipkg-0.99.162/archival/libunarchive/data_extract_all.c 13769 --- busybox-1.1.2-orig/archival/libunarchive/data_extract_all.c 2006-03-22 22:16:20.000000000 +0100 13770 +++ busybox-1.1.2+ipkg-0.99.162/archival/libunarchive/data_extract_all.c 2006-05-09 02:06:48.000000000 +0200 13771 @@ -126,3 +126,17 @@ 13772 utime(file_header->name, &t); 13773 } 13774 } 13775 + 13776 +extern void data_extract_all_prefix(archive_handle_t *archive_handle) 13777 +{ 13778 + char *name_ptr = archive_handle->file_header->name; 13779 + 13780 + name_ptr += strspn(name_ptr, "./"); 13781 + if (name_ptr[0] != '\0') { 13782 + archive_handle->file_header->name = xmalloc(strlen(archive_handle->buffer) + 1 + strlen(name_ptr) + 1); 13783 + strcpy(archive_handle->file_header->name, archive_handle->buffer); 13784 + strcat(archive_handle->file_header->name, name_ptr); 13785 + data_extract_all(archive_handle); 13786 + } 13787 +} 13788 + 13789 diff -ruN busybox-1.1.2-orig/include/applets.h busybox-1.1.2+ipkg-0.99.162/include/applets.h 13790 --- busybox-1.1.2-orig/include/applets.h 2006-03-22 22:16:24.000000000 +0100 13791 +++ busybox-1.1.2+ipkg-0.99.162/include/applets.h 2006-05-09 02:06:48.000000000 +0200 13792 @@ -149,6 +149,7 @@ 13793 USE_IPCALC(APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 13794 USE_IPCRM(APPLET(ipcrm, ipcrm_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) 13795 USE_IPCS(APPLET(ipcs, ipcs_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) 13796 +USE_IPKG(APPLET(ipkg, ipkg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 13797 USE_IPLINK(APPLET(iplink, iplink_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 13798 USE_IPROUTE(APPLET(iproute, iproute_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 13799 USE_IPTUNNEL(APPLET(iptunnel, iptunnel_main, _BB_DIR_BIN, _BB_SUID_NEVER)) 13800 diff -ruN busybox-1.1.2-orig/include/unarchive.h busybox-1.1.2+ipkg-0.99.162/include/unarchive.h 13801 --- busybox-1.1.2-orig/include/unarchive.h 2006-03-22 22:16:24.000000000 +0100 13802 +++ busybox-1.1.2+ipkg-0.99.162/include/unarchive.h 2006-05-09 02:06:48.000000000 +0200 13803 @@ -74,6 +74,7 @@ 13766 diff -ruN busybox-1.2.0-orig/archival/Makefile.in busybox-1.2.0+ipkg-0.99.162/archival/Makefile.in 13767 --- busybox-1.2.0-orig/archival/Makefile.in 2006-07-01 00:42:04.000000000 +0200 13768 +++ busybox-1.2.0+ipkg-0.99.162/archival/Makefile.in 2006-07-22 16:31:25.000000000 +0200 13769 @@ -20,6 +20,7 @@ 13770 ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o 13771 ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o 13772 ARCHIVAL-$(CONFIG_GZIP) += gzip.o 13773 +ARCHIVAL-$(CONFIG_IPKG) += ipkg.o 13774 ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o 13775 ARCHIVAL-$(CONFIG_RPM) += rpm.o 13776 ARCHIVAL-$(CONFIG_TAR) += tar.o 13777 diff -ruN busybox-1.2.0-orig/include/applets.h busybox-1.2.0+ipkg-0.99.162/include/applets.h 13778 --- busybox-1.2.0-orig/include/applets.h 2006-07-01 00:42:10.000000000 +0200 13779 +++ busybox-1.2.0+ipkg-0.99.162/include/applets.h 2006-07-22 16:35:35.000000000 +0200 13780 @@ -152,6 +152,7 @@ 13781 USE_IPCALC(APPLET(ipcalc, _BB_DIR_BIN, _BB_SUID_NEVER)) 13782 USE_IPCRM(APPLET(ipcrm, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) 13783 USE_IPCS(APPLET(ipcs, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) 13784 +USE_IPKG(APPLET(ipkg, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 13785 USE_IPLINK(APPLET(iplink, _BB_DIR_BIN, _BB_SUID_NEVER)) 13786 USE_IPROUTE(APPLET(iproute, _BB_DIR_BIN, _BB_SUID_NEVER)) 13787 USE_IPTUNNEL(APPLET(iptunnel, _BB_DIR_BIN, _BB_SUID_NEVER)) 13788 diff -ruN busybox-1.2.0-orig/include/unarchive.h busybox-1.2.0+ipkg-0.99.162/include/unarchive.h 13789 --- busybox-1.2.0-orig/include/unarchive.h 2006-07-01 00:42:10.000000000 +0200 13790 +++ busybox-1.2.0+ipkg-0.99.162/include/unarchive.h 2006-07-22 16:31:26.000000000 +0200 13791 @@ -77,6 +77,7 @@ 13804 13792 13805 13793 extern void data_skip(archive_handle_t *archive_handle); … … 13809 13797 extern void data_extract_to_buffer(archive_handle_t *archive_handle); 13810 13798 13811 diff -ruN busybox-1. 1.2-orig/include/usage.h busybox-1.1.2+ipkg-0.99.162/include/usage.h13812 --- busybox-1. 1.2-orig/include/usage.h 2006-03-22 22:16:24.000000000 +010013813 +++ busybox-1. 1.2+ipkg-0.99.162/include/usage.h 2006-05-09 02:06:48.000000000 +020013814 @@ - 1013,6 +1013,82 @@13799 diff -ruN busybox-1.2.0-orig/include/usage.h busybox-1.2.0+ipkg-0.99.162/include/usage.h 13800 --- busybox-1.2.0-orig/include/usage.h 2006-07-01 00:42:10.000000000 +0200 13801 +++ busybox-1.2.0+ipkg-0.99.162/include/usage.h 2006-07-22 16:31:26.000000000 +0200 13802 @@ -982,6 +982,82 @@ 13815 13803 "$ ls -la /tmp/busybox*\n" \ 13816 13804 "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n" … … 13895 13883 "[-d<delay>] [-n<nosync>] [-f<force>]" 13896 13884 #define halt_full_usage \ 13885 diff -ruN busybox-1.2.0-orig/Makefile busybox-1.2.0+ipkg-0.99.162/Makefile 13886 --- busybox-1.2.0-orig/Makefile 2006-07-01 00:42:13.000000000 +0200 13887 +++ busybox-1.2.0+ipkg-0.99.162/Makefile 2006-07-22 16:31:25.000000000 +0200 13888 @@ -31,7 +31,7 @@ 13889 export srctree=$(top_srcdir) 13890 vpath %/Config.in $(srctree) 13891 13892 -DIRS:=applets archival archival/libunarchive coreutils console-tools \ 13893 +DIRS:=applets archival archival/libipkg archival/libunarchive coreutils console-tools \ 13894 debianutils editors findutils init miscutils modutils networking \ 13895 networking/libiproute networking/udhcp procps loginutils shell \ 13896 sysklogd util-linux e2fsprogs libpwdgrp coreutils/libcoreutils libbb trunk/freewrt/package/busybox/patches/912-ipkg-no_warnings.patch
r1 r993 1 # Copyright (C) 2006 OpenWrt.org 2 # 3 # This is free software, licensed under the GNU General Public License v2. 4 # See /LICENSE for more information. 1 5 # 2 6 # remove (numerous) compile warnings trunk/freewrt/package/busybox/patches/913-libbb_hash.patch
r1 r993 1 # 2 # expose (again) an hash_fd function (used 911-ipkg.patch) 3 # 4 diff -ruN busybox-1.1.1-old/coreutils/md5_sha1_sum.c busybox-1.1.1-new/coreutils/md5_sha1_sum.c 5 --- busybox-1.1.1-old/coreutils/md5_sha1_sum.c 2006-03-30 00:14:50.000000000 +0200 6 +++ busybox-1.1.1-new/coreutils/md5_sha1_sum.c 2006-03-29 23:46:51.000000000 +0200 7 @@ -15,80 +15,10 @@ 1 diff -Nur busybox-1.2.1.orig/coreutils/md5_sha1_sum.c busybox-1.2.1/coreutils/md5_sha1_sum.c 2 --- busybox-1.2.1.orig/coreutils/md5_sha1_sum.c 2006-07-01 00:42:07.000000000 +0200 3 +++ busybox-1.2.1/coreutils/md5_sha1_sum.c 2006-10-23 16:39:05.000000000 +0200 4 @@ -16,79 +16,10 @@ 8 5 9 6 #include "busybox.h" … … 41 38 - void (*update)(const void*, size_t, void*); 42 39 - void (*final)(void*, void*); 43 - 44 - if (strcmp(filename, "-") == 0) {40 - 41 - if (strcmp(filename, "-") == 0) { 45 42 - src_fd = STDIN_FILENO; 46 43 - } else if(0 > (src_fd = open(filename, O_RDONLY))) { … … 49 46 - } 50 47 - 51 - / / figure specific hash algorithims52 - if (ENABLE_MD5SUM && hash_algo==HASH_MD5) {48 - /* figure specific hash algorithims */ 49 - if (ENABLE_MD5SUM && hash_algo==HASH_MD5) { 53 50 - md5_begin(&context.md5); 54 51 - update = (void (*)(const void*, size_t, void*))md5_hash; 55 52 - final = (void (*)(void*, void*))md5_end; 56 53 - hash_len = 16; 57 - } else if (ENABLE_SHA1SUM && hash_algo==HASH_SHA1) {54 - } else if (ENABLE_SHA1SUM && hash_algo==HASH_SHA1) { 58 55 - sha1_begin(&context.sha1); 59 56 - update = (void (*)(const void*, size_t, void*))sha1_hash; … … 61 58 - hash_len = 20; 62 59 - } else { 63 - bb_error_msg_and_die("algotithm not supported"); 64 - } 65 - 66 - 67 - while(0 < (count = read(src_fd, in_buf, sizeof in_buf))) { 60 - bb_error_msg_and_die("algorithm not supported"); 61 - } 62 - 63 - while (0 < (count = read(src_fd, in_buf, 4096))) { 68 64 - update(in_buf, count, &context); 69 65 - } 70 66 - 71 - if (count == 0) {67 - if (count == 0) { 72 68 - final(in_buf, &context); 73 69 - hash_value = hash_bin_to_hex(in_buf, hash_len); 74 70 - } 75 - 71 - 76 72 - RELEASE_CONFIG_BUFFER(in_buf); 77 - 78 - if (src_fd != STDIN_FILENO) {73 - 74 - if (src_fd != STDIN_FILENO) { 79 75 - close(src_fd); 80 76 - } 81 - 77 - 82 78 - return hash_value; 83 79 -} … … 86 82 static int hash_files(int argc, char **argv, hash_algo_t hash_algo) 87 83 { 88 diff -ruN busybox-1.1.1-old/include/libbb.h busybox-1.1.1-new/include/libbb.h 89 --- busybox-1.1.1-old/include/libbb.h 2006-03-30 00:14:50.000000000 +0200 90 +++ busybox-1.1.1-new/include/libbb.h 2006-03-30 00:31:48.000000000 +0200 91 @@ -490,6 +490,12 @@ 84 diff -Nur busybox-1.2.1.orig/include/libbb.h busybox-1.2.1/include/libbb.h 85 --- busybox-1.2.1.orig/include/libbb.h 2006-07-29 00:53:44.000000000 +0200 86 +++ busybox-1.2.1/include/libbb.h 2006-10-23 16:39:05.000000000 +0200 87 @@ -520,6 +520,8 @@ 88 extern int get_terminal_width_height(int fd, int *width, int *height); 89 extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char *)); 90 91 +typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t; 92 + 93 typedef struct _sha1_ctx_t_ { 94 uint32_t count[2]; 95 uint32_t hash[5]; 96 @@ -544,6 +546,10 @@ 92 97 void md5_hash(const void *data, size_t length, md5_ctx_t *ctx); 93 98 void *md5_end(void *resbuf, md5_ctx_t *ctx); 94 99 95 +typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t;96 +97 100 +unsigned char *hash_bin_to_hex(unsigned char *hash_value, unsigned char hash_length); 98 101 +int hash_fd(int fd, hash_algo_t hash_algo, uint8_t *hash_value); 99 102 +uint8_t *hash_file(const char *filename, hash_algo_t hash_algo); 100 103 + 101 /* busybox.h will include dmalloc later for us, else include it here. */ 102 #if !defined _BB_INTERNAL_H_ && defined DMALLOC 103 #include <dmalloc.h> 104 diff -ruN busybox-1.1.1-old/libbb/Makefile.in busybox-1.1.1-new/libbb/Makefile.in 105 --- busybox-1.1.1-old/libbb/Makefile.in 2006-03-30 00:14:50.000000000 +0200 106 +++ busybox-1.1.1-new/libbb/Makefile.in 2006-03-29 23:46:51.000000000 +0200 107 @@ -11,6 +11,7 @@ 108 109 LIBBB-n:= 110 LIBBB-y:= \ 111 + hash.c \ 112 bb_asprintf.c ask_confirmation.c change_identity.c chomp.c \ 113 compare_string_array.c concat_path_file.c copy_file.c copyfd.c \ 114 create_icmp_socket.c create_icmp6_socket.c \ 115 diff -ruN busybox-1.1.1-old/libbb/hash.c busybox-1.1.1-new/libbb/hash.c 116 --- busybox-1.1.1-old/libbb/hash.c 1970-01-01 01:00:00.000000000 +0100 117 +++ busybox-1.1.1-new/libbb/hash.c 2006-03-30 00:35:54.000000000 +0200 104 extern uint32_t *bb_crc32_filltable (int endian); 105 106 #ifndef RB_POWER_OFF 107 diff -Nur busybox-1.2.1.orig/libbb/hash.c busybox-1.2.1/libbb/hash.c 108 --- busybox-1.2.1.orig/libbb/hash.c 1970-01-01 01:00:00.000000000 +0100 109 +++ busybox-1.2.1/libbb/hash.c 2006-10-23 16:39:05.000000000 +0200 118 110 @@ -0,0 +1,100 @@ 119 111 +/* … … 159 151 + 160 152 + // figure specific hash algorithims 161 + if (hash_algo==HASH_MD5) {153 + if (hash_algo==HASH_MD5) { 162 154 + md5_begin(&context.md5); 163 155 + update = (void (*)(const void*, size_t, void*))md5_hash; 164 156 + final = (void (*)(void*, void*))md5_end; 165 + } else if (hash_algo==HASH_SHA1) {157 + } else if (hash_algo==HASH_SHA1) { 166 158 + sha1_begin(&context.sha1); 167 159 + update = (void (*)(const void*, size_t, void*))sha1_hash; … … 170 162 + 171 163 + 172 + while (0 < (count = read(fd, in_buf, sizeof in_buf))) {164 + while (0 < (count = read(fd, in_buf, sizeof in_buf))) { 173 165 + update(in_buf, count, &context); 174 166 + result += count; 175 167 + } 176 168 + 177 + if (count == 0) {169 + if (count == 0) { 178 170 + final(hash_value, &context); 179 171 + } … … 190 182 + uint8_t *hash_value = NULL; 191 183 + 192 + if (ENABLE_MD5SUM && hash_algo==HASH_MD5) {184 + if (ENABLE_MD5SUM && hash_algo==HASH_MD5) { 193 185 + hash_len = 16; 194 + } else if (ENABLE_SHA1SUM && hash_algo==HASH_SHA1) {186 + } else if (ENABLE_SHA1SUM && hash_algo==HASH_SHA1) { 195 187 + hash_len = 20; 196 188 + } else { … … 198 190 + } 199 191 + 200 + if (strcmp(filename, "-") == 0) {192 + if (strcmp(filename, "-") == 0) { 201 193 + src_fd = STDIN_FILENO; 202 + } else if (0 > (src_fd = open(filename, O_RDONLY))) {194 + } else if (0 > (src_fd = open(filename, O_RDONLY))) { 203 195 + bb_perror_msg("%s", filename); 204 196 + return NULL; 205 197 + } 206 198 + 207 + if (hash_fd(src_fd, hash_algo, hash_buf) > 0) {199 + if (hash_fd(src_fd, hash_algo, hash_buf) > 0) { 208 200 + hash_value = hash_bin_to_hex(hash_buf, hash_len); 209 201 + } 210 202 + 211 + if (src_fd != STDIN_FILENO) {203 + if (src_fd != STDIN_FILENO) { 212 204 + close(src_fd); 213 205 + } … … 217 209 + return hash_value; 218 210 +} 211 diff -Nur busybox-1.2.1.orig/libbb/Makefile.in busybox-1.2.1/libbb/Makefile.in 212 --- busybox-1.2.1.orig/libbb/Makefile.in 2006-07-01 00:42:08.000000000 +0200 213 +++ busybox-1.2.1/libbb/Makefile.in 2006-10-23 16:39:05.000000000 +0200 214 @@ -11,6 +11,7 @@ 215 216 LIBBB-n:= 217 LIBBB-y:= \ 218 + hash.c \ 219 bb_asprintf.c ask_confirmation.c change_identity.c chomp.c \ 220 compare_string_array.c concat_path_file.c copy_file.c copyfd.c \ 221 crc32.c create_icmp_socket.c create_icmp6_socket.c \ trunk/freewrt/package/busybox/patches/914-ipkg-fixes.patch
r1 r993 1 # Copyright (C) 2006 OpenWrt.org 2 # 3 # This is free software, licensed under the GNU General Public License v2. 4 # See /LICENSE for more information. 1 5 # 2 6 # fix ipkg bugs trunk/freewrt/package/busybox/patches/920-ifupdown-manual.patch
r751 r993 1 diff -Nur busybox-1. 1.3.orig/networking/ifupdown.c busybox-1.1.3/networking/ifupdown.c2 --- busybox-1. 1.3.orig/networking/ifupdown.c 2006-09-28 18:55:56.000000000 +02003 +++ busybox-1. 1.3/networking/ifupdown.c 2006-09-28 18:56:40.000000000 +02004 @@ -4 86,6 +486,16 @@1 diff -Nur busybox-1.2.1.orig/networking/ifupdown.c busybox-1.2.1/networking/ifupdown.c 2 --- busybox-1.2.1.orig/networking/ifupdown.c 2006-07-01 00:42:02.000000000 +0200 3 +++ busybox-1.2.1/networking/ifupdown.c 2006-10-23 16:39:59.000000000 +0200 4 @@ -453,6 +453,16 @@ 5 5 return ((result == 2) ? 2 : 0); 6 6 } … … 19 19 { 20 20 struct stat buf; 21 @@ -5 69,6 +579,7 @@21 @@ -536,6 +546,7 @@ 22 22 { "bootp", bootp_up, static_down, }, 23 23 { "dhcp", dhcp_up, dhcp_down, },


