mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-28 22:20:28 +00:00
Modify applets to use libunarchive
This commit is contained in:
parent
95ebf618b7
commit
0d2fb76c11
@ -10,6 +10,12 @@ bool 'ar' CONFIG_AR
|
||||
bool 'bunzip2' CONFIG_BUNZIP2
|
||||
bool 'cpio' CONFIG_CPIO
|
||||
bool 'dpkg' CONFIG_DPKG
|
||||
if [ "$CONFIG_DPKG" = "y" ] ; then
|
||||
bool ' list support' CONFIG_FEATURE_DPKG_LIST
|
||||
if [ "$CONFIG_FEATURE_DPKG_LIST" = "y" ] ; then
|
||||
bool ' short descriptions' CONFIG_FEATURE_DPKG_LIST_DESCRIPTIONS
|
||||
fi
|
||||
fi
|
||||
bool 'dpkg_deb' CONFIG_DPKG_DEB
|
||||
bool 'gunzip' CONFIG_GUNZIP
|
||||
bool 'gzip' CONFIG_GZIP
|
||||
|
1557
archival/dpkg.c
1557
archival/dpkg.c
File diff suppressed because it is too large
Load Diff
@ -318,5 +318,49 @@ extern const char * const can_not_create_raw_socket;
|
||||
/* The following devices are the same on devfs and non-devfs systems. */
|
||||
#define CURRENT_TTY "/dev/tty"
|
||||
#define CONSOLE_DEV "/dev/console"
|
||||
typedef struct deb_file_s {
|
||||
char *filename;
|
||||
char *control_file;
|
||||
unsigned short node:14;
|
||||
} deb_file_t;
|
||||
|
||||
typedef struct node_s {
|
||||
/* This are always used by dpkg */
|
||||
unsigned short name:14;
|
||||
unsigned short epoch:4;
|
||||
unsigned short version:12;
|
||||
unsigned short revision:8;
|
||||
unsigned short essential:1;
|
||||
unsigned short state_want:3;
|
||||
unsigned short state_flag:2;
|
||||
unsigned short state_status:3;
|
||||
unsigned short pool_flag:2;
|
||||
unsigned short source:11;
|
||||
unsigned short filename:11;
|
||||
unsigned short num_of_edges:7;
|
||||
unsigned short *edge;
|
||||
#ifdef BB_FEATURE_DPKG_LIST_SHORT_DESCRIPTIONS
|
||||
char *description_short; /* This is used by dpkg -l */
|
||||
#endif
|
||||
} node_t;
|
||||
|
||||
/* All these are in deb_functs.c */
|
||||
extern void deb_initialise_hashtables(short type);
|
||||
extern void write_status_file(deb_file_t **deb_file);
|
||||
extern void configure_package(deb_file_t *deb_file);
|
||||
extern void unpack_package(deb_file_t *deb_file);
|
||||
extern void remove_package(const unsigned int node_num);
|
||||
extern void index_status_file(const char *filename);
|
||||
extern void find_deps(const char *package_name);
|
||||
extern void purge_package(const unsigned int node_num);
|
||||
extern node_t *parse_package_metadata(char *control_buffer);
|
||||
extern unsigned short search_node_ht(node_t *search_node, unsigned short operator);
|
||||
extern void add_node(node_t *node, unsigned short node_num);
|
||||
extern node_t *initialise_node(const char *package_name);
|
||||
extern char *get_name_ht(unsigned short name_num);
|
||||
extern void free_hashtables(void);
|
||||
extern node_t *get_node_ht(unsigned short node_num);
|
||||
extern char *version_revision(unsigned short version_num, unsigned short revision_num);
|
||||
extern void free_node(node_t *node);
|
||||
|
||||
#endif /* __LIBCONFIG_H__ */
|
||||
|
@ -38,7 +38,7 @@ obj-n :=
|
||||
obj- :=
|
||||
|
||||
obj-y += ask_confirmation.o chomp.o concat_path_file.o copy_file.o \
|
||||
copy_file_chunk.o libc5.o device_open.o error_msg.o \
|
||||
copy_file_chunk.o deb_functs.o libc5.o device_open.o error_msg.o \
|
||||
error_msg_and_die.o fgets_str.o find_mount_point.o find_pid_by_name.o \
|
||||
find_root_device.o full_read.o full_write.o get_console.o \
|
||||
get_last_path_component.o get_line_from_file.o gz_open.o human_readable.o \
|
||||
|
@ -24,7 +24,7 @@ obj-y :=
|
||||
obj-n :=
|
||||
obj- :=
|
||||
|
||||
|
||||
obj-$(CONFIG_APT_GET) += apt_get.o
|
||||
obj-$(CONFIG_HOSTNAME) += hostname.o
|
||||
obj-$(CONFIG_IFCONFIG) += ifconfig.o
|
||||
obj-$(CONFIG_NC) += nc.o
|
||||
|
@ -6,6 +6,7 @@
|
||||
mainmenu_option next_comment
|
||||
comment 'Networking Utilities'
|
||||
|
||||
bool 'apt_get' CONFIG_APT_GET
|
||||
bool 'hostname' CONFIG_HOSTNAME
|
||||
bool 'ifconfig' CONFIG_IFCONFIG
|
||||
bool 'nc' CONFIG_NC
|
||||
|
Loading…
Reference in New Issue
Block a user