Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Beatnik (493)

  (email not shown publicly)

A 29 year old belgian who likes Mountain Dew, Girl Scout Cookies, Tim Hortons French Vanilla Flavoured Cappucinno, Belgian beer, Belgian chocolate, Belgian women, Magners Cider, chocolate chipped cookies and Perl. Likes snowboarding, snorkling, sailing and silence. Bach can really cheer him up! He still misses his dog.

Project Daddy of Spine [], a mod_perl based CMS.

In his superhero time (8.30 AM to 5.30 PM), he works on world peace.

Journal of Beatnik (493)

Wednesday December 14, 2005
08:30 AM

Note to myself: Solaris Packages

[ #27971 ]
Creating Solaris Packages:

Extract the source-bundle:

# cd /tmp/
# gunzip < /tmp/foo.tar.gz | tar xf -

Launch the auto-configuration:

# cd foo
# ./configure -prefix=`pwd`/../dummy_installdir --bla --bla

Launch the compilation and installation:

# make && make install

Package foo will be compiled and installed into the /tmp/dummy_installdir. Create the pkginfo file, containing the package information:

# cd /tmp/dummy_installdir
# cat > pkginfo <<EOF
PATH=/sbin:/usr/sbin:/usr/b in:/usr/sadm/install/bin
D ESC=Application that doesn't do a damn thing

Create the prototype file, containing the package directory and file structure and attributes:

# find . -print | pkgproto > prototype

Update the prototype file. Remove the following lines:

f none prototype 0644 root other
f none pkginfo 0644 root other

Add the following line at the top:

i pkginfo=./pkginfo

In /tmp/dummy_installdir execute pkgmk:

# pkgmk -r `pwd`

In /var/spool/pkg a directory called foo is created. Create the actual package:

# cd /var/spool/pkg
# pkgtrans -s `pwd` /tmp/foo.pkg

When asked which tool to package, select the foo package. Compress the package:

# cd /tmp
# gzip /tmp/ foo.pkg

The end result is a file called foo.pkg.gz

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • i have to do package build for 3 or 4 OSes (Tru64,Debian,Solaris, maybe AIX) when there is one out. it's rather boring and tiresome.

    so i just started writing a perl script to automate the package buidling task. hopefully i can get out of this soon ;-)
    • Don't forget to look at the pre and post scripts.. I know in what environment I'm installing so I can avoid pitfalls but some things are better handled with scripts :)