0.49pre
-
+
+ * Glenn McGrath -- new 'dpkg-deb' command
* me -- md5sum was broken. Now fixed.
* Matt Kraai -- new sort.c
#define BB_DIRNAME
#define BB_DMESG
#define BB_DOS2UNIX
+#define BB_DPKG_DEB
#define BB_DUTMP
#define BB_DU
#define BB_DUMPKMAP
#endif
#endif
//
+#ifdef BB_DPKG_DEB
+#ifndef BB_AR
+#define BB_AR
+#endif
+#ifndef BB_TAR
+#define BB_TAR
+#endif
+#ifndef BB_FEATURE_TAR_GZIP
+#define BB_FEATURE_TAR_GZIP
+#endif
+#endif
+//
#ifdef BB_TAR
#ifdef BB_FEATURE_TAR_GZIP
#ifndef BB_GUNZIP
#ifdef BB_DOS2UNIX
APPLET("dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage)
#endif
+#ifdef BB_DPKG_DEB
+ APPLET("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb_usage)
+#endif
#ifdef BB_DU
APPLET("du", du_main, _BB_DIR_USR_BIN, du_usage)
#endif
;
#endif
+#if defined BB_DPKG_DEB
+const char dpkg_deb_usage[] =
+ "dpkg-deb [-cexX] file directory"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "Perform actions on debian packages (.debs)\n"
+ "Options:\n"
+ "\t-c\tList contents of filesystem tree\n"
+ "\t-e\tExtract control files to directory\n"
+ "\t-x\tExctract packages filesystem tree to directory\n"
+ "\t-X\tVerbose extract\n"
+#endif
+ ;
+#endif
+
#if defined BB_DU
const char du_usage[] =
"du [OPTION]... [FILE]...\n"
/*
* return the headerL_t struct for the filename descriptor
*/
-static ar_headers_t get_headers(int srcFd)
+extern ar_headers_t get_headers(int srcFd)
{
typedef struct raw_ar_header_s { /* Byte Offset */
char name[16]; /* 0-15 */
/*
* return the headerL_t struct for the filename descriptor
*/
-static ar_headers_t get_headers(int srcFd)
+extern ar_headers_t get_headers(int srcFd)
{
typedef struct raw_ar_header_s { /* Byte Offset */
char name[16]; /* 0-15 */
typedef struct TarInfo TarInfo;
/* Local procedures to restore files from a tar file. */
-static int readTarFile(int tarFd, int extractFlag, int listFlag,
+extern int readTarFile(int tarFd, int extractFlag, int listFlag,
int tostdoutFlag, int verboseFlag, char** extractList,
char** excludeList);
exit(EXIT_FAILURE);
}
-static int tar_unzip_init(int tarFd)
+extern int tar_unzip_init(int tarFd)
{
int child_pid;
static int unzip_pipe[2];
#ifdef BB_DOS2UNIX
APPLET("dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage)
#endif
+#ifdef BB_DPKG_DEB
+ APPLET("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb_usage)
+#endif
#ifdef BB_DU
APPLET("du", du_main, _BB_DIR_USR_BIN, du_usage)
#endif
typedef struct TarInfo TarInfo;
/* Local procedures to restore files from a tar file. */
-static int readTarFile(int tarFd, int extractFlag, int listFlag,
+extern int readTarFile(int tarFd, int extractFlag, int listFlag,
int tostdoutFlag, int verboseFlag, char** extractList,
char** excludeList);
exit(EXIT_FAILURE);
}
-static int tar_unzip_init(int tarFd)
+extern int tar_unzip_init(int tarFd)
{
int child_pid;
static int unzip_pipe[2];
;
#endif
+#if defined BB_DPKG_DEB
+const char dpkg_deb_usage[] =
+ "dpkg-deb [-cexX] file directory"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "Perform actions on debian packages (.debs)\n"
+ "Options:\n"
+ "\t-c\tList contents of filesystem tree\n"
+ "\t-e\tExtract control files to directory\n"
+ "\t-x\tExctract packages filesystem tree to directory\n"
+ "\t-X\tVerbose extract\n"
+#endif
+ ;
+#endif
+
#if defined BB_DU
const char du_usage[] =
"du [OPTION]... [FILE]...\n"