1
0

patch-lib_mc_ext_in 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. $Id$
  2. $MirOS: ports/misc/mc/patches/patch-lib_mc_ext_in,v 1.7 2006/09/28 20:31:52 tg Exp $
  3. --- mc-4.6.1.orig/lib/mc.ext.in 2005-07-23 16:51:15.000000000 +0000
  4. +++ mc-4.6.1/lib/mc.ext.in 2007-03-20 13:32:10.000000000 +0000
  5. @@ -106,6 +106,42 @@
  6. ### Archives ###
  7. +## CPIO
  8. +
  9. +# .cgz
  10. +shell/.cgz
  11. + Open=%cd %p#ucpio
  12. + View=%view{ascii} gzip -dc %f 2>/dev/null | cpio -itv 2>/dev/null
  13. +
  14. +# .cbz
  15. +shell/.cbz
  16. + Open=%cd %p#ucpio
  17. + View=%view{ascii} bzip2 -dc %f 2>/dev/null | cpio -itv 2>/dev/null
  18. +
  19. +## CPIO (newc) - MirOS extension
  20. +
  21. +# .ngz
  22. +shell/.ngz
  23. + Open=%cd %p#ucpio
  24. + View=%view{ascii} gzip -dc %f 2>/dev/null | cpio -itv 2>/dev/null
  25. +
  26. +# .nbz
  27. +shell/.nbz
  28. + Open=%cd %p#ucpio
  29. + View=%view{ascii} bzip2 -dc %f 2>/dev/null | cpio -itv 2>/dev/null
  30. +
  31. +# .mcz
  32. +shell/.mcz
  33. + Open=%cd %p#ucpio
  34. + View=%view{ascii} gzip -dc %f 2>/dev/null | cpio -itv 2>/dev/null
  35. +
  36. +## USTAR
  37. +
  38. +# .tbz
  39. +shell/.tbz
  40. + Open=%cd %p#utar
  41. + View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
  42. +
  43. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
  44. regex/\.t([gp]?z|ar\.g?[zZ])$
  45. Open=%cd %p#utar
  46. @@ -135,6 +171,10 @@ regex/\.(tar|TAR)$
  47. View=%view{ascii} tar tvvf %f
  48. # lha
  49. +regex/\.[Ll]([Zz][Hh]|[Hh][Aa])$
  50. + Open=%cd %p#ulha
  51. + View=%view{ascii} lha l %f
  52. +
  53. type/^LHa\ .*archive
  54. Open=%cd %p#ulha
  55. View=%view{ascii} lha l %f
  56. @@ -191,13 +231,20 @@ regex/\.(rpm|spm)$
  57. Open=%cd %p#rpm
  58. View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
  59. -# deb
  60. +# deb - Debian packages
  61. regex/\.u?deb$
  62. - Open=%cd %p#deb
  63. - View=%view{ascii} dpkg-deb -c %f
  64. +# Open=%cd %p#deb
  65. +# View=%view{ascii} dpkg-deb -c %f
  66. + Open=%cd %p#uar
  67. + View=%view{ascii} ar p %f control.tar.gz | gzip -d | tar xOf - ./control; echo; ar p %f data.tar.gz | gzip -d | tar tvvf -
  68. +
  69. +# ipk - like deb, but tgz instead of ar
  70. +shell/.ipk
  71. + Open=%cd %p#utar
  72. + View=%view{ascii} gzip -dc %f 2>&- | tar xOf - ./control.tar.gz | gzip -d | tar xOf - ./control; echo; gzip -dc %f 2>&- | tar xOf - ./data.tar.gz | gzip -d | tar tvvf -
  73. # ISO9660
  74. -regex/\.iso$
  75. +regex/\.[Ii][Ss][Oo]$
  76. Open=%cd %p#iso9660
  77. View=%view{ascii} isoinfo -l -i %f
  78. @@ -417,7 +464,7 @@ type/^PDF
  79. # html
  80. regex/\.([hH][tT][mM][lL]?)$
  81. - Open=(if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
  82. + Open=lynx -force_html %f
  83. View=%view{ascii} lynx -dump -force_html %f
  84. # StarOffice 5.2