Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv490/utils

Modified Files:
        unshield.info 
Added Files:
        unshield.patch 
Log Message:
Tweaked unshield (fixed a bug in it) to allow extraction of certain .cab files 
the stock version does not support

--- NEW FILE: unshield.patch ---
diff -ru unshield-0.5.1/lib/file.c unshield-0.5.1-patched/lib/file.c
--- unshield-0.5.1/lib/file.c   2009-05-26 00:42:18.000000000 +0200
+++ unshield-0.5.1-patched/lib/file.c   2009-05-26 00:43:00.000000000 +0200
@@ -266,7 +266,7 @@
     if (err != Z_OK) 
       return err;
 
-    err = inflate(&stream, Z_BLOCK);
+    err = inflate(&stream, Z_SYNC_FLUSH);
     if (err != Z_OK) 
     {
       inflateEnd(&stream);
diff -ru unshield-0.5.1/lib/libunshield.c 
unshield-0.5.1-patched/lib/libunshield.c
--- unshield-0.5.1/lib/libunshield.c    2009-05-26 00:42:18.000000000 +0200
+++ unshield-0.5.1-patched/lib/libunshield.c    2009-05-26 00:42:54.000000000 
+0200
@@ -271,7 +271,7 @@
       
       header->major_version = (header->common.version >> 12) & 0xf;
 
-#if 0
+#if 1
       if (header->major_version < 5)
         header->major_version = 5;
 #endif

Index: unshield.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils/unshield.info,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- unshield.info       9 Nov 2008 15:42:30 -0000       1.4
+++ unshield.info       21 Sep 2009 14:30:20 -0000      1.5
@@ -16,11 +16,13 @@
 
 Package: unshield
 Version: 0.5.1
-Revision: 1
+Revision: 2
 Maintainer: Max Horn <m...@quendi.de>
 Depends: %N-shlibs (=%v-%r)
 Source: mirror:sourceforge:synce/%n-%v.tar.gz
 Source-MD5: cc06e5573a4d5095871bf1bb14f3da1f
+PatchFile: %n.patch
+PatchFile-MD5: d2ea90b41cd85fdc586287f90efacc5e
 ConfigureParams: --disable-dependency-tracking
 InstallScript: make install DESTDIR=%d
 DocFiles: LICENSE README
@@ -31,6 +33,10 @@
  See also the cabextract package, which does a similar thing for 
  Microsoft cabinet files files
 <<
+DescPort: <<
+ The patch allows unshield to extract some CAB files the stock version does
+ not support (e.g. of the game "The Feeble Files").
+<<
 License: BSD
 Homepage: http://synce.sourceforge.net/synce/unshield.php
 


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to