pkgzip does it by zipping the "reloc" subdirectory tree and placing the zip file in the "archive" subdirectory. At pkgadd time a class action script like "i.none" in the "install" subdirectory does the installation of the files transparently. It's useful because less steps for the installation are necessary and installation might be considerably faster, depending on the system (e.g. devices with long seek times like CD-ROM drives) and number/size of files. For datastream packages, the temporary space used in /var/tmp (or to whatever TMPDIR is set) is smaller and since there only goes the zipped file and not a whole unzipped directory tree that would be copied file by file it's usually faster.
This adjusts the GMUssh2 package, adding a script to it, and then does a pkgtrans on the result to create the ssh-3.1.0-s8-sparc.pkg file.$ pkgzip -s ssh-3.1.0-s8-sparc.pkg GMUssh2
Unfortunately, pkgzip will not work on packages that have custom 'class' groups with install scripts. It will also not work on non-relocatable packages.
The best way to get a pkgzip "executable", is now to use the opencsw pkgzip package. Use pkg-get to install, if you dont have it already. The executable for pkgzip is pure perl, so if you want "source", just install or extract the package, and you'll have it.
Older version archived here (Dont forget to chmod +x)
End of description of pkgzip, by Markus Gyger
Website run by:Philip Brown
Bolthole Top - Solaris Top - Search Bolthole.com