diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/Config.in | 100 | ||||
-rw-r--r-- | archival/Kbuild | 22 | ||||
-rw-r--r-- | archival/Makefile | 23 | ||||
-rw-r--r-- | archival/Makefile.in | 41 | ||||
-rw-r--r-- | archival/libunarchive/Kbuild | 59 | ||||
-rw-r--r-- | archival/libunarchive/Makefile | 36 | ||||
-rw-r--r-- | archival/libunarchive/Makefile.in | 83 |
7 files changed, 131 insertions, 233 deletions
diff --git a/archival/Config.in b/archival/Config.in index ea8076403..bc87573b1 100644 --- a/archival/Config.in +++ b/archival/Config.in | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | menu "Archival Utilities" | 6 | menu "Archival Utilities" |
7 | 7 | ||
8 | config CONFIG_AR | 8 | config AR |
9 | bool "ar" | 9 | bool "ar" |
10 | default n | 10 | default n |
11 | help | 11 | help |
@@ -28,17 +28,17 @@ config CONFIG_AR | |||
28 | Unless you have a specific application which requires ar, you should | 28 | Unless you have a specific application which requires ar, you should |
29 | probably say N here. | 29 | probably say N here. |
30 | 30 | ||
31 | config CONFIG_FEATURE_AR_LONG_FILENAMES | 31 | 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 | default n | 33 | default n |
34 | depends on CONFIG_AR | 34 | depends on AR |
35 | help | 35 | help |
36 | By default the ar format can only store the first 15 characters of the | 36 | By default the ar format can only store the first 15 characters of the |
37 | filename, this option removes that limitation. | 37 | filename, this option removes that limitation. |
38 | It supports the GNU ar long filename method which moves multiple long | 38 | It supports the GNU ar long filename method which moves multiple long |
39 | filenames into a the data section of a new ar entry. | 39 | filenames into a the data section of a new ar entry. |
40 | 40 | ||
41 | config CONFIG_BUNZIP2 | 41 | config BUNZIP2 |
42 | bool "bunzip2" | 42 | bool "bunzip2" |
43 | default n | 43 | default n |
44 | help | 44 | help |
@@ -54,7 +54,7 @@ config CONFIG_BUNZIP2 | |||
54 | Unless you have a specific application which requires bunzip2, you | 54 | Unless you have a specific application which requires bunzip2, you |
55 | should probably say N here. | 55 | should probably say N here. |
56 | 56 | ||
57 | config CONFIG_CPIO | 57 | config CPIO |
58 | bool "cpio" | 58 | bool "cpio" |
59 | default n | 59 | default n |
60 | help | 60 | help |
@@ -68,7 +68,7 @@ config CONFIG_CPIO | |||
68 | Unless you have a specific application which requires cpio, you should | 68 | Unless you have a specific application which requires cpio, you should |
69 | probably say N here. | 69 | probably say N here. |
70 | 70 | ||
71 | config CONFIG_DPKG | 71 | config DPKG |
72 | bool "dpkg" | 72 | bool "dpkg" |
73 | default n | 73 | default n |
74 | help | 74 | help |
@@ -77,7 +77,7 @@ config CONFIG_DPKG | |||
77 | This implementation of dpkg has a number of limitations, you should use the | 77 | This implementation of dpkg has a number of limitations, you should use the |
78 | official dpkg if possible. | 78 | official dpkg if possible. |
79 | 79 | ||
80 | config CONFIG_DPKG_DEB | 80 | config DPKG_DEB |
81 | bool "dpkg_deb" | 81 | bool "dpkg_deb" |
82 | default n | 82 | default n |
83 | help | 83 | help |
@@ -88,16 +88,16 @@ config CONFIG_DPKG_DEB | |||
88 | Unless you have a specific application which requires dpkg-deb, you should | 88 | Unless you have a specific application which requires dpkg-deb, you should |
89 | probably say N here. | 89 | probably say N here. |
90 | 90 | ||
91 | config CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY | 91 | config FEATURE_DPKG_DEB_EXTRACT_ONLY |
92 | bool "extract only (-x)" | 92 | bool "extract only (-x)" |
93 | default n | 93 | default n |
94 | depends on CONFIG_DPKG_DEB | 94 | depends on DPKG_DEB |
95 | help | 95 | help |
96 | This reduces dpkg-deb to the equivalent of "ar -p <deb> data.tar.gz | tar -zx". | 96 | This reduces dpkg-deb to the equivalent of "ar -p <deb> data.tar.gz | tar -zx". |
97 | However it saves space as none of the extra dpkg-deb, ar or tar options are | 97 | However it saves space as none of the extra dpkg-deb, ar or tar options are |
98 | needed, they are linked to internally. | 98 | needed, they are linked to internally. |
99 | 99 | ||
100 | config CONFIG_GUNZIP | 100 | config GUNZIP |
101 | bool "gunzip" | 101 | bool "gunzip" |
102 | default n | 102 | default n |
103 | help | 103 | help |
@@ -105,35 +105,35 @@ config CONFIG_GUNZIP | |||
105 | You can use the `-t' option to test the integrity of | 105 | You can use the `-t' option to test the integrity of |
106 | an archive, without decompressing it. | 106 | an archive, without decompressing it. |
107 | 107 | ||
108 | config CONFIG_FEATURE_GUNZIP_UNCOMPRESS | 108 | config FEATURE_GUNZIP_UNCOMPRESS |
109 | bool "Uncompress support" | 109 | bool "Uncompress support" |
110 | default n | 110 | default n |
111 | depends on CONFIG_GUNZIP | 111 | depends on GUNZIP |
112 | help | 112 | help |
113 | Enable if you want gunzip to have the ability to decompress | 113 | Enable if you want gunzip to have the ability to decompress |
114 | archives created by the program compress (not much | 114 | archives created by the program compress (not much |
115 | used anymore). | 115 | used anymore). |
116 | 116 | ||
117 | config CONFIG_GZIP | 117 | config GZIP |
118 | bool "gzip" | 118 | bool "gzip" |
119 | default n | 119 | default n |
120 | help | 120 | help |
121 | gzip is used to compress files. | 121 | gzip is used to compress files. |
122 | It's probably the most widely used UNIX compression program. | 122 | It's probably the most widely used UNIX compression program. |
123 | 123 | ||
124 | config CONFIG_RPM2CPIO | 124 | config RPM2CPIO |
125 | bool "rpm2cpio" | 125 | bool "rpm2cpio" |
126 | default n | 126 | default n |
127 | help | 127 | help |
128 | Converts an RPM file into a CPIO archive. | 128 | Converts an RPM file into a CPIO archive. |
129 | 129 | ||
130 | config CONFIG_RPM | 130 | config RPM |
131 | bool "rpm" | 131 | bool "rpm" |
132 | default n | 132 | default n |
133 | help | 133 | help |
134 | Mini RPM applet - queries and extracts | 134 | Mini RPM applet - queries and extracts |
135 | 135 | ||
136 | config CONFIG_TAR | 136 | config TAR |
137 | bool "tar" | 137 | bool "tar" |
138 | default n | 138 | default n |
139 | help | 139 | help |
@@ -141,86 +141,86 @@ config CONFIG_TAR | |||
141 | create compressed archives. It's probably the most widely used | 141 | create compressed archives. It's probably the most widely used |
142 | UNIX archive program. | 142 | UNIX archive program. |
143 | 143 | ||
144 | config CONFIG_FEATURE_TAR_CREATE | 144 | config FEATURE_TAR_CREATE |
145 | bool "Enable archive creation" | 145 | bool "Enable archive creation" |
146 | default y | 146 | default y |
147 | depends on CONFIG_TAR | 147 | depends on TAR |
148 | help | 148 | help |
149 | If you enable this option you'll be able to create | 149 | If you enable this option you'll be able to create |
150 | tar archives using the `-c' option. | 150 | tar archives using the `-c' option. |
151 | 151 | ||
152 | config CONFIG_FEATURE_TAR_BZIP2 | 152 | config FEATURE_TAR_BZIP2 |
153 | bool "Enable -j option to handle .tar.bz2 files" | 153 | bool "Enable -j option to handle .tar.bz2 files" |
154 | default n | 154 | default n |
155 | depends on CONFIG_TAR | 155 | depends on TAR |
156 | help | 156 | help |
157 | If you enable this option you'll be able to extract | 157 | If you enable this option you'll be able to extract |
158 | archives compressed with bzip2. | 158 | archives compressed with bzip2. |
159 | 159 | ||
160 | config CONFIG_FEATURE_TAR_LZMA | 160 | config FEATURE_TAR_LZMA |
161 | bool "Enable -a option to handle .tar.lzma files" | 161 | bool "Enable -a option to handle .tar.lzma files" |
162 | default n | 162 | default n |
163 | depends on CONFIG_TAR | 163 | depends on TAR |
164 | help | 164 | help |
165 | If you enable this option you'll be able to extract | 165 | If you enable this option you'll be able to extract |
166 | archives compressed with lzma. | 166 | archives compressed with lzma. |
167 | 167 | ||
168 | config CONFIG_FEATURE_TAR_FROM | 168 | config FEATURE_TAR_FROM |
169 | bool "Enable -X (exclude from) and -T (include from) options)" | 169 | bool "Enable -X (exclude from) and -T (include from) options)" |
170 | default n | 170 | default n |
171 | depends on CONFIG_TAR | 171 | depends on TAR |
172 | help | 172 | help |
173 | If you enable this option you'll be able to specify | 173 | If you enable this option you'll be able to specify |
174 | a list of files to include or exclude from an archive. | 174 | a list of files to include or exclude from an archive. |
175 | 175 | ||
176 | config CONFIG_FEATURE_TAR_GZIP | 176 | config FEATURE_TAR_GZIP |
177 | bool "Enable -z option" | 177 | bool "Enable -z option" |
178 | default y | 178 | default y |
179 | depends on CONFIG_TAR | 179 | depends on TAR |
180 | help | 180 | help |
181 | If you enable this option tar will be able to call gzip, | 181 | If you enable this option tar will be able to call gzip, |
182 | when creating or extracting tar gziped archives. | 182 | when creating or extracting tar gziped archives. |
183 | 183 | ||
184 | config CONFIG_FEATURE_TAR_COMPRESS | 184 | config FEATURE_TAR_COMPRESS |
185 | bool "Enable -Z option" | 185 | bool "Enable -Z option" |
186 | default n | 186 | default n |
187 | depends on CONFIG_TAR | 187 | depends on TAR |
188 | help | 188 | help |
189 | If you enable this option tar will be able to call uncompress, | 189 | If you enable this option tar will be able to call uncompress, |
190 | when extracting .tar.Z archives. | 190 | when extracting .tar.Z archives. |
191 | 191 | ||
192 | config CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY | 192 | config FEATURE_TAR_OLDGNU_COMPATIBILITY |
193 | bool "Enable support for old tar header format" | 193 | bool "Enable support for old tar header format" |
194 | default N | 194 | default N |
195 | depends on CONFIG_TAR | 195 | depends on TAR |
196 | help | 196 | help |
197 | This option is required to unpack archives created in | 197 | This option is required to unpack archives created in |
198 | the old GNU format; help to kill this old format by | 198 | the old GNU format; help to kill this old format by |
199 | repacking your ancient archives with the new format. | 199 | repacking your ancient archives with the new format. |
200 | 200 | ||
201 | config CONFIG_FEATURE_TAR_GNU_EXTENSIONS | 201 | config FEATURE_TAR_GNU_EXTENSIONS |
202 | bool "Enable support for some GNU tar extensions" | 202 | bool "Enable support for some GNU tar extensions" |
203 | default y | 203 | default y |
204 | depends on CONFIG_TAR | 204 | depends on TAR |
205 | help | 205 | help |
206 | With this option busybox supports GNU long filenames and | 206 | With this option busybox supports GNU long filenames and |
207 | linknames. | 207 | linknames. |
208 | 208 | ||
209 | config CONFIG_FEATURE_TAR_LONG_OPTIONS | 209 | config FEATURE_TAR_LONG_OPTIONS |
210 | bool "Enable long options" | 210 | bool "Enable long options" |
211 | default n | 211 | default n |
212 | depends on CONFIG_TAR && CONFIG_GETOPT_LONG | 212 | depends on TAR && GETOPT_LONG |
213 | help | 213 | help |
214 | Enable use of long options, increases size by about 400 Bytes | 214 | Enable use of long options, increases size by about 400 Bytes |
215 | 215 | ||
216 | config CONFIG_UNCOMPRESS | 216 | config UNCOMPRESS |
217 | bool "uncompress" | 217 | bool "uncompress" |
218 | default n | 218 | default n |
219 | help | 219 | help |
220 | uncompress is used to decompress archives created by compress. | 220 | uncompress is used to decompress archives created by compress. |
221 | Not much used anymore, replaced by gzip/gunzip. | 221 | Not much used anymore, replaced by gzip/gunzip. |
222 | 222 | ||
223 | config CONFIG_UNLZMA | 223 | config UNLZMA |
224 | bool "unlzma" | 224 | bool "unlzma" |
225 | default n | 225 | default n |
226 | help | 226 | help |
@@ -235,15 +235,15 @@ config CONFIG_UNLZMA | |||
235 | Unless you have a specific application which requires unlzma, you | 235 | Unless you have a specific application which requires unlzma, you |
236 | should probably say N here. | 236 | should probably say N here. |
237 | 237 | ||
238 | config CONFIG_FEATURE_LZMA_FAST | 238 | config FEATURE_LZMA_FAST |
239 | bool "Optimze unlzma for speed" | 239 | bool "Optimze unlzma for speed" |
240 | default n | 240 | default n |
241 | depends on CONFIG_UNLZMA | 241 | depends on UNLZMA |
242 | help | 242 | help |
243 | This option reduces decompression time by about 33% at the cost of | 243 | This option reduces decompression time by about 33% at the cost of |
244 | a 2K bigger binary. | 244 | a 2K bigger binary. |
245 | 245 | ||
246 | config CONFIG_UNZIP | 246 | config UNZIP |
247 | bool "unzip" | 247 | bool "unzip" |
248 | default n | 248 | default n |
249 | help | 249 | help |
@@ -254,31 +254,31 @@ config CONFIG_UNZIP | |||
254 | directory of your choice. | 254 | directory of your choice. |
255 | 255 | ||
256 | comment "Common options for cpio and tar" | 256 | comment "Common options for cpio and tar" |
257 | depends on CONFIG_CPIO || CONFIG_TAR | 257 | depends on CPIO || TAR |
258 | 258 | ||
259 | config CONFIG_FEATURE_UNARCHIVE_TAPE | 259 | config FEATURE_UNARCHIVE_TAPE |
260 | bool "Enable tape drive support" | 260 | bool "Enable tape drive support" |
261 | default n | 261 | default n |
262 | depends on CONFIG_CPIO || CONFIG_TAR | 262 | depends on CPIO || TAR |
263 | help | 263 | help |
264 | I don't think this is needed anymore. | 264 | I don't think this is needed anymore. |
265 | 265 | ||
266 | comment "Common options for dpkg and dpkg_deb" | 266 | comment "Common options for dpkg and dpkg_deb" |
267 | depends on CONFIG_DPKG || CONFIG_DPKG_DEB | 267 | depends on DPKG || DPKG_DEB |
268 | 268 | ||
269 | config CONFIG_FEATURE_DEB_TAR_GZ | 269 | config FEATURE_DEB_TAR_GZ |
270 | bool "gzip debian packages (normal)" | 270 | bool "gzip debian packages (normal)" |
271 | default y if CONFIG_DPKG || CONFIG_DPKG_DEB | 271 | default y if DPKG || DPKG_DEB |
272 | depends on CONFIG_DPKG || CONFIG_DPKG_DEB | 272 | depends on DPKG || DPKG_DEB |
273 | help | 273 | help |
274 | This is the default compression method inside the debian ar file. | 274 | This is the default compression method inside the debian ar file. |
275 | 275 | ||
276 | If you want compatibility with standard .deb's you should say yes here. | 276 | If you want compatibility with standard .deb's you should say yes here. |
277 | 277 | ||
278 | config CONFIG_FEATURE_DEB_TAR_BZ2 | 278 | config FEATURE_DEB_TAR_BZ2 |
279 | bool "bzip2 debian packages" | 279 | bool "bzip2 debian packages" |
280 | default n | 280 | default n |
281 | depends on CONFIG_DPKG || CONFIG_DPKG_DEB | 281 | depends on DPKG || DPKG_DEB |
282 | help | 282 | help |
283 | This allows dpkg and dpkg-deb to extract deb's that are compressed internally | 283 | This allows dpkg and dpkg-deb to extract deb's that are compressed internally |
284 | with bzip2 instead of gzip. | 284 | with bzip2 instead of gzip. |
@@ -286,10 +286,10 @@ config CONFIG_FEATURE_DEB_TAR_BZ2 | |||
286 | You only want this if you are creating your own custom debian packages that | 286 | You only want this if you are creating your own custom debian packages that |
287 | use an internal control.tar.bz2 or data.tar.bz2. | 287 | use an internal control.tar.bz2 or data.tar.bz2. |
288 | 288 | ||
289 | config CONFIG_FEATURE_DEB_TAR_LZMA | 289 | config FEATURE_DEB_TAR_LZMA |
290 | bool "lzma debian packages" | 290 | bool "lzma debian packages" |
291 | default n | 291 | default n |
292 | depends on CONFIG_DPKG || CONFIG_DPKG_DEB | 292 | depends on DPKG || DPKG_DEB |
293 | help | 293 | help |
294 | This allows dpkg and dpkg-deb to extract deb's that are compressed | 294 | This allows dpkg and dpkg-deb to extract deb's that are compressed |
295 | internally with lzma instead of gzip. | 295 | internally with lzma instead of gzip. |
diff --git a/archival/Kbuild b/archival/Kbuild new file mode 100644 index 000000000..f85e0c2a7 --- /dev/null +++ b/archival/Kbuild | |||
@@ -0,0 +1,22 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | libs-y += libunarchive/ | ||
8 | |||
9 | lib-y:= | ||
10 | lib-$(CONFIG_AR) += ar.o | ||
11 | lib-$(CONFIG_BUNZIP2) += bunzip2.o | ||
12 | lib-$(CONFIG_UNLZMA) += unlzma.o | ||
13 | lib-$(CONFIG_CPIO) += cpio.o | ||
14 | lib-$(CONFIG_DPKG) += dpkg.o | ||
15 | lib-$(CONFIG_DPKG_DEB) += dpkg_deb.o | ||
16 | lib-$(CONFIG_GUNZIP) += gunzip.o | ||
17 | lib-$(CONFIG_GZIP) += gzip.o | ||
18 | lib-$(CONFIG_RPM2CPIO) += rpm2cpio.o | ||
19 | lib-$(CONFIG_RPM) += rpm.o | ||
20 | lib-$(CONFIG_TAR) += tar.o | ||
21 | lib-$(CONFIG_UNCOMPRESS) += uncompress.o | ||
22 | lib-$(CONFIG_UNZIP) += unzip.o | ||
diff --git a/archival/Makefile b/archival/Makefile deleted file mode 100644 index 66da4afc1..000000000 --- a/archival/Makefile +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | ARCHIVAL_DIR:=./ | ||
14 | srcdir=$(top_srcdir)/archival | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include $(srcdir)/Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
22 | rm -f *.o *.a $(AR_TARGET) | ||
23 | |||
diff --git a/archival/Makefile.in b/archival/Makefile.in deleted file mode 100644 index 276ef4127..000000000 --- a/archival/Makefile.in +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | ARCHIVAL_AR:=archival.a | ||
8 | ifndef $(ARCHIVAL_DIR) | ||
9 | ARCHIVAL_DIR:=$(top_builddir)/archival/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/archival | ||
12 | |||
13 | ARCHIVAL-y:= | ||
14 | ARCHIVAL-$(CONFIG_AR) += ar.o | ||
15 | ARCHIVAL-$(CONFIG_BUNZIP2) += bunzip2.o | ||
16 | ARCHIVAL-$(CONFIG_UNLZMA) += unlzma.o | ||
17 | ARCHIVAL-$(CONFIG_CPIO) += cpio.o | ||
18 | ARCHIVAL-$(CONFIG_DPKG) += dpkg.o | ||
19 | ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o | ||
20 | ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o | ||
21 | ARCHIVAL-$(CONFIG_GZIP) += gzip.o | ||
22 | ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o | ||
23 | ARCHIVAL-$(CONFIG_RPM) += rpm.o | ||
24 | ARCHIVAL-$(CONFIG_TAR) += tar.o | ||
25 | ARCHIVAL-$(CONFIG_UNCOMPRESS) += uncompress.o | ||
26 | ARCHIVAL-$(CONFIG_UNZIP) += unzip.o | ||
27 | |||
28 | ifneq ($(strip $(ARCHIVAL-y)),) | ||
29 | libraries-y+=$(ARCHIVAL_DIR)$(ARCHIVAL_AR) | ||
30 | endif | ||
31 | |||
32 | ARCHIVAL_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(ARCHIVAL-y)) | ||
33 | ARCHIVAL_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
34 | APPLET_SRC-y+=$(ARCHIVAL_SRC-y) | ||
35 | APPLET_SRC-a+=$(ARCHIVAL_SRC-a) | ||
36 | |||
37 | $(ARCHIVAL_DIR)$(ARCHIVAL_AR): $(patsubst %,$(ARCHIVAL_DIR)%, $(ARCHIVAL-y)) | ||
38 | $(do_ar) | ||
39 | |||
40 | $(ARCHIVAL_DIR)%.o: $(srcdir)/%.c | ||
41 | $(compile.c) | ||
diff --git a/archival/libunarchive/Kbuild b/archival/libunarchive/Kbuild new file mode 100644 index 000000000..c5f1bfbfe --- /dev/null +++ b/archival/libunarchive/Kbuild | |||
@@ -0,0 +1,59 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
6 | |||
7 | lib-y:= \ | ||
8 | \ | ||
9 | data_skip.o \ | ||
10 | data_extract_all.o \ | ||
11 | data_extract_to_stdout.o \ | ||
12 | data_extract_to_buffer.o \ | ||
13 | \ | ||
14 | filter_accept_all.o \ | ||
15 | filter_accept_list.o \ | ||
16 | filter_accept_reject_list.o \ | ||
17 | \ | ||
18 | header_skip.o \ | ||
19 | header_list.o \ | ||
20 | header_verbose_list.o \ | ||
21 | \ | ||
22 | archive_xread_all_eof.o \ | ||
23 | \ | ||
24 | seek_by_char.o \ | ||
25 | seek_by_jump.o \ | ||
26 | \ | ||
27 | data_align.o \ | ||
28 | find_list_entry.o \ | ||
29 | open_transformer.o \ | ||
30 | init_handle.o | ||
31 | |||
32 | GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o | ||
33 | DPKG_FILES:= \ | ||
34 | get_header_ar.o \ | ||
35 | unpack_ar_archive.o \ | ||
36 | get_header_tar.o \ | ||
37 | filter_accept_list_reassign.o | ||
38 | |||
39 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o | ||
40 | lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o | ||
41 | lib-$(CONFIG_UNLZMA) += decompress_unlzma.o | ||
42 | lib-$(CONFIG_CPIO) += get_header_cpio.o | ||
43 | lib-$(CONFIG_DPKG) += $(DPKG_FILES) | ||
44 | lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) | ||
45 | lib-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
46 | lib-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
47 | lib-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
48 | lib-$(CONFIG_GUNZIP) += $(GUNZIP_FILES) | ||
49 | lib-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o | ||
50 | lib-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o | ||
51 | lib-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o | ||
52 | lib-$(CONFIG_TAR) += get_header_tar.o | ||
53 | lib-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
54 | lib-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
55 | lib-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
56 | lib-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o | ||
57 | lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o | ||
58 | lib-$(CONFIG_UNZIP) += $(GUNZIP_FILES) | ||
59 | lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o | ||
diff --git a/archival/libunarchive/Makefile b/archival/libunarchive/Makefile deleted file mode 100644 index 9ab1cac81..000000000 --- a/archival/libunarchive/Makefile +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # This program is free software; you can redistribute it and/or modify | ||
6 | # it under the terms of the GNU General Public License as published by | ||
7 | # the Free Software Foundation; either version 2 of the License, or | ||
8 | # (at your option) any later version. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | # General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License | ||
16 | # along with this program; if not, write to the Free Software | ||
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | # | ||
19 | |||
20 | ifndef top_srcdir | ||
21 | top_srcdir=../.. | ||
22 | endif | ||
23 | ifndef top_builddir | ||
24 | top_builddir=../.. | ||
25 | endif | ||
26 | srcdir=$(top_srcdir)/archival/libunarchive | ||
27 | LIBUNARCHIVE_DIR:=./ | ||
28 | include $(top_srcdir)/Rules.mak | ||
29 | include $(top_builddir)/.config | ||
30 | include $(srcdir)/Makefile.in | ||
31 | all: $(libraries-y) | ||
32 | -include $(top_builddir)/.depend | ||
33 | |||
34 | clean: | ||
35 | rm -f *.o *.a $(AR_TARGET) | ||
36 | |||
diff --git a/archival/libunarchive/Makefile.in b/archival/libunarchive/Makefile.in deleted file mode 100644 index 46c50f81d..000000000 --- a/archival/libunarchive/Makefile.in +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
6 | |||
7 | LIBUNARCHIVE_AR:=libunarchive.a | ||
8 | ifndef $(LIBUNARCHIVE_DIR) | ||
9 | LIBUNARCHIVE_DIR:=$(top_builddir)/archival/libunarchive | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/archival/libunarchive | ||
12 | |||
13 | LIBUNARCHIVE-obj:=$(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR) | ||
14 | |||
15 | libraries-y+=$(LIBUNARCHIVE-obj) | ||
16 | |||
17 | LIBUNARCHIVE-y:= \ | ||
18 | \ | ||
19 | data_skip.o \ | ||
20 | data_extract_all.o \ | ||
21 | data_extract_to_stdout.o \ | ||
22 | data_extract_to_buffer.o \ | ||
23 | \ | ||
24 | filter_accept_all.o \ | ||
25 | filter_accept_list.o \ | ||
26 | filter_accept_reject_list.o \ | ||
27 | \ | ||
28 | header_skip.o \ | ||
29 | header_list.o \ | ||
30 | header_verbose_list.o \ | ||
31 | \ | ||
32 | archive_xread_all_eof.o \ | ||
33 | \ | ||
34 | seek_by_char.o \ | ||
35 | seek_by_jump.o \ | ||
36 | \ | ||
37 | data_align.o \ | ||
38 | find_list_entry.o \ | ||
39 | open_transformer.o \ | ||
40 | init_handle.o | ||
41 | |||
42 | GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o | ||
43 | DPKG_FILES:= \ | ||
44 | get_header_ar.o \ | ||
45 | unpack_ar_archive.o \ | ||
46 | get_header_tar.o \ | ||
47 | filter_accept_list_reassign.o | ||
48 | |||
49 | LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o | ||
50 | LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2.o | ||
51 | LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma.o | ||
52 | LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o | ||
53 | LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES) | ||
54 | LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) | ||
55 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
56 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
57 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
58 | LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES) | ||
59 | LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o | ||
60 | LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o | ||
61 | LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o | ||
62 | LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o | ||
63 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
64 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
65 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
66 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o | ||
67 | LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o | ||
68 | LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES) | ||
69 | LIBUNARCHIVE-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o | ||
70 | |||
71 | |||
72 | LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y)) | ||
73 | |||
74 | LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBUNARCHIVE-y))) | ||
75 | LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
76 | LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y) | ||
77 | LIBRARY_SRC-a+=$(LIBUNARCHIVE_SRC-a) | ||
78 | |||
79 | $(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR): $(patsubst %,$(LIBUNARCHIVE_DIR)/%,$(LIBUNARCHIVE-y)) | ||
80 | $(do_ar) | ||
81 | |||
82 | $(LIBUNARCHIVE_DIR)/%.o: $(srcdir)/%.c | ||
83 | $(compile.c) | ||