diff options
author | Denis Vlasenko | 2008-08-05 13:10:34 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-08-05 13:10:34 +0000 |
commit | e9ad84dfd4c7eb2936374f02989dacf7026a7276 (patch) | |
tree | 37412d21c0a2ccec7c162e0fb42833058f5934e3 /archival/Config.in | |
parent | 9b44613202a6f2f080ec23746d0680dcef88628d (diff) | |
download | busybox-e9ad84dfd4c7eb2936374f02989dacf7026a7276.zip busybox-e9ad84dfd4c7eb2936374f02989dacf7026a7276.tar.gz |
*: refactor handling of archived files. "tar f file.tar.lzma" now works too.
function old new delta
unpack_Z_stream - 1229 +1229
open_zipped - 176 +176
unpack_bz2_stream_prime - 60 +60
tar_main 642 677 +35
find_main 406 418 +12
sv_main 1222 1233 +11
decode_format_string 829 837 +8
cmp_main 641 649 +8
popstring 134 140 +6
filter_accept_list_reassign 120 125 +5
parse_and_put_prompt 800 804 +4
passwd_main 1053 1049 -4
make_new_name_gunzip 119 114 -5
rpm_main 1688 1670 -18
prepare 302 283 -19
xmalloc_open_zipped_read_close 135 61 -74
uncompress 1229 - -1229
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 8/5 up/down: 1554/-1349) Total: 205 bytes
Diffstat (limited to 'archival/Config.in')
-rw-r--r-- | archival/Config.in | 114 |
1 files changed, 26 insertions, 88 deletions
diff --git a/archival/Config.in b/archival/Config.in index b26be64..d6332a2 100644 --- a/archival/Config.in +++ b/archival/Config.in @@ -5,6 +5,30 @@ menu "Archival Utilities" +config FEATURE_SEAMLESS_LZMA + bool "Make tar, rpm, man, modprobe etc understand .lzma data" + default n + help + Make tar, rpm, man, modprobe etc understand .lzma data. + +config FEATURE_SEAMLESS_BZ2 + bool "Make tar, rpm, man, modprobe etc understand .bz2 data" + default n + help + Make tar, rpm, man, modprobe etc understand .bz2 data. + +config FEATURE_SEAMLESS_GZ + bool "Make tar, rpm, man, modprobe etc understand .gz data" + default n + help + Make tar, rpm, man, modprobe etc understand .gz data. + +config FEATURE_SEAMLESS_Z + bool "Make tar and gunzip understand .Z data" + default n + help + Make tar and gunzip understand .Z data. + config AR bool "ar" default n @@ -126,15 +150,6 @@ config GUNZIP You can use the `-t' option to test the integrity of an archive, without decompressing it. -config FEATURE_GUNZIP_UNCOMPRESS - bool "Uncompress support" - default n - depends on GUNZIP - help - Enable if you want gunzip to have the ability to decompress - archives created by the program compress (not much - used anymore). - config GZIP bool "gzip" default n @@ -154,13 +169,6 @@ config RPM help Mini RPM applet - queries and extracts RPM packages. -config FEATURE_RPM_BZ2 - bool "Enable handling of rpms with bzip2-compressed data inside" - default n - depends on RPM - help - Enable handling of rpms with bzip2-compressed data inside. - config TAR bool "tar" default n @@ -179,42 +187,10 @@ config FEATURE_TAR_CREATE If you enable this option you'll be able to create tar archives using the `-c' option. -config FEATURE_TAR_GZIP - bool "Enable -z option" - default y - depends on TAR - help - If you enable this option tar will be able to call gzip, - when creating or extracting tar gziped archives. - -config FEATURE_TAR_BZIP2 - bool "Enable -j option to handle .tar.bz2 files" - default n - depends on TAR - help - If you enable this option you'll be able to extract - archives compressed with bzip2. - -config FEATURE_TAR_LZMA - bool "Enable -a option to handle .tar.lzma files" - default n - depends on TAR - help - If you enable this option you'll be able to extract - archives compressed with lzma. - -config FEATURE_TAR_COMPRESS - bool "Enable -Z option" - default n - depends on TAR - help - If you enable this option tar will be able to call uncompress, - when extracting .tar.Z archives. - config FEATURE_TAR_AUTODETECT - bool "Autodetect gz/bz2 compresses tarballs" + bool "Autodetect gz/bz2 compressed tarballs" default n - depends on FEATURE_TAR_GZIP || FEATURE_TAR_BZIP2 + depends on FEATURE_SEAMLESS_Z || FEATURE_SEAMLESS_GZ || FEATURE_SEAMLESS_BZ2 || FEATURE_SEAMLESS_LZMA help With this option tar can automatically detect gzip/bzip2 compressed tarballs. Currently it works only on files (not pipes etc). @@ -312,42 +288,4 @@ config UNZIP current directory. Use the `-d' option to extract to a directory of your choice. -comment "Common options for cpio and tar" - depends on CPIO || TAR - -comment "Common options for dpkg and dpkg_deb" - depends on DPKG || DPKG_DEB - -config FEATURE_DEB_TAR_GZ - bool "gzip debian packages (normal)" - default y if DPKG || DPKG_DEB - depends on DPKG || DPKG_DEB - help - This is the default compression method inside the debian ar file. - - If you want compatibility with standard .deb's you should say yes - here. - -config FEATURE_DEB_TAR_BZ2 - bool "bzip2 debian packages" - default n - depends on DPKG || DPKG_DEB - help - This allows dpkg and dpkg-deb to extract deb's that are compressed - internally with bzip2 instead of gzip. - - You only want this if you are creating your own custom debian - packages that use an internal control.tar.bz2 or data.tar.bz2. - -config FEATURE_DEB_TAR_LZMA - bool "lzma debian packages" - default n - depends on DPKG || DPKG_DEB - help - This allows dpkg and dpkg-deb to extract deb's that are compressed - internally with lzma instead of gzip. - - You only want this if you are creating your own custom debian - packages that use an internal control.tar.lzma or data.tar.lzma. - endmenu |