LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 06-27-2008, 10:01 AM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
a question on packaging....Struck with a dir format, unable to convert it into .pkg!!


Hi all,

I just created a pkg to see if i could make one
I am 100% newbie.
But i am not able to get the .pkg extension at all..
When i go into /var/spool/pkg my newly created pkg is listed but its in a dir format...
i know that it will be created as a dir itself but how do i convert it into a pkg??

Code:
bash-3.2# pkgmk
## Building pkgmap from package prototype file.
## Processing pkginfo file.
WARNING: parameter <PSTAMP> set to "Harivayu20080627201208"
WARNING: parameter <CLASSES> set to "none"
## Attempting to volumize 13 entries in pkgmap.
part  1 -- 60 blocks, 37 entries
## Packaging one part.
/var/spool/pkg/SHAMtest/pkgmap
/var/spool/pkg/SHAMtest/pkginfo
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Advanced/afile1
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Advanced/afile2
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Advanced/afile3
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Help/hfile1
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Help/hfile2
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Tutorials/tfile1
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Tutorials/tfile2
/var/spool/pkg/SHAMtest/reloc/SHAMpk/Tutorials/tfile3
/var/spool/pkg/SHAMtest/reloc/SHAMpk/pkginfo
## Validating control scripts.
## Packaging complete.
then the pkgmap looks like this in /var/spool/pkg/<my pkg>/
Code:
: 1 60
1 d none SHAMpk 0755 root root
1 d none SHAMpk/Advanced 0755 root root
1 f none SHAMpk/Advanced/afile1 0644 root root 0 0 1214593105
1 f none SHAMpk/Advanced/afile2 0644 root root 0 0 1214593105
1 f none SHAMpk/Advanced/afile3 0644 root root 0 0 1214593105
1 d none SHAMpk/Help 0755 root root
1 f none SHAMpk/Help/hfile1 0644 root root 0 0 1214593093
1 f none SHAMpk/Help/hfile2 0644 root root 0 0 1214593093
1 d none SHAMpk/Tutorials 0755 root root
1 f none SHAMpk/Tutorials/tfile1 0644 root root 0 0 1214593052
1 f none SHAMpk/Tutorials/tfile2 0644 root root 0 0 1214593052
1 f none SHAMpk/Tutorials/tfile3 0644 root root 0 0 1214593052
1 f none SHAMpk/pkginfo 0644 root root 120 9596 1214592802
1 i pkginfo 162 12706 1214597528
~
could anyone tell me how i can create a pkg out of this dir structure?

Thanks
 
Old 06-28-2008, 04:15 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
The pkgtrans command allows to convert a file system format package to a datastream one which is really what a .pkg file is.
 
Old 06-28-2008, 09:23 AM   #3
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
Thanks!!!!

But i just figured that one out a couple of hrs ago myself.
So now i have created a pkg for myself, as of now it does nothing but have empty files ...
After using the pkgtrans cmd i was able to create a .pkg data stream that installs perfectly..

Now i would like to contribute to the community..
But i dont know the repository that holds the various pkg objects and how to create it?
Can you kindly give me more details on this?

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to format ntfs partition using ntfsprogs pkg. mrj Fedora 1 12-16-2007 07:29 AM
How to convert rm format music files to mp3 format me4linux Linux - Software 2 05-15-2007 01:45 PM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM
Red Carpet: Unable to acess packaging subsystem Gai-jin Linux - Software 2 03-13-2003 06:07 AM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration