From b72a735a320eb60d29bc1580138c06ae7c9d321c Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Tue, 10 Dec 2002 00:17:22 +0000 Subject: rpm applet by Laurence Anderson --- include/applets.h | 3 +++ include/unarchive.h | 1 + include/usage.h | 13 +++++++++++++ 3 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index b7171f7a1..9257fc940 100644 --- a/include/applets.h +++ b/include/applets.h @@ -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 diff --git a/include/unarchive.h b/include/unarchive.h index aca685915..8396f878c 100644 --- a/include/unarchive.h +++ b/include/unarchive.h @@ -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); diff --git a/include/usage.h b/include/usage.h index 17fd4073a..5b357a218 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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 \ -- cgit v1.2.3