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
Petget enhanced and many version updates
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Petget enhanced and many version updates
- 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].
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
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
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].
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
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
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 .
Did not knew it before !
Here is my STILL MUCH TODO attempt : Add support for other compressions than gzip for dotPets from year 2012 .
WOW++! Just a few days ago I also did something similar (just for myself, selfishly ).
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!
Greetings!
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!
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]
[b][color=green]Omnia mea mecum porto.[/color][/b]
Ok thanks for line 260, changed gz to ${EXT}
and for the other .. what about?
(of course replace $1 with $DLPKG_BASE in the other one )
and for the other .. what about?
Code: Select all
file -b "$1" | grep -q "^xz" && EXT=xz || EXT=gz #131122
Puppy Linux Blog - contact me for access
Yep, works for me.
Thanks &
Greetings!
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
#
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]
[b][color=green]Omnia mea mecum porto.[/color][/b]