Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 23 Aug 2014, 07:33
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
UExtract-3.5 for (mainly, but not only) Slacko
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 8 [109 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Mon 26 Aug 2013, 13:07    Post subject:  

Hey Amigo

As for ffmpg/pdf, I understand your point and you almost convinced me, but I'd like to draw attention on an elusive difference: it's not verbatim "unarchive" utility, but more generic "extraction" utility.
TBH, if I called it, e.g. "Unarchiver" or similar, I'd have never thought to put such stuff into it.
Yeah, at the beginning I had only archives in mind, but over the time my guideline evolved to: "If the manner of processing this [format to be added] fits to (or at least doesn't abuse glaringly) the meaning of 'extraction' - put it in!".
And although this kind of logic has enslaved me, I'm gonna rethink this once more...and perhaps I'll follow what my heart says, not my mind. Laughing

Ok, I'm waiting for the diff, thanks. Cool
______________

mikeb wrote:
Quote:
Very readable -nicely indented, etc.

Someone should buy Barry a 'tab' key for christmas Very Happy

mike

Idea Very Happy Wink

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2234

PostPosted: Mon 26 Aug 2013, 13:56    Post subject:  

I think you could make two or three nice apps out of that code...
But, I've fallen into the same thinking -nearly every time I get good and started with a utility. There's always a tendency to over-reach with the scope of a project. Of course, you're gonna do just what you like with it anyway.

@mikeb You quoted what is, from me, high praise. This tool from SFR is maybe the most readable code I have ever seen on this site!
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8181

PostPosted: Mon 26 Aug 2013, 14:01    Post subject:  

Many a fun time I have had adding tabs to puppy scripts....

Hmm 'a get stuff out of anything tool'.... i catch your drift... I feared another pburn too but I am one for making simple gui's to do all that command line work simply because my memory would let me down.

Now if you could make it extract money...........

mike
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Tue 27 Aug 2013, 14:37    Post subject:  

I didn't plan to update it so quick, but since I found rather important bug, I won't be waiting, so here it is, v1.6:

- bugfix: if an archive contains one or more empty directories, they won't get unpacked
- added: warning at install time about missing dependencies (if any)
- removed .mht (it was never working too well, anyways)
- minor internal improvements

And a couple of new formats:
.cramfs (it was there before, in one of previous version, but got lost somehow)
.sqfs
.udf

Ok, now I'm really taking a break. Cool

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Fri 30 Aug 2013, 14:00    Post subject:  

SFR wrote:
Ok, now I'm really taking a break. Cool

I lied, version 1.7:
- fixed typo (was 'unzx' instead of 'unxz')
- all 'xz -d' occurencies replaced with 'unxz' (for consistency)
- animated GIFs extraction (using gifsicle)
- can extract "naked" (extensionless, i.e. already gunzip'ed) initrd
- more 'fool-proof' mechanisms
- got rid of awk dependency
- some internal rearrangements

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Tue 03 Sep 2013, 13:47    Post subject:  

Update, version 1.8:

New extensions:
.flf (figlet font)
.ima
.msu
.oxt
.pak
.tarz
.themepack (Win7's)
.tz
.vbox-extpack

New formats:
- can extract Mozilla's .mar archives.
- can extract El Torito 1.2M/1.44M/2.88M boot image from within bootable ISO.
Will be saved as ./0_UExtract_BOOTIMAGE/FLOPPY.img (so won't get mixed with "normal" content) inside the extraction directory.
Of course such FLOPPY.img can be (in most cases) extracted further via UExtract.

The above pair is handled by my own routines, working on similar principles as exploderpm.

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2234

PostPosted: Wed 04 Sep 2013, 13:34    Post subject:  

Are you keeping any notes about what the filetypes are?
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Wed 04 Sep 2013, 14:38    Post subject:  

Nope - most of them (origin) I remember.
But this site partially helps, when I can't recall: http://www.fileinfo.com/.

Do you have any particular filetype(s) in mind?

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Sat 07 Sep 2013, 10:49    Post subject:  

Update, version 1.9:

New formats/extensions:

.2fs|.3fs|.4fs (savefiles - both plain & encrypted)
.cpgz (same as cpio.gz)
.gz2 (misnamed bz2 file, lol)
.tar.gz2 (ditto)
.gzi (same as .gz)
.gzip (same as .gz)
.ipg (iPod game...not tested, but it's rumored that it's just a zip)
.jgz (gzipped Javascript file)
.pcv (MozBackup profile backup. Really - zip)
.piz (renamed .zip)
.psz (gzipped PostScript file)
.shr (same as .shar)
.taz (same as .tarz, .tz, .tar.Z, etc.)
.tlzma (was .tzma before, corrected)
.uue (same as .uu)
.xar (handled by 7z, so bye-bye permissions and stuff. Sad )

.cfs (Compact File Set) - only basic & unencrypted!
http://www.pismotechnic.com/cfs/ wrote:
Basic CFS files are compatible with ISO files, and can be read by many existing applications and systems.

.package (Autopackage format)
This one is handled manually (not via 'package_name.package --extract') due to lack of '--bytes' option in 'tail' in Slacko (and probably other Puppies).
Extracts both metadata and payload into a separate subdirs.
Doesn't verify MD5 (if something's wrong, appropriate unpacker will shout).
I obtained two of such packages and it works, but can't guarantee 100% reliability.

.pkg (Mac OS X Installer Package)
Two phases:
1. Extracts the main package (it's xar) using 7z
2. Extracts all 'Payload' and 'Scripts' subarchives using gunzip & cpio and removes them.

.txt - now UExtract can extract separate characters from a text file! [/jk] Wink

What else:
- For consistency and better dependency checking 'tar j/z/J' changed to 'bunzip2/gunzip/unxz | tar'
- I noticed that encrypted zip archives created with 7z cannot be unpacked with 'unzip'.
So now, if extraction of 'zip' related archive fails, 7z (if present) will be used.
- fixed output of 'uextract -d | more'
- some fixes & cleanings

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2312
Location: Heart of Texas

PostPosted: Sat 07 Sep 2013, 12:23    Post subject:  

could you look into porteus XZM modules, I copy/rename them as sfs and I can look into them but not merge them as sfs files, I think they may have a config.file run to merge them in.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Sat 07 Sep 2013, 13:12    Post subject:  

Hey Ted

UExtract already supports extracting of .xzm modules (using unsquashfs4).

As for merging/creating them, I don't know too much about that process; did you check how it's done in /opt/porteus-scripts/dir2xzm script?

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2312
Location: Heart of Texas

PostPosted: Sat 07 Sep 2013, 14:01    Post subject:  

Nope But thanks now I know where to look, Wink a porteus spin has worked out the MESH networking, and I'm trying to get its unique xzm module to be useable by puppy.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Sat 07 Sep 2013, 15:46    Post subject:  

Oh, now I see what you're trying to achieve. Hmm, when all the contents are already extracted, it would be just a matter to use dir2pet or dir2sfs, I guess.
But the question is, if the "guts" are compatible enough with Puppy. Wink
Anyway, good luck!
__________________

Darn, I just discovered what a mess those .run installers really are - each one have different option for extracting!
And although I kinda improved the routine and now it supports amd-driver.run, nvidia-driver.run and VirtualBox.run installers, I decided to withdraw this ability for now - who knows how many more are out there and how would they behave..? Rolling Eyes

Version 1.10 uploaded.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2312
Location: Heart of Texas

PostPosted: Sat 07 Sep 2013, 17:37    Post subject:  

I think its near enough... The are using pBurn as is and not even bothering to change its puppylinux name in the help! The may have even choicen a p... named linux so Pburn, Pmusic, Pmount etc sound native... Wink
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1053

PostPosted: Fri 13 Sep 2013, 12:00    Post subject:  

Update, version 1.11:

More...
.azw2 (Kindle Active Content App File - zip)
.cgz (same as .cpio.gz)
.cvd (ClamAV virus database. Really - tar.gz, starts @ 0x200)
.fpl/.vfd (floppy images)
.gadget (Windows sidebar gadget - zip, or sometimes cab)
.gem (RubyGems Package - tar & tar.gz)
.imz (zipped .ima)
.ipa (iPod application - zip)
.ipsw (iPod/iPhone Software Update File - zip. Contains encrypted .dmg files - 7z can't handle them, unfortunately).
.ita (IconTweaker Theme Archive - zip)
.obt (Openbox Theme - tar.gz)
.squashfs (same as .sqfs)
.studyarch (The Study Archive Format - zip)
.tazpkg (SliTaz package - cpio & cpio.lzma)
.tcz (TinyCore package - squashfs)
.thm (Sony Ericsson Theme File - tar)
.u3p (U3 Smart Application - zip)
.utz (UIQ Theme Package - yep, it's zip)
.widget (Microsoft Windows Mobile Widget - zip again)
.xap (Silverlight Application Package - what a surprise...zip)

.gifar
It's a malware, lol.
Extracts both .gif and .jar parts from within a file.
Well, actually such extension doesn't really exist - what haxor would name it like that anyway?
It'd be like "Hey everybody, this file contains malicious code."
But if anyone wants to create one, for testing purposes:
Code:
cat some_picture.gif some_app.jar > pic_and_app.gifar

Such a "picture" still can be viewed and, to execute the .jar part, use 'java -jar pic_and_app.gifar'.
Quite a fun to have two functional things in one piece.

What else:
- got rid of pet2tgz dependency - now .pets are being unpacked directly
- minor fixes

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 8 [109 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0894s ][ Queries: 12 (0.0049s) ][ GZIP on ]