libre.patch 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. diff -Nur atool-0.39.0.orig/atool atool-0.39.0/atool
  2. --- atool-0.39.0.orig/atool 2012-04-02 15:09:10.000000000 -0300
  3. +++ atool-0.39.0/atool 2014-05-06 04:33:46.263005816 -0300
  4. @@ -111,16 +111,13 @@
  5. $::cfg_path_pbzip2 = 'pbzip2'; # pbzip2 program
  6. $::cfg_path_pigz = 'pigz'; # pigz program
  7. $::cfg_path_plzip = 'plzip'; # plzip program
  8. -$::cfg_path_rar = 'rar'; # rar program
  9. $::cfg_path_rpm = 'rpm'; # rpm program
  10. $::cfg_path_rpm2cpio = 'rpm2cpio'; # rpm2cpio program
  11. $::cfg_path_rzip = 'rzip'; # rzip program
  12. $::cfg_path_syscfg = File::Spec->catfile($::SYSCONFDIR, $::PROGRAM.'.conf'); # system-wide configuration file
  13. $::cfg_path_tar = 'tar'; # tar program
  14. -$::cfg_path_unace = 'unace'; # unace program
  15. $::cfg_path_unalz = 'unalz'; # unalz program
  16. $::cfg_path_unarj = 'unarj'; # unarj program
  17. -$::cfg_path_unrar = 'unrar'; # unrar program
  18. $::cfg_path_unzip = 'unzip'; # unzip program
  19. $::cfg_path_usercfg = '.'.$::PROGRAM.'rc'; # user configuration file
  20. $::cfg_path_xargs = 'xargs'; # xargs program
  21. @@ -141,7 +138,6 @@
  22. $::cfg_use_pbzip2 = 0; # use pbzip2 instead of bzip2
  23. $::cfg_use_pigz = 0; # use pigz instead of gzip
  24. $::cfg_use_plzip = 0; # use plzip instead of lzip
  25. -$::cfg_use_rar_for_unpack = 0; # use rar to unpack rar files?
  26. $::cfg_use_tar_bzip2_option = 1; # does tar support --bzip2?
  27. $::cfg_use_tar_lzma_option = 1; # does tar support --lzma?
  28. $::cfg_use_tar_lzip_option = 0; # does tar support --lzip?
  29. @@ -592,26 +588,6 @@
  30. @cmd = handle_empty_add(@cmd) if ($mode eq 'add' && @args == 0);
  31. return multiarchivecmd($archive, $outdir, $mode, 0, 0, \@args, @cmd);
  32. }
  33. - elsif ($format eq 'rar') {
  34. - return undef if ($mode eq 'extract' && !defined ($outdir = makeoutdir()));
  35. - if ($mode eq 'add' || $::cfg_use_rar_for_unpack) {
  36. - push @cmd, $::cfg_path_rar;
  37. - } else {
  38. - push @cmd, $::cfg_path_unrar;
  39. - }
  40. - push @cmd, 'a' if $mode eq 'add';
  41. - push @cmd, 'vt' if $mode eq 'list' && $::opt_verbosity >= 3;
  42. - push @cmd, 'v' if $mode eq 'list' && $::opt_verbosity == 2;
  43. - push @cmd, 'l' if $mode eq 'list' && $::opt_verbosity <= 1;
  44. - push @cmd, 'x' if ($mode eq 'extract' || $mode eq 'extract-to');
  45. - push @cmd, '-ierr', 'p' if $mode eq 'cat';
  46. - push @cmd, '-r0' if ($mode eq 'add');
  47. - push @cmd, $archive, @args;
  48. - push @cmd, tailslash($outdir) if $mode eq 'extract';
  49. - push @cmd, tailslash($::opt_cmd_extract_to) if $mode eq 'extract-to';
  50. - @cmd = handle_empty_add(@cmd) if ($mode eq 'add' && @args == 0);
  51. - return multiarchivecmd($archive, $outdir, $mode, 0, 0, \@args, @cmd);
  52. - }
  53. elsif ($format eq '7z') {
  54. # 7z has the -so option for writing data to stdout, but it doesn't
  55. # write data to terminal even if the file is designed to be
  56. @@ -673,23 +649,6 @@
  57. @cmd = handle_empty_add(@cmd) if ($mode eq 'add' && @args == 0);
  58. return multiarchivecmd($archive, $outdir, $mode, 0, 0, \@args, @cmd);
  59. }
  60. - elsif ($format eq 'ace') {
  61. - return undef if ($mode eq 'extract' && !defined ($outdir = makeoutdir()));
  62. - push @cmd, $::cfg_path_unace;
  63. - if ($mode eq 'add' || $mode eq 'cat') {
  64. - warn "$::basename: ".quote($archive).": $mode command not supported for $format archives\n";
  65. - return undef;
  66. - }
  67. - push @cmd, 'v', '-c' if $mode eq 'list' && $::opt_verbosity >= 3;
  68. - push @cmd, 'v' if $mode eq 'list' && $::opt_verbosity == 2;
  69. - push @cmd, 'l' if $mode eq 'list' && $::opt_verbosity <= 1;
  70. - push @cmd, 'x' if ($mode eq 'extract' || $mode eq 'extract-to');
  71. - push @cmd, $archive, @args;
  72. - push @cmd, tailslash($outdir) if $mode eq 'extract';
  73. - push @cmd, tailslash($::opt_cmd_extract_to) if $mode eq 'extract-to';
  74. - @cmd = handle_empty_add(@cmd) if ($mode eq 'add' && @args == 0);
  75. - return multiarchivecmd($archive, $outdir, $mode, 0, 0, \@args, @cmd);
  76. - }
  77. elsif ($format eq 'arj') {
  78. return undef if ($mode eq 'extract' && !defined ($outdir = makeoutdir()));
  79. if ($mode eq 'cat') {
  80. @@ -1321,9 +1280,7 @@
  81. return $file if ($file =~ s/\.jar$//);
  82. return $file if ($file =~ s/\.war$//);
  83. return $file if ($file =~ s/\.Z$//);
  84. - return $file if ($file =~ s/\.rar$//);
  85. return $file if ($file =~ s/\.(lha|lzh)$//);
  86. - return $file if ($file =~ s/\.ace$//);
  87. return $file if ($file =~ s/\.arj$//);
  88. return $file if ($file =~ s/\.a$//);
  89. return $file if ($file =~ s/\.lzma$//);
  90. @@ -1363,8 +1320,6 @@
  91. return '.zip' if $format eq 'zip';
  92. return '.jar' if $format eq 'jar';
  93. return '.Z' if $format eq 'compress';
  94. - return '.rar' if $format eq 'rar';
  95. - return '.ace' if $format eq 'ace';
  96. return '.a' if $format eq 'ar';
  97. return '.arj' if $format eq 'arj';
  98. return '.lha' if $format eq 'lha';
  99. @@ -1411,7 +1366,6 @@
  100. ['zip', qr/ \(Zip archive data[^)]*\)$/],
  101. ['zip', qr/^Zip archive data(\W|$)/],
  102. ['zip', qr/^MS-DOS executable (.*), ZIP self-extracting archive(\W|$)/],
  103. - ['rar', qr/^RAR archive data(\W|$)/],
  104. ['lha', qr/^LHa \(2\.x\) archive data /],
  105. ['lha', qr/^LHa 2\.x\? archive data /],
  106. ['lha', qr/^LHarc 1\.x archive data /],
  107. @@ -1453,7 +1407,6 @@
  108. ['tar+xz', qr/(\.tar\.xz|\.txz)$/],
  109. ['7z', qr/\.7z$/],
  110. - ['ace', qr/\.ace$/],
  111. ['alzip', qr/\.alz$/],
  112. ['ar', qr/\.a$/],
  113. ['arc', qr/\.arc$/],
  114. @@ -1471,7 +1424,6 @@
  115. ['lzip', qr/\.lz$/],
  116. ['lzma', qr/\.lzma$/],
  117. ['lzop', qr/\.lzo$/],
  118. - ['rar', qr/\.rar$/],
  119. ['rpm', qr/\.rpm$/],
  120. ['rzip', qr/\.rz$/],
  121. ['tar', qr/\.tar$/],
  122. @@ -1620,15 +1572,12 @@
  123. 'path_pbzip2' => [ 'option', \$::cfg_path_pbzip2, qr/.*/ ],
  124. 'path_pigz' => [ 'option', \$::cfg_path_pigz, qr/.*/ ],
  125. 'path_plzip' => [ 'option', \$::cfg_path_plzip, qr/.*/ ],
  126. - 'path_rar' => [ 'option', \$::cfg_path_rar, qr/.*/ ],
  127. 'path_rpm' => [ 'option', \$::cfg_path_rpm, qr/.*/ ],
  128. 'path_rpm2cpio' => [ 'option', \$::cfg_path_rpm2cpio, qr/.*/ ],
  129. 'path_rzip' => [ 'option', \$::cfg_path_rzip, qr/.*/ ],
  130. 'path_tar' => [ 'option', \$::cfg_path_tar, qr/.*/ ],
  131. - 'path_unace' => [ 'option', \$::cfg_path_unace, qr/.*/ ],
  132. 'path_unalz' => [ 'option', \$::cfg_path_unalz, qr/.*/ ],
  133. 'path_unarj' => [ 'option', \$::cfg_path_unarj, qr/.*/ ],
  134. - 'path_unrar' => [ 'option', \$::cfg_path_unrar, qr/.*/ ],
  135. 'path_unzip' => [ 'option', \$::cfg_path_unzip, qr/.*/ ],
  136. 'path_usercfg' => [ 'option', \$::cfg_path_usercfg, qr/.*/ ],
  137. 'path_xargs' => [ 'option', \$::cfg_path_xargs, qr/.*/ ],
  138. @@ -1649,8 +1598,6 @@
  139. 'use_pbzip2' => [ 'option', \$::cfg_use_pbzip2, qr/^(0|1)$/ ],
  140. 'use_pigz' => [ 'option', \$::cfg_use_pigz, qr/^(0|1)$/ ],
  141. 'use_plzip' => [ 'option', \$::cfg_use_plzip, qr/^(0|1)$/ ],
  142. - 'use_rar_for_unpack' => [ 'option', \$::cfg_use_rar_for_unpack, qr/^(0|1)$/ ],
  143. - 'use_rar_for_unrar' => [ 'obsolete', 'use_rar_for_unpack' ],
  144. 'use_tar_bzip2_option' => [ 'option', \$::cfg_use_tar_bzip2_option, qr/^(0|1)$/ ],
  145. 'use_tar_lzma_option' => [ 'option', \$::cfg_use_tar_lzma_option, qr/^(0|1)$/ ],
  146. 'use_tar_lzop_option' => [ 'option', \$::cfg_use_tar_lzop_option, qr/^(0|1)$/ ],
  147. diff -Nur atool-0.39.0.orig/atool.1 atool-0.39.0/atool.1
  148. --- atool-0.39.0.orig/atool.1 2012-03-15 04:31:41.000000000 -0300
  149. +++ atool-0.39.0/atool.1 2014-05-06 04:34:36.830099616 -0300
  150. @@ -146,7 +146,7 @@
  151. When extracting from files, allow overwriting of local files.
  152. When creating an archive, allow the archive file to be overwritten
  153. if it already exists. Note that it is possible to add files to
  154. -existing RAR and Zip archives (this is not possible for many
  155. +existing Zip archives (this is not possible for many
  156. other formats).
  157. .TP
  158. .B \-D, \-\-subdir
  159. @@ -262,9 +262,6 @@
  160. List, extract, and add commands are supported.
  161. Cat is supported if use_jar_program is disabled.
  162. .TP
  163. -.RI \fBrar\fP " " ( .rar )
  164. -All commands are supported.
  165. -.TP
  166. .RI \fBlha\fP " " ( .lha ", " .lzh )
  167. All commands are supported.
  168. .TP
  169. @@ -274,9 +271,6 @@
  170. .RI \fBalzip\fP " " ( .alz )
  171. Extract command is supported.
  172. .TP
  173. -.RI \fBace\fP " " ( .ace )
  174. -Extract and list commands are supported.
  175. -.TP
  176. .RI \fBar\fP " " ( .a )
  177. All commands are supported.
  178. .TP
  179. @@ -406,11 +400,6 @@
  180. Enable this if you want to use gzip instead of uncompress when
  181. decompressing compress'ed files (`.Z' files).
  182. .TP
  183. -.B use_rar_for_unpack \fR(default: 0)\fR
  184. -Enable this if you want to always use rar instead of unrar
  185. -when possible. This makes atool use the rar command
  186. -(path_rar) even when listing and extracting RAR files.
  187. -.TP
  188. .B use_arc_for_unpack \fR(default: 0)\fR
  189. Enable this if you want to always use arc instead of nomarch
  190. when possible. This makes atool use the arc command
  191. @@ -530,10 +519,6 @@
  192. .TP
  193. .B path_lzip \fR(default: lzip)\fR
  194. .TP
  195. -.B path_rar \fR(default: rar)\fR
  196. -.TP
  197. -.B path_unrar \fR(default: unrar)\fR
  198. -.TP
  199. .B path_lbzip2 \fR(default: lbzip2)\fR
  200. .TP
  201. .B path_pigz \fR(default: pigz)\fR
  202. @@ -546,8 +531,6 @@
  203. .TP
  204. .B path_lha \fR(default: lha)\fR
  205. .TP
  206. -.B path_unace \fR(default: unace)\fR
  207. -.TP
  208. .B path_ar \fR(default: ar)\fR
  209. .TP
  210. .B path_arj \fR(default: arj)\fR
  211. @@ -661,10 +644,6 @@
  212. .br
  213. \fBacat \-p myarchive.zip baz\fP
  214. .PP
  215. -To list contents of the rar archive `stuff.rar':
  216. -.br
  217. - \fBals stuff.rar\fP
  218. -.PP
  219. To create three archives, `dir1.tar.gz', `dir2.tar.gz' and `dir3.tar.gz',
  220. so that the first one contains all files in dir1, the second all
  221. in dir2 and the third all dir3:
  222. diff -Nur atool-0.39.0.orig/atool.1.in atool-0.39.0/atool.1.in
  223. --- atool-0.39.0.orig/atool.1.in 2012-03-15 04:31:39.000000000 -0300
  224. +++ atool-0.39.0/atool.1.in 2014-05-06 04:35:30.100547318 -0300
  225. @@ -146,7 +146,7 @@
  226. When extracting from files, allow overwriting of local files.
  227. When creating an archive, allow the archive file to be overwritten
  228. if it already exists. Note that it is possible to add files to
  229. -existing RAR and Zip archives (this is not possible for many
  230. +existing Zip archives (this is not possible for many
  231. other formats).
  232. .TP
  233. .B \-D, \-\-subdir
  234. @@ -262,9 +262,6 @@
  235. List, extract, and add commands are supported.
  236. Cat is supported if use_jar_program is disabled.
  237. .TP
  238. -.RI \fBrar\fP " " ( .rar )
  239. -All commands are supported.
  240. -.TP
  241. .RI \fBlha\fP " " ( .lha ", " .lzh )
  242. All commands are supported.
  243. .TP
  244. @@ -274,9 +271,6 @@
  245. .RI \fBalzip\fP " " ( .alz )
  246. Extract command is supported.
  247. .TP
  248. -.RI \fBace\fP " " ( .ace )
  249. -Extract and list commands are supported.
  250. -.TP
  251. .RI \fBar\fP " " ( .a )
  252. All commands are supported.
  253. .TP
  254. @@ -406,11 +400,6 @@
  255. Enable this if you want to use gzip instead of uncompress when
  256. decompressing compress'ed files (`.Z' files).
  257. .TP
  258. -.B use_rar_for_unpack \fR(default: 0)\fR
  259. -Enable this if you want to always use rar instead of unrar
  260. -when possible. This makes atool use the rar command
  261. -(path_rar) even when listing and extracting RAR files.
  262. -.TP
  263. .B use_arc_for_unpack \fR(default: 0)\fR
  264. Enable this if you want to always use arc instead of nomarch
  265. when possible. This makes atool use the arc command
  266. @@ -530,10 +519,6 @@
  267. .TP
  268. .B path_lzip \fR(default: lzip)\fR
  269. .TP
  270. -.B path_rar \fR(default: rar)\fR
  271. -.TP
  272. -.B path_unrar \fR(default: unrar)\fR
  273. -.TP
  274. .B path_lbzip2 \fR(default: lbzip2)\fR
  275. .TP
  276. .B path_pigz \fR(default: pigz)\fR
  277. @@ -546,8 +531,6 @@
  278. .TP
  279. .B path_lha \fR(default: lha)\fR
  280. .TP
  281. -.B path_unace \fR(default: unace)\fR
  282. -.TP
  283. .B path_ar \fR(default: ar)\fR
  284. .TP
  285. .B path_arj \fR(default: arj)\fR
  286. @@ -661,10 +644,6 @@
  287. .br
  288. \fBacat \-p myarchive.zip baz\fP
  289. .PP
  290. -To list contents of the rar archive `stuff.rar':
  291. -.br
  292. - \fBals stuff.rar\fP
  293. -.PP
  294. To create three archives, `dir1.tar.gz', `dir2.tar.gz' and `dir3.tar.gz',
  295. so that the first one contains all files in dir1, the second all
  296. in dir2 and the third all dir3:
  297. diff -Nur atool-0.39.0.orig/extra/bash-completion-atool_0.1-1 atool-0.39.0/extra/bash-completion-atool_0.1-1
  298. --- atool-0.39.0.orig/extra/bash-completion-atool_0.1-1 2007-12-10 20:01:38.000000000 -0200
  299. +++ atool-0.39.0/extra/bash-completion-atool_0.1-1 2014-05-06 04:36:01.504143499 -0300
  300. @@ -15,7 +15,7 @@
  301. --quiet --verbose --page --null --explain --simulate --config=' -- $cur ) )
  302. ;;
  303. *)
  304. - _filedir '@(rar|RAR|zip|ZIP|tar.gz|tgz|tar.bz|tbz|tar.Z|tZ|tar.lzo|tzo|tar.7z|t7z|tar|jar|JAR|war|lha|lzh|7z|ace|ACE|arj|ARJ|a|arc|ARC|rpm|deb|gz|bz|bz2|Z|lzo|cpio)'
  305. + _filedir '@(zip|ZIP|tar.gz|tgz|tar.bz|tbz|tar.Z|tZ|tar.lzo|tzo|tar.7z|t7z|tar|jar|JAR|war|lha|lzh|7z|arj|ARJ|a|arc|ARC|rpm|deb|gz|bz|bz2|Z|lzo|cpio)'
  306. ;;
  307. esac