HP/Works

Home Join! Events PING! Committee Directory

PING : THE SOFTWARE DEPOT COOKBOOK : PRODUCT SPECIFICATION FILES

PSF_FILE is the Product Specification File (PSF), where the real work gets done. To make the job of writing PSF files easier, I created some templates, and I fill in the blanks.

There are two main areas that I swinstall software to: "/opt" and "/usr/contrib". Each one of them has the product broken out differently.

If a product only has a few files -- maybe an executable or two, a few man pages and maybe a library file -- I build it to reside in "/usr/contrib/bin", "/usr/contrib/man/man1" and "/usr/contrib/lib", respectively. For Gnu-configured software, this usually means setting the "--prefix" to "/usr/contrib".

On the other hand, if this is a major software package -- like Emacs or TCL, I build it with the "--prefix" set to "/opt/PACKAGE_NAME". This keeps it all together in one place, and simplifies the PSF file. The Post-Install script adds the "bin" directory to the contents of "/etc/PATH", which you can source in your ".cshrc".

Appendix 1 contains the PSF I use for packaging software products that will be swinstalled into "/usr/contrib".

Appendicies 2, 3 and 4 are the PSF and post-install and post-remove scripts for packaging products to be installed in "/opt".

Useful Command-line Flags


Home