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 Thu 24 Apr 2014, 18:00
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Petget enhanced and many version updates
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 26 Sep 2009, 17:59    Post subject:  Petget enhanced and many version updates
Subject description: patched to use xz compressed .pxt packages
 

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
pxtget-20090926.pet
Description 
pet

 Download 
Filename  pxtget-20090926.pet 
Filesize  11.69 KB 
Downloaded  422 Time(s) 
tar-1.22-i486.pet
Description 
pet

 Download 
Filename  tar-1.22-i486.pet 
Filesize  109.12 KB 
Downloaded  404 Time(s) 
xz-4.999.9beta-i486.pet
Description 
pet

 Download 
Filename  xz-4.999.9beta-i486.pet 
Filesize  67.15 KB 
Downloaded  396 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 26 Sep 2009, 19:41    Post subject:  

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/articles/diff-patch-ten-minutes.html
woof-20090917-pxtget.patch.gz
Description 
gz

 Download 
Filename  woof-20090917-pxtget.patch.gz 
Filesize  11.73 KB 
Downloaded  365 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Thu 21 Nov 2013, 19:19    Post subject:  

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/woof-CE/tree/testing

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3861
Location: Kiel,Germany

PostPosted: Fri 22 Nov 2013, 00:42    Post subject:  

WOW ! Smile

Did not knew it before !

Here is my STILL MUCH TODO attempt : Add support for other compressions than gzip for dotPets from year 2012 .
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Fri 22 Nov 2013, 06:41    Post subject:  

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! Very Happy

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 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Fri 22 Nov 2013, 06:55    Post subject:  

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

and for the other .. what about?
Code:
file -b "$1" | grep -q "^xz" && EXT=xz || EXT=gz #131122


(of course replace $1 with $DLPKG_BASE in the other one Wink )

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Fri 22 Nov 2013, 07:14    Post subject:  

Yep, works for me. Cool
Code:
# 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!

_________________
[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 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0624s ][ Queries: 12 (0.0041s) ][ GZIP on ]