rpm applet by Laurence Anderson

This commit is contained in:
Glenn L McGrath
2002-12-10 00:17:22 +00:00
parent 62fae308a3
commit b72a735a32
11 changed files with 565 additions and 162 deletions

View File

@ -440,6 +440,9 @@
#ifdef CONFIG_ROUTE
APPLET(route, route_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_RPM
APPLET(rpm, rpm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_RPM2CPIO
APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif

View File

@ -85,6 +85,7 @@ extern void check_header_gzip(int src_fd);
extern void check_trailer_gzip(int src_fd);
extern char get_header_ar(archive_handle_t *archive_handle);
extern char get_header_cpio(archive_handle_t *archive_handle);
extern char get_header_tar(archive_handle_t *archive_handle);
extern char get_header_tar_bz2(archive_handle_t *archive_handle);
extern char get_header_tar_gz(archive_handle_t *archive_handle);

View File

@ -1696,6 +1696,19 @@
"\t-n\tDont resolve names.\n" \
"\t-e\tDisplay other/more information"
#define rpm_trivial_usage \
"-i -q[ildc]p package.rpm"
#define rpm_full_usage \
"Manipulates RPM packages" \
"Options:" \
"\t-i Install package" \
"\t-q Query package" \
"\t\t-p Query uninstalled package" \
"\t\t-i Show information" \
"\t\t-l List contents" \
"\t\t-d List documents" \
"\t\t-c List config files"
#define rpm2cpio_trivial_usage \
"package.rpm"
#define rpm2cpio_full_usage \