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 Fri 22 Aug 2014, 23:37
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Gnewpet - makes pets from installed packages
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 5 [64 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Mon 23 Jan 2012, 04:34    Post subject:  Gnewpet - makes pets from installed packages
Subject description: Pet Duplicate/Update
 

Finds current files for an installed Pet, and makes a new version in /tmp. Leave "new version" box blank for straight duplication, or edit to update name. Batch mode builds multiple pets.

2/17/12 Version 5.6 Includes both User installed and Builtin apps.
2/20/12 Version 5.8 Enables updates and name change to Builtin apps.
2/20/12 Version 5.9 Spruced up graphics. Thanks Geoffrey
2/23/12 Version 6.0 Opens wrapper that allows alternative /root directory
2/23/12 Version 6.1 bug fix
2/29/12 Version 6.2 bug fix
3/2/12 Version 6.3.1 bug fix

3/3/12 Version 6.4 Added feature to find the related woof package for a selected builtin. It lets you know if multiple packages are involved, otherwise automatically adds the correct name and pet.spec to the built package.
3/3/12 Version 6.5 Added ability to use woof package names & specs in batch mode (there's a checkbox in batch window).
gnewpet-6.5.pet
Description 
pet

 Download 
Filename  gnewpet-6.5.pet 
Filesize  8.57 KB 
Downloaded  1653 Time(s) 
gnewpet.png
 Description   
 Filesize   19.83 KB
 Viewed   2677 Time(s)

gnewpet.png


Last edited by jpeps on Sun 04 Mar 2012, 04:02; edited 11 times in total
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 18 Feb 2012, 19:56    Post subject:  

Updated to version 5.6
Back to top
View user's profile Send private message 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Sat 18 Feb 2012, 22:02    Post subject:  

That is just soo cool.

It is the quickest and easiest way to build a .pet from installed,
and easier than converting .debs to .pets and finding they don't work.
I prefer to save stuff for other future installations as .pets, not .debs, but need to know that they work.

The ability to do it from built-ins is the icing on the cake.
I have wanted something to do that in the past.

Was life meant to be this easy?

_________________
There's no place like 127.0.0.1
Back to top
View user's profile Send private message 
TheAsterisk!


Joined: 10 Feb 2009
Posts: 403
Location: SE Wisconsin, US

PostPosted: Sun 19 Feb 2012, 22:57    Post subject:  

This could be useful in updating built-in apps via dot-pet, but making sure not to overwrite any "extra" files in the system.

I'll give it a try. Thanks!
Back to top
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Mon 20 Feb 2012, 16:11    Post subject:  

Updated to version 5.8. Enabled updating of Builtin apps.
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1352
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Mon 20 Feb 2012, 21:49    Post subject:  

This is a great application, no more "I wish I'd kept that pet" good stuff. Cool

I thought that the GUI could do with a slight edit to give it a more even look

This will align the check boxes vertically
Code:
<hbox>
 <vbox>
       <checkbox tooltip-text="Check to use Builtin List">
       <label>"Builtin Apps"</label>
       <variable>BUILTINS</variable>
       </checkbox>
   
       <checkbox tooltip-text="save pet dir in /tmp">
       <label>"Save Directory"</label>
       <variable>SAVEDIR</variable>
       </checkbox>
 
       <checkbox tooltip-text="batch-copy edited list">
       <label>"Batch Mode      "</label>
       <variable>BATCH</variable>
       </checkbox>
   </vbox>
   </hbox>       

or a horizontal alignment which will give a smaller GUI
Code:
<hbox>
 <vbox>
       <checkbox tooltip-text="Check to use Builtin List">
       <label>"Builtin Apps"</label>
       <variable>BUILTINS</variable>
       </checkbox>
  </vbox>
   <vbox>
       <checkbox tooltip-text="save pet dir in /tmp">
       <label>"Save Directory"</label>
       <variable>SAVEDIR</variable>
       </checkbox>
  </vbox>
   <vbox>
       <checkbox tooltip-text="batch-copy edited list">
       <label>"Batch Mode      "</label>
       <variable>BATCH</variable>
       </checkbox>
  </vbox>
   </hbox>     


If you want to give your GUI a application icon in the top left hand corner and on the taskbar, just change it here
Code:
export MAIN_DIALOG='
<window title="Gnewpet" icon-name="Color"  decorate="true">

to this
Code:
export MAIN_DIALOG='
<window title="Gnewpet" icon-name="mini-dog"  decorate="true">

then make a system link from /usr/local/lib/X11/mini-icons/mini-dog.xpm TO /usr/share/icons/hicolor/16x16/apps
if you add the link to the pet package petget will update the icon cache and it will show for your application.
as the images show below, hope you don't mind me sticking my nose in Very Happy

Geoffrey
Screenshot-2.png
 Description   
 Filesize   36.5 KB
 Viewed   2556 Time(s)

Screenshot-2.png

Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Mon 20 Feb 2012, 22:52    Post subject:  

Hi Geoffrey,

Looks GOOD! I already did the windows icon link on my system, but didn't bother to configure it in the package. I like the centered checklist idea. The buttons could also centered, maybe with "space-expand" attr. I love your windows fonts graphics.
gnewpet.png
 Description   
 Filesize   16.65 KB
 Viewed   2523 Time(s)

gnewpet.png

Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 20 Feb 2012, 23:28    Post subject:  

Quote:
Was life meant to be this easy?


Puppy life was Smile

Must admit I don't usually create pets if I write something - maybe this will change that. Many thanks.

will add link here
http://puppylinux.org/wikka/petmaker

Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Jasper


Joined: 25 Apr 2010
Posts: 1111
Location: England

PostPosted: Mon 20 Feb 2012, 23:29    Post subject:  

Superb
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1352
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Mon 20 Feb 2012, 23:48    Post subject:  

jpeps wrote:
Hi Geoffrey,

Looks GOOD! I already did the windows icon link on my system, but didn't bother to configure it in the package. I like the centered checklist idea. The buttons could also centered, maybe with "space-expand" attr. I love your windows fonts graphics.


Hi jpeps,

Cool, you have done the icon links, I was wondering what "Color" was, now I see.

Yeah, I see what you mean with the buttons, gtkdialog GUI can be a pain to keep aligned with some themes, the font is Cherry Cream Soda in Saluki, which I quite like also.

I'm sure we will see more interest in this, I will definitely be keeping an eye on it, I will add it to my box of magic tricks. Wink
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2398
Location: Germany

PostPosted: Wed 22 Feb 2012, 09:59    Post subject:  

Hi.

Last version of gnewpet i did see has been 5.1.

RSH wrote:
I think than you would have one of the most useful and ultimate tool - not only to "cannibalize" the work of others but also to get pets, that somehow get lost, out of iso files.

It seems i have been wrong about this.

I think it is now the ultimate ultimate tool! BUT even a ultimate ultimate tool can be refined...

I will add this (5.9) to the LazY Puppy Update.

Great work.

What do you think about to modify gnewpet in the following way. Make the directory NOT statically (.packages). I think it would be better if it would be possible to select a path. Then you could mount an iso and then mount the xxx.sfs inside the iso and then grab the installed .pet files out without the need to run the iso (puppy) and install gnewpet into that puppy.

All could be done while running your favorite puppy. Smile

RSH

(it would add a third ultimate to your ultimate ultimate tool) Laughing

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 23 Feb 2012, 00:27    Post subject:  

RSH wrote:


What do you think about to modify gnewpet in the following way. Make the directory NOT statically (.packages). I think it would be better if it would be possible to select a path. Then you could mount an iso and then mount the xxx.sfs inside the iso and then grab the installed .pet files out without the need to run the iso (puppy) and install gnewpet into that puppy.

All could be done while running your favorite puppy. Smile


You could change /root to ./root, and run it in a specific location.
Run for both gnewpet and newpet:

sed -i 's/\/root/\.\/root/'
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 23 Feb 2012, 14:44    Post subject:  

OK.. Boots to wrapper which allows selection of alternative mounted directories. If ./root doesn't exist in selected directory, it defaults to /root

RSH: I could see where this could be useful. Nice idea!
gnewpet.png
 Description   
 Filesize   11.39 KB
 Viewed   2412 Time(s)

gnewpet.png

Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2398
Location: Germany

PostPosted: Thu 23 Feb 2012, 23:35    Post subject:  

jpeps wrote:
OK.. Boots to wrapper which allows selection of alternative mounted directories. If ./root doesn't exist in selected directory, it defaults to /root

RSH: I could see where this could be useful. Nice idea!


Thanks, but unfortunately i do always get message invalid directory.

I did check the button Set relative root directory.

I did try it using mounting iso and then mounting sfs (inside iso) with and without "/" at end of path.

Examples:

/mnt/+mnt+sdb2+LinuxImages+ceepup3+CeePup3-bld11.iso/cpup_330.sfs/root/

/mnt/+mnt+sdb2+LinuxImages+ceepup3+CeePup3-bld11.iso/cpup_330.sfs/root

I did try extracting sfs to sdc3/test with and without "/" at end of path

Examples:

/mnt/sdc3/test/root/

/mnt/sdc3/test/root

No success at all. Sad - invalid directory

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2398
Location: Germany

PostPosted: Thu 23 Feb 2012, 23:57    Post subject:  

Hi,

i have examined the code of the gnewpet-wrapper.

Code:
rootdir() {
if [ "$RELATIVE" == "true" ]; then
   var="${ent3}/root"
      if [ ! -d "$var" ]; then
           Xdialog --msgbox "Invalid Directory" 5 25
      else
            echo "$ent3" >/tmp/gnewpetDir
      fi
else
  [ -f /tmp/gnewpetDir ] && rm /tmp/gnewpetDir
fi
}


You did define /root, so there will be no /root/root directory, so it is invalid.

Did try /mnt/+mnt+sdb2+LinuxImages+ceepup3+CeePup3-bld11.iso/cpup_330.sfs and get the list of installed apps inside the mounted iso-sfs. Cool

But i do only get back the "var" directory of the installed app inside the re-created .pet. Sad

I think the relative directory has to be added to the paths inside the example-app.files file somewhere inside the backend of gnewpet. Smile

Maybe just write (echo) this path into a file via wrapper and then read out via backend. If the file doesn't exist or doesn't contain a path, it adds "" to the paths inside example-app.files.

Could it be that easy?

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 5 [64 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.1015s ][ Queries: 12 (0.0077s) ][ GZIP on ]