Permalink
Browse files

Added RAR archive plugin.

  • Loading branch information...
rcgordon committed May 17, 2005
1 parent ba77394 commit 6aae06fc1521dab48a407749b0abcc7128d3da45
Showing with 23,497 additions and 13 deletions.
  1. +2 −0 CHANGES
  2. +17 −13 Makefile.in
  3. +17 −0 configure.in
  4. +6 −0 plugins/plugindefs.h
  5. +282 −0 plugins/rar.c
  6. +25 −0 unrar/README.loki_setup
  7. +183 −0 unrar/arccmt.cpp
  8. +241 −0 unrar/archive.cpp
  9. +130 −0 unrar/archive.hpp
  10. +653 −0 unrar/arcread.cpp
  11. +121 −0 unrar/array.hpp
  12. +113 −0 unrar/beosea.cpp
  13. +1,147 −0 unrar/cmddata.cpp
  14. +56 −0 unrar/cmddata.hpp
  15. +47 −0 unrar/coder.cpp
  16. +24 −0 unrar/coder.hpp
  17. +36 −0 unrar/compress.hpp
  18. +291 −0 unrar/consio.cpp
  19. +42 −0 unrar/consio.hpp
  20. +61 −0 unrar/crc.cpp
  21. +10 −0 unrar/crc.hpp
  22. +379 −0 unrar/crypt.cpp
  23. +60 −0 unrar/crypt.hpp
  24. +354 −0 unrar/dll.cpp
  25. +12 −0 unrar/dll.def
  26. +137 −0 unrar/dll.hpp
  27. +57 −0 unrar/encname.cpp
  28. +20 −0 unrar/encname.hpp
  29. +352 −0 unrar/errhnd.cpp
  30. +61 −0 unrar/errhnd.hpp
  31. +76 −0 unrar/extinfo.cpp
  32. +8 −0 unrar/extinfo.hpp
  33. +821 −0 unrar/extract.cpp
  34. +40 −0 unrar/extract.hpp
  35. +204 −0 unrar/filcreat.cpp
  36. +12 −0 unrar/filcreat.hpp
  37. +682 −0 unrar/file.cpp
  38. +100 −0 unrar/file.hpp
  39. +540 −0 unrar/filefn.cpp
  40. +39 −0 unrar/filefn.hpp
  41. +139 −0 unrar/filestr.cpp
  42. +8 −0 unrar/filestr.hpp
  43. +287 −0 unrar/find.cpp
  44. +48 −0 unrar/find.hpp
  45. +24 −0 unrar/getbits.cpp
  46. +37 −0 unrar/getbits.hpp
  47. +4 −0 unrar/global.cpp
  48. +14 −0 unrar/global.hpp
  49. +304 −0 unrar/headers.hpp
  50. +274 −0 unrar/int64.cpp
  51. +86 −0 unrar/int64.hpp
  52. +17 −0 unrar/isnt.cpp
  53. +6 −0 unrar/isnt.hpp
  54. +41 −0 unrar/license.txt
  55. +380 −0 unrar/list.cpp
  56. +6 −0 unrar/list.hpp
  57. +340 −0 unrar/loclang.hpp
  58. +24 −0 unrar/log.cpp
  59. +18 −0 unrar/log.hpp
  60. +500 −0 unrar/makefile.bcc
  61. +55 −0 unrar/makefile.cygmin
  62. +54 −0 unrar/makefile.dmc
  63. +564 −0 unrar/makefile.msc
  64. +119 −0 unrar/makefile.unix
  65. +250 −0 unrar/match.cpp
  66. +16 −0 unrar/match.hpp
  67. +598 −0 unrar/model.cpp
  68. +126 −0 unrar/model.hpp
  69. +2,532 −0 unrar/msc.dep
  70. +26 −0 unrar/options.cpp
  71. +129 −0 unrar/options.hpp
  72. +229 −0 unrar/os.hpp
  73. +94 −0 unrar/os2ea.cpp
  74. +633 −0 unrar/pathfn.cpp
  75. +44 −0 unrar/pathfn.hpp
  76. +132 −0 unrar/rar.cpp
  77. +80 −0 unrar/rar.hpp
  78. +21 −0 unrar/rardefs.hpp
  79. +7 −0 unrar/rarfn.hpp
  80. +10 −0 unrar/rarlang.hpp
  81. +41 −0 unrar/raros.hpp
  82. +21 −0 unrar/rartypes.hpp
  83. +1,048 −0 unrar/rarvm.cpp
  84. +110 −0 unrar/rarvm.hpp
  85. +53 −0 unrar/rarvmtbl.cpp
  86. +101 −0 unrar/rawread.cpp
  87. +32 −0 unrar/rawread.hpp
  88. +260 −0 unrar/rdwrfn.cpp
  89. +83 −0 unrar/rdwrfn.hpp
  90. +64 −0 unrar/readme.txt
  91. +377 −0 unrar/recvol.cpp
  92. +16 −0 unrar/recvol.hpp
  93. +12 −0 unrar/resource.cpp
  94. +14 −0 unrar/resource.hpp
  95. +298 −0 unrar/rijndael.cpp
  96. +37 −0 unrar/rijndael.hpp
  97. +143 −0 unrar/rs.cpp
  98. +32 −0 unrar/rs.hpp
  99. +15 −0 unrar/savepos.cpp
  100. +15 −0 unrar/savepos.hpp
  101. +279 −0 unrar/scantree.cpp
  102. +52 −0 unrar/scantree.hpp
  103. +227 −0 unrar/sha1.cpp
  104. +16 −0 unrar/sha1.hpp
  105. +17 −0 unrar/smallfn.cpp
  106. +7 −0 unrar/smallfn.hpp
  107. +143 −0 unrar/strfn.cpp
  108. +24 −0 unrar/strfn.hpp
  109. +191 −0 unrar/strlist.cpp
  110. +39 −0 unrar/strlist.hpp
  111. +241 −0 unrar/suballoc.cpp
  112. +81 −0 unrar/suballoc.hpp
  113. +79 −0 unrar/system.cpp
  114. +10 −0 unrar/system.hpp
  115. +288 −0 unrar/timefn.cpp
  116. +57 −0 unrar/timefn.hpp
  117. +32 −0 unrar/ulinks.cpp
  118. +9 −0 unrar/ulinks.hpp
  119. +450 −0 unrar/unicode.cpp
  120. +82 −0 unrar/unicode.hpp
  121. +128 −0 unrar/unios2.cpp
  122. +931 −0 unrar/unpack.cpp
  123. +205 −0 unrar/unpack.hpp
  124. +507 −0 unrar/unpack15.cpp
  125. +368 −0 unrar/unpack20.cpp
  126. +68 −0 unrar/uowners.cpp
  127. +6 −0 unrar/version.hpp
  128. +178 −0 unrar/volume.cpp
  129. +11 −0 unrar/volume.hpp
  130. +127 −0 unrar/win32acl.cpp
  131. +138 −0 unrar/win32stm.cpp
