Okay, after a bit of fiddling around I got it to show the files and also to install the package as well.
Standard disclaimer: It works fine for me, but you're on your own.
To add the file extension in Midnight Commander follow these steps:
1) Fire up mc (Midnight Commander).
2) Add this to your mc extension file. To do this tap on command then select "Edit extension file".
3) Select systemwide.
Or just edit your /usr/share/mc/mc.ext file.
I put my addition just above the # deb entry, I suppose you could put it just about anywhere you like.
Add these lines to your mc.ext file:
# ipk
regex /\.ipk$
<tab>Open=ipkg install %p
<tab>View=%view{ascii} cp %f /tmp/mc-root/foo.tar.gz; cd /tmp/mc-root; tar zxf /tmp/mc-root/foo.tar.gz; tar tzf /tmp/mc-root/data.tar.gz; rm /tmp/mc-root/*
<tab> being replaced by the TAB key.
Save & exit, restart mc and you should be set. You do have to restart mc for the changes to take effect.
The only thing that's bugging me is the "sh: file: command not found" message on the command line. What gives with that?
A bit of explaination on how it works for the bored amoung us:
The "Open=ipkg install %p" is what will get executed when you select a file and hit enter. I've got mine set to go ahead and install the .ipk, you might want to consider the ramifications of that before adding this line (do you really want to install the ipk?). You can always leave the "Open=ipkg install %p" line out.
The "View=view..." line copies the file you selected (%f) to /tmp/mc-root/foo.tar.gz.
Then cd's into that directory.
Then gunzips the foo.tar.gz to foo.tar.
Then displays the contents of foo.tar.
And finally it cleans up after itself.
The only assumption that I make is that you have a /tmp/mc-root directory. This should be a pretty good guess since mc creates this for you (well, it did for me...) If you don't have this directory then create it.
Enjoy.
John