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 25 Oct 2014, 02:23
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
createsfs - script to create sfs file from .pet/.sfs files
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
mohan34u


Joined: 14 Nov 2007
Posts: 67

PostPosted: Fri 06 Feb 2009, 03:54    Post_subject:  createsfs - script to create sfs file from .pet/.sfs files
Sub_title: This script will create .sfs file from one or more .pet/.sfs files
 

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:
$ 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:
$ 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:
$ 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.
createsfs.gz
Description  Script to create .sfs file from .pet/.sfs files
gz

 Download 
Filename  createsfs.gz 
Filesize  1023 Bytes 
Downloaded  2199 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
ljfr

Joined: 23 Apr 2009
Posts: 176

PostPosted: Thu 23 Apr 2009, 05:05    Post_subject: use of pet2tgz to rename the file  

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/programs/graphics/gimp-2.4.5-i386-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.
Back to top
View user's profile Send_private_message 
charlie6


Joined: 30 Jun 2008
Posts: 1015
Location: South of Belgium

PostPosted: Mon 18 Jan 2010, 15:32    Post_subject:  

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
Back to top
View user's profile Send_private_message 
scsijon

Joined: 23 May 2007
Posts: 1047
Location: the australian mallee

PostPosted: Thu 10 Mar 2011, 07:01    Post_subject:  

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
Back to top
View user's profile Send_private_message Visit_website 
scsijon

Joined: 23 May 2007
Posts: 1047
Location: the australian mallee

PostPosted: Fri 18 Mar 2011, 23:29    Post_subject:  

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).
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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