diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-05 13:10:34 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-05 13:10:34 +0000 |
commit | e9ad84dfd4c7eb2936374f02989dacf7026a7276 (patch) | |
tree | 37412d21c0a2ccec7c162e0fb42833058f5934e3 /archival/Config.in | |
parent | 9b44613202a6f2f080ec23746d0680dcef88628d (diff) | |
download | busybox-w32-e9ad84dfd4c7eb2936374f02989dacf7026a7276.tar.gz busybox-w32-e9ad84dfd4c7eb2936374f02989dacf7026a7276.tar.bz2 busybox-w32-e9ad84dfd4c7eb2936374f02989dacf7026a7276.zip |
*: 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 b26be6486..d6332a2b2 100644 --- a/archival/Config.in +++ b/archival/Config.in | |||
@@ -5,6 +5,30 @@ | |||
5 | 5 | ||
6 | menu "Archival Utilities" | 6 | menu "Archival Utilities" |
7 | 7 | ||
8 | config FEATURE_SEAMLESS_LZMA | ||
9 | bool "Make tar, rpm, man, modprobe etc understand .lzma data" | ||
10 | default n | ||
11 | help | ||
12 | Make tar, rpm, man, modprobe etc understand .lzma data. | ||
13 | |||
14 | config FEATURE_SEAMLESS_BZ2 | ||
15 | bool "Make tar, rpm, man, modprobe etc understand .bz2 data" | ||
16 | default n | ||
17 | help | ||
18 | Make tar, rpm, man, modprobe etc understand .bz2 data. | ||
19 | |||
20 | config FEATURE_SEAMLESS_GZ | ||
21 | bool "Make tar, rpm, man, modprobe etc understand .gz data" | ||
22 | default n | ||
23 | help | ||
24 | Make tar, rpm, man, modprobe etc understand .gz data. | ||
25 | |||
26 | config FEATURE_SEAMLESS_Z | ||
27 | bool "Make tar and gunzip understand .Z data" | ||
28 | default n | ||
29 | help | ||
30 | Make tar and gunzip understand .Z data. | ||
31 | |||
8 | config AR | 32 | config AR |
9 | bool "ar" | 33 | bool "ar" |
10 | default n | 34 | default n |
@@ -126,15 +150,6 @@ config GUNZIP | |||
126 | You can use the `-t' option to test the integrity of | 150 | You can use the `-t' option to test the integrity of |
127 | an archive, without decompressing it. | 151 | an archive, without decompressing it. |
128 | 152 | ||
129 | config FEATURE_GUNZIP_UNCOMPRESS | ||
130 | bool "Uncompress support" | ||
131 | default n | ||
132 | depends on GUNZIP | ||
133 | help | ||
134 | Enable if you want gunzip to have the ability to decompress | ||
135 | archives created by the program compress (not much | ||
136 | used anymore). | ||
137 | |||
138 | config GZIP | 153 | config GZIP |
139 | bool "gzip" | 154 | bool "gzip" |
140 | default n | 155 | default n |
@@ -154,13 +169,6 @@ config RPM | |||
154 | help | 169 | help |
155 | Mini RPM applet - queries and extracts RPM packages. | 170 | Mini RPM applet - queries and extracts RPM packages. |
156 | 171 | ||
157 | config FEATURE_RPM_BZ2 | ||
158 | bool "Enable handling of rpms with bzip2-compressed data inside" | ||
159 | default n | ||
160 | depends on RPM | ||
161 | help | ||
162 | Enable handling of rpms with bzip2-compressed data inside. | ||
163 | |||
164 | config TAR | 172 | config TAR |
165 | bool "tar" | 173 | bool "tar" |
166 | default n | 174 | default n |
@@ -179,42 +187,10 @@ config FEATURE_TAR_CREATE | |||
179 | If you enable this option you'll be able to create | 187 | If you enable this option you'll be able to create |
180 | tar archives using the `-c' option. | 188 | tar archives using the `-c' option. |
181 | 189 | ||
182 | config FEATURE_TAR_GZIP | ||
183 | bool "Enable -z option" | ||
184 | default y | ||
185 | depends on TAR | ||
186 | help | ||
187 | If you enable this option tar will be able to call gzip, | ||
188 | when creating or extracting tar gziped archives. | ||
189 | |||
190 | config FEATURE_TAR_BZIP2 | ||
191 | bool "Enable -j option to handle .tar.bz2 files" | ||
192 | default n | ||
193 | depends on TAR | ||
194 | help | ||
195 | If you enable this option you'll be able to extract | ||
196 | archives compressed with bzip2. | ||
197 | |||
198 | config FEATURE_TAR_LZMA | ||
199 | bool "Enable -a option to handle .tar.lzma files" | ||
200 | default n | ||
201 | depends on TAR | ||
202 | help | ||
203 | If you enable this option you'll be able to extract | ||
204 | archives compressed with lzma. | ||
205 | |||
206 | config FEATURE_TAR_COMPRESS | ||
207 | bool "Enable -Z option" | ||
208 | default n | ||
209 | depends on TAR | ||
210 | help | ||
211 | If you enable this option tar will be able to call uncompress, | ||
212 | when extracting .tar.Z archives. | ||
213 | |||
214 | config FEATURE_TAR_AUTODETECT | 190 | config FEATURE_TAR_AUTODETECT |
215 | bool "Autodetect gz/bz2 compresses tarballs" | 191 | bool "Autodetect gz/bz2 compressed tarballs" |
216 | default n | 192 | default n |
217 | depends on FEATURE_TAR_GZIP || FEATURE_TAR_BZIP2 | 193 | depends on FEATURE_SEAMLESS_Z || FEATURE_SEAMLESS_GZ || FEATURE_SEAMLESS_BZ2 || FEATURE_SEAMLESS_LZMA |
218 | help | 194 | help |
219 | With this option tar can automatically detect gzip/bzip2 compressed | 195 | With this option tar can automatically detect gzip/bzip2 compressed |
220 | tarballs. Currently it works only on files (not pipes etc). | 196 | tarballs. Currently it works only on files (not pipes etc). |
@@ -312,42 +288,4 @@ config UNZIP | |||
312 | current directory. Use the `-d' option to extract to a | 288 | current directory. Use the `-d' option to extract to a |
313 | directory of your choice. | 289 | directory of your choice. |
314 | 290 | ||
315 | comment "Common options for cpio and tar" | ||
316 | depends on CPIO || TAR | ||
317 | |||
318 | comment "Common options for dpkg and dpkg_deb" | ||
319 | depends on DPKG || DPKG_DEB | ||
320 | |||
321 | config FEATURE_DEB_TAR_GZ | ||
322 | bool "gzip debian packages (normal)" | ||
323 | default y if DPKG || DPKG_DEB | ||
324 | depends on DPKG || DPKG_DEB | ||
325 | help | ||
326 | This is the default compression method inside the debian ar file. | ||
327 | |||
328 | If you want compatibility with standard .deb's you should say yes | ||
329 | here. | ||
330 | |||
331 | config FEATURE_DEB_TAR_BZ2 | ||
332 | bool "bzip2 debian packages" | ||
333 | default n | ||
334 | depends on DPKG || DPKG_DEB | ||
335 | help | ||
336 | This allows dpkg and dpkg-deb to extract deb's that are compressed | ||
337 | internally with bzip2 instead of gzip. | ||
338 | |||
339 | You only want this if you are creating your own custom debian | ||
340 | packages that use an internal control.tar.bz2 or data.tar.bz2. | ||
341 | |||
342 | config FEATURE_DEB_TAR_LZMA | ||
343 | bool "lzma debian packages" | ||
344 | default n | ||
345 | depends on DPKG || DPKG_DEB | ||
346 | help | ||
347 | This allows dpkg and dpkg-deb to extract deb's that are compressed | ||
348 | internally with lzma instead of gzip. | ||
349 | |||
350 | You only want this if you are creating your own custom debian | ||
351 | packages that use an internal control.tar.lzma or data.tar.lzma. | ||
352 | |||
353 | endmenu | 291 | endmenu |