Petget enhanced and many version updates

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

Petget enhanced and many version updates

#1 Post by technosaurus »

I have patched petget to use xz compressed files - using the extension .pxt to differentiate them (it isn't really that necessary to have a separate extension, but I didn't want users without the patch to be befuddled to why their pet wouldn't install)

Smaller packages will reduce bandwidth usage and server space, shorten download times and still work as fast as the gzip style pet packages. (creating the pet takes slightly longer but nowhere near bzip times)

Still not 100% complete - need to add a mime type etc... for .pxt so that petget automatically handles them.

to test it the packages are in:
http://www.puppylinux.asia/members/T/444/ puppy:linux

You will probably need the tar and xz pet as well unless you have the latest stable versions of both (not included in any Puppy yet)
their are standard pets as well for comparison
Attachments
tar-1.22-i486.pet
(109.12 KiB) Downloaded 644 times
xz-4.999.9beta-i486.pet
(67.15 KiB) Downloaded 651 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#2 Post by technosaurus »

Here is a patch for woof - since that is the only place you can get this (4.3) version of petget

to apply patches see this tutorial
http://stephenjungels.com/jungels.net/a ... nutes.html
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#3 Post by 01micko »

techno, can you repost the packages/patches, the links here are broken.

EDIT1
It's ok, I did it anyway, but I left the .pet extension as this is how kirk and jamesbond did it in FatDog. Probably a bunch of changes in petget since your patches anyway. I'll post 'em soon.

EDIT2
The changes were made to woof-CE testing branch https://github.com/puppylinux-woof-CE/w ... ee/testing
Puppy Linux Blog - contact me for access

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

WOW ! :)

Did not knew it before !

Here is my STILL MUCH TODO attempt : Add support for other compressions than gzip for dotPets from year 2012 .

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#5 Post by SFR »

WOW++! Just a few days ago I also did something similar (just for myself, selfishly :wink: ).
I, too, didn't know the idea goes back to 2009 (thought FatDog was first) and haven't seen Karl's attempt.

@Mick: I tried your versions and just a couple of things to report:
1. One spot is missed in installpkg.sh, line 260: rm -f $DLPKG_MAIN.tar.gz 2>/dev/null (I overlooked it too at first).
2. I'd suggest to use 'file -b' and/or 'grep -w' (I used both) in installpkg.sh and pet2tgz, because in case of gzip'ed .pet that is named, for example: "tuxzone-1.0.pet" we'll get false positive on 'xz' compression.
(should I post the diffs in woof-ce thread for these tiny changes..?)

Great, xz support at last! :D

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#6 Post by 01micko »

Ok thanks for line 260, changed gz to ${EXT}

and for the other .. what about?

Code: Select all

file -b "$1" | grep -q "^xz" && EXT=xz || EXT=gz #131122
(of course replace $1 with $DLPKG_BASE in the other one :wink: )
Puppy Linux Blog - contact me for access

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#7 Post by SFR »

Yep, works for me. 8)

Code: Select all

# file tuxzone-1.0.pet 
tuxzone-1.0.pet: gzip compressed data, was "tuxzone-1.0.tar", from Unix, last modified: Fri Nov 22 12:12:43 2013, max compression
# file -b tuxzone-1.0.pet | grep -q "^xz" && echo xz || echo gz
gz
# 
# file rox-clock-1.pet 
rox-clock-1.pet: xz compressed data
# file -b rox-clock-1.pet | grep -q "^xz" && echo xz || echo gz
xz
# 
Thanks &
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Post Reply