View
@@ -1,4 +1,6 @@
Current:
Ryan C. Gordon (icculus.org) - Tue May 17 12:21:23 EDT 2005
* Added .rar archive plugin.
Ryan C. Gordon (icculus.org) - Sat Nov 20 08:42:16 EST 2004
* Minor carbon_ui tweaks and corrections to update function.
Ludwig Nussel - Wed Nov 10 14:21:21 PST 2004
View
@@ -14,6 +14,7 @@ BRANDELF = @BRANDELF@
UNINSTALL_VERSION = 1.0.4
CC = @CC@
CXX = @CXX@
# This indicates where the 'setupdb' CVS module is checked out
SETUPDB = @SETUPDB@
@@ -26,6 +27,7 @@ CONVERT_IMAGE = /loki/patch-tools/convert-image
# The supported locales so far
LOCALES = fr de es sv it nl ru en_GB
LD = @LD@
OPTIMIZE = @CFLAGS@
LDFLAGS = @LDFLAGS@
BDYNAMIC = @BDYNAMIC@
@@ -38,6 +40,7 @@ OPTIONS = -DSTUB_UI -DSETUP_VERSION_MAJOR=@SETUP_VERSION_MAJOR@ \
-DDATADIR=\"$(DATADIR)\" -DLOCALEDIR=\"$(LOCALEDIR)\" -DLOKI_PREFIX=\"$(BRAND)\"
CFLAGS += $(OPTIMIZE) $(HEADERS) $(OPTIONS)
CXXFLAGS = $(CFLAGS)
COMMON_OBJS = log.o install_log.o
CORE_OBJS = detect.o plugins.o network.o install.o copy.o file.o loki_launchurl.o
@@ -68,56 +71,56 @@ CONSOLE_LIBS = $(LIBS) @CONSOLE_LIBS@
all: do-plugins @DO_DIALOG@ setup setup.gtk uninstall xsu
testxml: testxml.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
loki_uninstall.o: uninstall.c
$(CC) $(LDFLAGS) -c -o $@ $^ $(CFLAGS) -DUNINSTALL_UI -DVERSION=\"$(UNINSTALL_VERSION)\"
$(LD) $(LDFLAGS) -c -o $@ $^ $(CFLAGS) -DUNINSTALL_UI -DVERSION=\"$(UNINSTALL_VERSION)\"
loki_uninstall: $(LOKI_UNINSTALL_OBJS) $(SETUPDB)/$(arch)/libsetupdb.a
$(CC) $(LDFLAGS) -o $@ $(LOKI_UNINSTALL_OBJS) $(GUI_LIBS)
$(LD) $(LDFLAGS) -o $@ $(LOKI_UNINSTALL_OBJS) $(GUI_LIBS)
carbon_uninstall.o: uninstall.c
$(CC) $(LDFLAGS) -c -o $@ $^ $(CFLAGS) -DUNINSTALL_CARBONUI -DUNINSTALL_UI -DVERSION=\"$(UNINSTALL_VERSION)\"
$(LD) $(LDFLAGS) -c -o $@ $^ $(CFLAGS) -DUNINSTALL_CARBONUI -DUNINSTALL_UI -DVERSION=\"$(UNINSTALL_VERSION)\"
carbon_uninstall: $(CARBON_UNINSTALL_OBJS) $(SETUPDB)/$(arch)/libsetupdb.a
$(CC) $(LDFLAGS) -o $@ $(CARBON_UNINSTALL_OBJS) $(CARBON_LIBS)
$(LD) $(LDFLAGS) -o $@ $(CARBON_UNINSTALL_OBJS) $(CARBON_LIBS)
rm -f -R ./uninstall.APP
cp -R ./setup.APP ./uninstall.APP
cp ./carbon/Info.plist.uninstall ./uninstall.APP/Contents/Info.plist
rm -f ./uninstall.APP/Contents/MacOS/setup.carbon
cp ./carbon_uninstall ./uninstall.APP/Contents/MacOS
uninstall: $(UNINSTALL_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $(UNINSTALL_OBJS) $(CONSOLE_LIBS) @STATIC@
$(LD) $(LDFLAGS) -o $@ $(UNINSTALL_OBJS) $(CONSOLE_LIBS) @STATIC@
check: $(CHECK_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $(CHECK_OBJS) $(GUI_LIBS)
$(LD) $(LDFLAGS) -o $@ $(CHECK_OBJS) $(GUI_LIBS)
check.carbon: $(CHECK_CARBON_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $(CHECK_CARBON_OBJS) $(CARBON_LIBS)
$(LD) $(LDFLAGS) -o $@ $(CHECK_CARBON_OBJS) $(CARBON_LIBS)
rm -f -R ./check.APP
cp -R ./setup.APP ./check.APP
cp ./carbon/Info.plist.check ./check.APP/Contents/Info.plist
rm -f ./check.APP/Contents/MacOS/setup.carbon
cp ./check.carbon ./check.APP/Contents/MacOS
testcd: testcd.o $(CORE_OBJS) $(COMMON_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $^ @LIBS@ @CONSOLE_LIBS@ @STATIC@
$(LD) $(LDFLAGS) -o $@ $^ @LIBS@ @CONSOLE_LIBS@ @STATIC@
setup: do-plugins @DO_DIALOG@ $(CONSOLE_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $(CONSOLE_OBJS) $(CONSOLE_LIBS) @STATIC@
$(LD) $(LDFLAGS) -o $@ $(CONSOLE_OBJS) $(CONSOLE_LIBS) @STATIC@
setup.gtk: $(GUI_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $(GUI_OBJS) $(GUI_LIBS)
$(LD) $(LDFLAGS) -o $@ $(GUI_OBJS) $(GUI_LIBS)
#!!!TODO - Take dependency of dialog libs out of carbon
#!!!TODO - Should we include setup.carbon as part of "all", "install", etc...?
# Carbon needs to be a target all its own
setup.carbon: do-plugins @DO_DIALOG@ $(CARBON_OBJS) $(COMMON_LIBS)
$(CC) $(LDFLAGS) -o $@ $(CARBON_OBJS) $(CARBON_LIBS)
$(LD) $(LDFLAGS) -o $@ $(CARBON_OBJS) $(CARBON_LIBS)
cp setup.carbon setup.APP/Contents/MacOS
xsu: $(XSU_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ @GTK_LIBS@ @LIBUTIL@ @X11_LIBS@ @LIBINTL@ @EXTRA_LIBS@
$(LD) $(LDFLAGS) -o $@ $^ @GTK_LIBS@ @LIBUTIL@ @X11_LIBS@ @LIBINTL@ @EXTRA_LIBS@
do-plugins:
$(MAKE) -C plugins all
@@ -250,6 +253,7 @@ clean:
$(MAKE) -C dialog clean
rm -f foo.xml core tags *.o
rm -f carbon/*.o
rm -f unrar/*.o
distclean: clean
rm -f Makefile config.cache config.status config.log
View
@@ -16,6 +16,7 @@ AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_MAKE_SET
AC_PROG_INSTALL
@@ -64,6 +65,7 @@ AC_PATH_PROG(MOUNT_PATH, mount, /sbin/mount, $PATH:/usr/sbin:/sbin)
AC_PATH_PROG(UMOUNT_PATH, umount, /sbin/umount, $PATH:/usr/sbin:/sbin)
AC_PATH_PROG(BRANDELF, brandelf, true)
LD="$CC"
CFLAGS="-fsigned-char -funroll-loops -Wall -g -O2 -I. $X_CFLAGS"
CONSOLE_LIBS=""
if test -d /usr/codehost/lib; then
@@ -465,6 +467,18 @@ if test x$enable_uz2 = xyes; then
AC_DEFINE(ENABLE_UZ2, 1, UZ2 support.)
fi
dnl enable RAR support
AC_ARG_ENABLE(rar,
[ --enable-rar enable RAR archives support [default=no]],
, enable_rar=no)
if test x$enable_rar = xyes; then
PLUGINS="$PLUGINS rar.c"
LD="$CXX"
CFLAGS="$CFLAGS -DRAR_SUPPORT -DRARDLL -DSILENT"
COMMON_LIBS="$COMMON_LIBS unrar/filestr.o unrar/scantree.o unrar/dll.o unrar/rar.o unrar/strlist.o unrar/strfn.o unrar/pathfn.o unrar/int64.o unrar/savepos.o unrar/global.o unrar/file.o unrar/filefn.o unrar/filcreat.o unrar/archive.o unrar/arcread.o unrar/unicode.o unrar/system.o unrar/isnt.o unrar/crypt.o unrar/crc.o unrar/rawread.o unrar/encname.o unrar/resource.o unrar/match.o unrar/timefn.o unrar/rdwrfn.o unrar/consio.o unrar/options.o unrar/ulinks.o unrar/errhnd.o unrar/rarvm.o unrar/rijndael.o unrar/getbits.o unrar/sha1.o unrar/extinfo.o unrar/extract.o unrar/volume.o unrar/list.o unrar/find.o unrar/unpack.o unrar/cmddata.o"
AC_DEFINE(ENABLE_RAR, 1, RAR support.)
fi
dnl enable RPM support
AC_ARG_ENABLE(rpm,
[ --enable-rpm enable RPM archives support [default=no]],
@@ -585,6 +599,8 @@ BRAND="$with_vendor"
OS=`uname -s`
CXXFLAGS="$CFLAGS"
AC_SUBST(SETUPDB)
AC_SUBST(PLUGINS)
AC_SUBST(DYN_PLUGINS)
@@ -614,6 +630,7 @@ AC_SUBST(DO_DIALOG)
AC_SUBST(IMAGE)
AC_SUBST(BRAND)
AC_SUBST(BDYNAMIC)
AC_SUBST(LD)
AC_OUTPUT(Makefile plugins/Makefile dialog/Makefile)
View
@@ -17,6 +17,9 @@ extern SetupPlugin zip_plugin;
#ifdef UZ2_SUPPORT
extern SetupPlugin uz2_plugin;
#endif
#ifdef RAR_SUPPORT
extern SetupPlugin rar_plugin;
#endif
#endif /* !DYNAMIC_PLUGINS */
extern SetupPlugin cpio_plugin;
@@ -36,6 +39,9 @@ SetupPlugin *static_plugins[] = {
#ifdef UZ2_SUPPORT
&uz2_plugin,
#endif
#ifdef RAR_SUPPORT
&rar_plugin,
#endif
#ifdef OUTRAGE_SUPPORT
&opkg_plugin,
#endif
Oops, something went wrong.

0 comments on commit 6aae06f

Please sign in to comment.