packages: rarcrack/rarcrack-cflags.patch (NEW), rarcrack/rarcrack-mime.patc...

pluto pluto at pld-linux.org
Sat Jan 15 21:41:38 CET 2011


Author: pluto                        Date: Sat Jan 15 20:41:38 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:


---- Files affected:
packages/rarcrack:
   rarcrack-cflags.patch (NONE -> 1.1)  (NEW), rarcrack-mime.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/rarcrack/rarcrack-cflags.patch
diff -u /dev/null packages/rarcrack/rarcrack-cflags.patch:1.1
--- /dev/null	Sat Jan 15 21:41:38 2011
+++ packages/rarcrack/rarcrack-cflags.patch	Sat Jan 15 21:41:32 2011
@@ -0,0 +1,11 @@
+--- rarcrack-0.2/Makefile.orig	2011-01-15 21:10:00.000000000 +0100
++++ rarcrack-0.2/Makefile	2011-01-15 21:12:06.368904933 +0100
+@@ -3,7 +3,7 @@
+ DOCDIR=${PREFIX}/share/doc/rarcrack
+ 
+ all:
+-	${CC} -pthread rarcrack.c `xml2-config --libs --cflags` -O2 -o rarcrack
++	${CC} -pthread rarcrack.c `xml2-config --libs --cflags` ${CFLAGS} -o rarcrack
+ clean:
+ 	-rm *.o rarcrack
+ install:

================================================================
Index: packages/rarcrack/rarcrack-mime.patch
diff -u /dev/null packages/rarcrack/rarcrack-mime.patch:1.1
--- /dev/null	Sat Jan 15 21:41:38 2011
+++ packages/rarcrack/rarcrack-mime.patch	Sat Jan 15 21:41:32 2011
@@ -0,0 +1,15 @@
+--- rarcrack-0.2/rarcrack.h.orig	2007-10-18 17:18:12.000000000 +0200
++++ rarcrack-0.2/rarcrack.h	2011-01-15 21:15:11.415570956 +0100
+@@ -31,10 +31,10 @@
+ 
+ char default_ABC[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ 
+-const char CMD_DETECT[] = "file -i -b %s"; //this command return what is the file mime type
++const char CMD_DETECT[] = "file --mime-type -b %s"; //this command return what is the file mime type
+ 
+ const char* TYPE[] = {"rar",		"7z",		"zip", ""}; //the last "" signing this is end of the list
+-const char* MIME[] = {"application/x-rar", "application/octet-stream", "application/x-zip", ""};
++const char* MIME[] = {"application/x-rar", "application/x-7z-compressed", "application/zip", ""};
+ const char* CMD[] = {"unrar t -y -p%s %s 2>&1", "7z t -y -p%s %s 2>&1", "unzip -P%s -t %s 2>&1", ""};
+ 
+ #define PWD_LEN 100
================================================================


More information about the pld-cvs-commit mailing list