Debian Linux package plug-in for Total Commander

What's this
==========
This is a content plugin for Total Command 6.5 and above
It allows you inspect the metadata for Debian Linux packages (.deb)

Only version 2.0 package is supported, and I would not to add support for
old format since I have neither any old package nor the interesting.

The code handling deb packages is based on dpkg-1.6-13 source code 
found on Debian 2.2r6 release. And I have not plan to add support for
old format since I have neither old packages nor the interest. 
But if you have some package of old format, and you're interested in, 
you're welcome to modify the source by yourself.
(FYI: Fefer to dpkg-deb/extract.c in dpkg-deb's source,  and search for
'0.93' in function extracthalf(), you're find something useful.)

It has been tested on packages on Debian 2.1r2, 2.2r6 and 3.0r0 disks,
with Total Commander 6.50.


Change Log
=========
1.0.1   Now Installed-Size is numeric and could be displayed in kbytes/mbytes.
1.0.0   First release


Installation
============
How to install this plugin:

* Just use the auto-install feature, if you use TC >= 6.50

for manually installation:
1. Unzip the deb_wdx.wdx to any directory 
   (<%IINSTALLROOT%\plugins\wdx is recommended)
2. In Total Commander, choose Configuration->Options->Plugins
3. In content plugins section, click the button Configure
4. Choose 'Add', and select the deb.wcx
7. Click OK

Usage
-----
Use this plugin in Custom columns mode view:

For example, you want to create a new view to show the package name, version, 
installed-size and the simple description(summary)
1. Choose menu Show->Custom columns mode->Configure custom columns...
2. Click 'New' to add a new view (you can also edit an already existed view)
3. Click 'Add column', and click the symbol '+' to choose field 'Package' 
   from the submenu 'deb_wdx'
4. Choose 'Add column' again to add new field [=deb_wdx_version]
5. Add [=deb_wdx.Installed-Size.bytes]
6. Add [=deb_wdx.Summary]
7. Type a new name (e.g 'Debian packages view') on the 'Name' on the top
8. Click OK
Then you can have a 'Debian packages view' in menu Show->Custom columns mode


Use this plugin in win32-style tooltip:

1. First you must have the win32-style tooltip enabled:
   Choose menu Configuration->Option->Display->Help texts
   check 'Show filename in file list as tooltip if truncated'
   and 'Win32-style tips with file comments (if available)
2. Then click the button '+' on the right
3. Click 'Add', add a new file type for all Debian packages,
   the simplest way is to type in '*.deb'. Click 'OK'
4. In the 'Custom fields by file type' dialog, add the tooltip
   as you like. The following is mine:
   "Package: [=deb_wdx.Package]\nVersion: [=deb_wdx.Version]\n[=deb_wdx.Description]\n"



Licensing
=========
This program is free software; you can redistribute it and/or modify it 
under the terms of the GNU General Public License as published by the 
Free Software Foundation; either version 2 of the License, or (at your option) 
any later version.

This program is distributed in the hope that it will be useful, but 
WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS OR A PARTICULAR PURPOSE. See the 
GNU General Public License for more details.

You should have received a copy of the GNU General Public License 
along with this program; if not, write to the Free Software Foundation, Inc., 
675 Mass Ave, Cambridge, MA 02139, USA.

Ralgh Young <yang.guilong@gmail.com>
