Open marcewho opened 11 years ago
fpm -t solaris
outputs packages installable with pkgadd -d thepackage
I did some scouring for old packages, found them on OpenCSW - The file format of solaris srv4 packages is called "package stream":
% file ant-1.7.0,REV=2007.09.17-SunOS5.8-all-CSW.pkg
ant-1.7.0,REV=2007.09.17-SunOS5.8-all-CSW.pkg: pkg Datastream (SVR4)
% head -1 ant-1.7.0,REV=2007.09.17-SunOS5.8-all-CSW.pkg
# PaCkAgE DaTaStReAm
This is the file format that we want to reproduce, I think. I can roughly read it with a text editor, but the header for each file is a bit non obvious.
Directory Structure
pkginfo
pkgmap ( this is the tricky part, might want to read http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.files%2Fdoc%2Faixfiles%2Fpkgmap_4.htm )
Most of the content can be gathered with find
The missing parts are:
ftype: sym links need the l replaced for an s and the path modified ie.
Actual application files under root
Package it