createsfs - script to create sfs file from .pet/.sfs files

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
mohan34u
Posts: 67
Joined: Wed 14 Nov 2007, 07:22
Contact:

createsfs - script to create sfs file from .pet/.sfs files

#1 Post by mohan34u »

Hi,

This script will create .sfs file from one or more .pet/.sfs files. It will be useful to add pet packages to already existing .sfs files or create new .sfs file from multiple .pet packages.

1) creating .sfs file from multiple .pet packages,

Code: Select all

$ createsfs -f firefox dbus-1.2.2-i686.pet dbus-glib-0.80-i686.pet fontconfig-2.6.0-i686.pet inputproto-1.5.0-i686.pet libXi-6.0.1-i686.pet firefox-3.0.6-i686.pet
this will create firefox_411.sfs file.

2) creating .sfs file from .pet package and .sfs file

Code: Select all

$ createsfs -f devx_updated php-5.2.8-i686.pet devx_411.sfs
This will create devx_updated_411.sfs with php which can be used with puppy version 4.11

3) creating .sfs file with different puppyversion number

Code: Select all

$ createsfs -f devx_updated -r 300 php-5.2.8-i686.pet devx_411.sfs
This will create devx_updated_300.sfs with php which can be used with puppy version 3.00.

If you find any errors or improvements in this script, please post here.
Attachments
createsfs.gz
Script to create .sfs file from .pet/.sfs files
(1023 Bytes) Downloaded 3874 times

ljfr
Posts: 176
Joined: Thu 23 Apr 2009, 08:35

use of pet2tgz to rename the file

#2 Post by ljfr »

Hi mohan34u,

your script works great - already made few sfs with it.

I just had a problem once with gimp 2.4.5 from ttuxxx http://www.puppylinux.asia/tpp/ttuuxxx/ ... 6-full.pet

maybe due to: mv "${FILE}" "${FILE%.pet}.tar.gz",
when i do that manually then extraction fails (but I don't have any error message from createsfs script...)

anyway solved it, by doing it step by step, using pet2tgz
, tar xzf, dir2iso.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#3 Post by charlie6 »

Hi mohan34u,
thanks a lot for your script..
Sorry if my question could look a bit trivial...
please how does one practicaly use the
createsfs -f file.pet
to get file.sfs? I do not know how to use that script..I tried in a terminal...no success. What stands the $ in front of createsfs for...? Where do I write that script and how run it..?
Sorry ...
Thanks for any advice
Cheers, charlie

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#4 Post by scsijon »

A few questions if I may.....

1/ Do we have a limit on the number of pets that can be added to create a sfs?

2/ Do we have a size limit on the created sfs?

3/ Can you check that this is the right way to predefine the final name of the sfs.

$ createsfs -f mysfs pet1.pet pet2.pet pet3.pet

creates a sfs with the name "mysfs.sfs"

and
4/ Finally, am I allowed to include pathnames for the pets or do they need to be in the one directory

thanks
scsijon

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#5 Post by scsijon »

to answer my own questions (to date I have found:)

1:- no and yes, Can add more than, but can't seem to get past 63 pets if I wish to add menu items for them.

2:- no

3:- yes

4:- no, must be in the one directory and with plenty of disc space (3-4 times the pet lists total size).

Post Reply