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 30 Aug 2014, 00:14
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Iguleder's package tools
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 02 Aug 2010, 03:23    Post subject:  Iguleder's package tools
Subject description: Tools I use for creating PETs and DEB to PET conversion
 

Well ... here are some of the tools I wrote to make packaging easier, I think it would be nice to share them. They're useful with Lupu (with Ubuntu packages), dpup (with Debian Squeeze packages) and 4.x (with Debian Lenny packages). Also, when I compile something, I use these tools to trim it and split it in Puppy fashion.

1) strippkg and xdeb require the devx installed.
2) Use at your own risk.

Quote:
Usage: strippkg [DIRECTORY]
Strip all binary files under DIRECTORY

Options:
--help Display this message and quit


First of all, a script that strips all executables, libraries and kernel modules under a directory. Very useful for trimming packages.

Quote:
Usage: mkpkg [DIRECTORY]
Process the package in the directory DIRECTORY to separate DEV, NLS and DOC from it

Options:
--help Display this message and quit


Then, a script that processes packages and splits documentation, locales and development files from them automatically.

Quote:
Usage: xdeb [PACKAGE]
Extract the Debian package PACKAGE to a subdirectory under the current directory

Options:
--help Display this message and quit


A script that extracts DEB packages to a subdirectory of the current directory.

When I convert DEB packages to PET packages, I extract them with xdeb, then run strippkg on them and finally, split them with mkpkg. Then, I run dir2pet on the DEV, NLS, DOC components and the main package.

Here's an example, I downloaded a GCC DEB from packages.ubuntu.com, then extracted it with xdeb and ran strippkg on it. Then, I used mkpkg to split DEV and DOC from it. Because Puppy comes without docs, I removed the DOC package and the result is a perfectly Puppy-trimmed package, stripped to the max. Wink
iguleder_tools-001.pet
Description 
pet

 Download 
Filename  iguleder_tools-001.pet 
Filesize  2.25 KB 
Downloaded  257 Time(s) 

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0428s ][ Queries: 13 (0.0051s) ][ GZIP on ]