diff options
author | Eric Andersen | 2000-11-29 21:38:11 +0000 |
---|---|---|
committer | Eric Andersen | 2000-11-29 21:38:11 +0000 |
commit | e500d2083560b2988e7e48e00ba836ce0450c656 (patch) | |
tree | 8541687153725cb192f1fac48ddadbb060b4c24e | |
parent | d58ff8731ce635a75406cc8b9629f1041bb4ed32 (diff) | |
download | busybox-e500d2083560b2988e7e48e00ba836ce0450c656.zip busybox-e500d2083560b2988e7e48e00ba836ce0450c656.tar.gz |
Apply a patch fromkent robotti:
Renamed unrpm to original rpmunpack, so you can use an included shell script
called unrpm as a front end to it.
There's also a shell script called undeb included for debian packages.
Change undeb and unrpm scripts to work with the busybox tar and gunzip.
-rw-r--r-- | Config.h | 2 | ||||
-rw-r--r-- | applets.h | 6 | ||||
-rw-r--r-- | applets/usage.c | 18 | ||||
-rw-r--r-- | busybox.h | 4 | ||||
-rw-r--r-- | include/applets.h | 6 | ||||
-rw-r--r-- | include/busybox.h | 4 | ||||
-rw-r--r-- | usage.c | 18 |
7 files changed, 29 insertions, 29 deletions
@@ -84,6 +84,7 @@ #define BB_RM #define BB_RMDIR #define BB_RMMOD +#define BB_RPMUNPACK #define BB_SED #define BB_SETKEYCODES #define BB_SH @@ -101,7 +102,6 @@ #define BB_TR #define BB_TRUE_FALSE #define BB_TTY -#define BB_UNRPM #define BB_UPTIME #define BB_USLEEP #define BB_WC @@ -262,6 +262,9 @@ const struct BB_applet applets[] = { #ifdef BB_RMMOD {"rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage}, #endif +#ifdef BB_RPMUNPACK + {"rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage}, +#endif #ifdef BB_SED {"sed", sed_main, _BB_DIR_BIN, sed_usage}, #endif @@ -328,9 +331,6 @@ const struct BB_applet applets[] = { #ifdef BB_UNIX2DOS {"unix2dos", unix2dos_main, _BB_DIR_USR_BIN, unix2dos_usage}, #endif -#ifdef BB_UNRPM - {"unrpm", unrpm_main, _BB_DIR_USR_BIN, unrpm_usage}, -#endif #ifdef BB_UPDATE {"update", update_main, _BB_DIR_SBIN, update_usage}, #endif diff --git a/applets/usage.c b/applets/usage.c index 423172d..93fbf42 100644 --- a/applets/usage.c +++ b/applets/usage.c @@ -1058,6 +1058,15 @@ const char rmmod_usage[] = ; #endif +#if defined BB_RPMUNPACK +const char rpmunpack_usage[] = + "rpmunpack < package.rpm | gunzip | cpio -idmuv\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nExtracts an rpm archive.\n" +#endif + ; +#endif + #if defined BB_SED const char sed_usage[] = "sed [-Vhnef] pattern [files...]\n" @@ -1365,15 +1374,6 @@ const char unix2dos_usage[] = ; #endif -#if defined BB_UNRPM -const char unrpm_usage[] = - "unrpm < package.rpm | gzip -d | cpio -idmuv\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nExtracts an rpm archive.\n" -#endif - ; -#endif - #if defined BB_UPDATE const char update_usage[] = "update [options]\n" @@ -194,6 +194,7 @@ extern int reset_main(int argc, char** argv); extern int rm_main(int argc, char** argv); extern int rmdir_main(int argc, char **argv); extern int rmmod_main(int argc, char** argv); +extern int rpmunpack_main(int argc, char** argv); extern int sed_main(int argc, char** argv); extern int sfdisk_main(int argc, char** argv); extern int setkeycodes_main(int argc, char** argv); @@ -218,7 +219,6 @@ extern int umount_main(int argc, char** argv); extern int uname_main(int argc, char** argv); extern int uniq_main(int argc, char** argv); extern int unix2dos_main(int argc, char** argv); -extern int unrpm_main(int argc, char** argv); extern int update_main(int argc, char** argv); extern int uptime_main(int argc, char** argv); extern int usleep_main(int argc, char** argv); @@ -310,6 +310,7 @@ extern const char reset_usage[]; extern const char rm_usage[]; extern const char rmdir_usage[]; extern const char rmmod_usage[]; +extern const char rpmunpack_usage[]; extern const char sed_usage[]; extern const char setkeycodes_usage[]; extern const char shell_usage[]; @@ -332,7 +333,6 @@ extern const char umount_usage[]; extern const char uname_usage[]; extern const char uniq_usage[]; extern const char unix2dos_usage[]; -extern const char unrpm_usage[]; extern const char update_usage[]; extern const char uptime_usage[]; extern const char usleep_usage[]; diff --git a/include/applets.h b/include/applets.h index f21a490..a747b86 100644 --- a/include/applets.h +++ b/include/applets.h @@ -262,6 +262,9 @@ const struct BB_applet applets[] = { #ifdef BB_RMMOD {"rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage}, #endif +#ifdef BB_RPMUNPACK + {"rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage}, +#endif #ifdef BB_SED {"sed", sed_main, _BB_DIR_BIN, sed_usage}, #endif @@ -328,9 +331,6 @@ const struct BB_applet applets[] = { #ifdef BB_UNIX2DOS {"unix2dos", unix2dos_main, _BB_DIR_USR_BIN, unix2dos_usage}, #endif -#ifdef BB_UNRPM - {"unrpm", unrpm_main, _BB_DIR_USR_BIN, unrpm_usage}, -#endif #ifdef BB_UPDATE {"update", update_main, _BB_DIR_SBIN, update_usage}, #endif diff --git a/include/busybox.h b/include/busybox.h index f0f8d5d..3fc91a3 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -194,6 +194,7 @@ extern int reset_main(int argc, char** argv); extern int rm_main(int argc, char** argv); extern int rmdir_main(int argc, char **argv); extern int rmmod_main(int argc, char** argv); +extern int rpmunpack_main(int argc, char** argv); extern int sed_main(int argc, char** argv); extern int sfdisk_main(int argc, char** argv); extern int setkeycodes_main(int argc, char** argv); @@ -218,7 +219,6 @@ extern int umount_main(int argc, char** argv); extern int uname_main(int argc, char** argv); extern int uniq_main(int argc, char** argv); extern int unix2dos_main(int argc, char** argv); -extern int unrpm_main(int argc, char** argv); extern int update_main(int argc, char** argv); extern int uptime_main(int argc, char** argv); extern int usleep_main(int argc, char** argv); @@ -310,6 +310,7 @@ extern const char reset_usage[]; extern const char rm_usage[]; extern const char rmdir_usage[]; extern const char rmmod_usage[]; +extern const char rpmunpack_usage[]; extern const char sed_usage[]; extern const char setkeycodes_usage[]; extern const char shell_usage[]; @@ -332,7 +333,6 @@ extern const char umount_usage[]; extern const char uname_usage[]; extern const char uniq_usage[]; extern const char unix2dos_usage[]; -extern const char unrpm_usage[]; extern const char update_usage[]; extern const char uptime_usage[]; extern const char usleep_usage[]; @@ -1058,6 +1058,15 @@ const char rmmod_usage[] = ; #endif +#if defined BB_RPMUNPACK +const char rpmunpack_usage[] = + "rpmunpack < package.rpm | gunzip | cpio -idmuv\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nExtracts an rpm archive.\n" +#endif + ; +#endif + #if defined BB_SED const char sed_usage[] = "sed [-Vhnef] pattern [files...]\n" @@ -1365,15 +1374,6 @@ const char unix2dos_usage[] = ; #endif -#if defined BB_UNRPM -const char unrpm_usage[] = - "unrpm < package.rpm | gzip -d | cpio -idmuv\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nExtracts an rpm archive.\n" -#endif - ; -#endif - #if defined BB_UPDATE const char update_usage[] = "update [options]\n" |