Can I take a Solaris package from OpenCSW and modify it?
asked: 2012-02-09 by: automaciej
automaciej answers:
In theory you can modify a binary package by calling pkgtrans
and transforming it to the directory format. Then you could modify it in the directory form, and assemble the package again. But it's a very fiddly and brittle process.
A much better idea is to check out the subversion repository with the build recipes, and build fresh packages from there. If you look at the pkginfo
file inside an OpenCSW package, you'll see a field called OPENCSW_REPOSITORY
. It contains a URL to the sources it has been built from, including the revision number, e.g.
> pkgparam CSWgmake OPENCSW_REPOSITORY
https://gar.svn.sf.net/svnroot/gar/csw/mgar/pkg/gmake/trunk@15744