Author |
Message |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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).
Description |
|

Download |
Filename |
gnewpet-6.5.pet |
Filesize |
8.57 KB |
Downloaded |
2842 Time(s) |
Description |
|
Filesize |
19.83 KB |
Viewed |
4370 Time(s) |

|
Last edited by jpeps on Sun 04 Mar 2012, 04:02; edited 11 times in total
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Sat 18 Feb 2012, 19:56 Post subject:
|
|
Updated to version 5.6
|
Back to top
|
|
 |
kooliepup

Joined: 13 Jan 2012 Posts: 302 Location: Victoria, Australia
|
Posted: 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
|
|
 |
TheAsterisk!

Joined: 10 Feb 2009 Posts: 407
|
Posted: 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
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Mon 20 Feb 2012, 16:11 Post subject:
|
|
Updated to version 5.8. Enabled updating of Builtin apps.
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: Mon 20 Feb 2012, 21:49 Post subject:
|
|
This is a great application, no more "I wish I'd kept that pet" good stuff.
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
Geoffrey
Description |
|
Filesize |
36.5 KB |
Viewed |
4367 Time(s) |

|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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.
Description |
|
Filesize |
16.65 KB |
Viewed |
4359 Time(s) |

|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
|
Posted: Mon 20 Feb 2012, 23:28 Post subject:
|
|
Quote: | Was life meant to be this easy? |
Puppy life was
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
_________________ YinYana AI Buddhism
|
Back to top
|
|
 |
Jasper
Joined: 25 Apr 2010 Posts: 1350 Location: England
|
Posted: Mon 20 Feb 2012, 23:29 Post subject:
|
|
Superb
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: 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.
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 2420 Location: Germany
|
Posted: 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.
RSH
(it would add a third ultimate to your ultimate ultimate tool)
_________________ LazY Puppy
RSH's DNA
SARA B.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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.
|
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
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: 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!
Description |
|
Filesize |
11.39 KB |
Viewed |
4247 Time(s) |

|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 2420 Location: Germany
|
Posted: 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. - invalid directory
_________________ LazY Puppy
RSH's DNA
SARA B.
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 2420 Location: Germany
|
Posted: 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.
But i do only get back the "var" directory of the installed app inside the re-created .pet.
I think the relative directory has to be added to the paths inside the example-app.files file somewhere inside the backend of gnewpet.
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
|
|
 |
|