Playing with IPS and SFE, Part II
August 12, 2008 4:43 pm General, OpenSolarisAfter picking up Petr’s excellent work to add IPS support to pkgbuild, generating IPS packages from SFE is now even easier.
Download an updated install image of pkgbuild, and put it in /opt. Now set up your usual desktop CBE environment, but add /opt/pkgbuild-beta/bin to the front of your path.
With the latest changes, pkgtool will automatically create an SVr4 package and generate the necessary IPS scripts and manifests and automatically publish to http://localhost:80/ (or $PKG_SERVER).
gman@rampage:~/SFE/$ pkgtool --interactive --download --ips build SFEmonkey-bubble.spec
though does not yet install them by default. It will however install an SVr4 package if you provide --svr4 at the command-line instead of --ips
If for some reason you decide to delete the contents of your repository, then you can simply
gman@rampage:~/$ cd packages/PKGMAPS/scripts gman@rampage:~/packages/PKGMAPS/scripts/$ ./SFEmonkey-bubble_ips.ksh
to import the package.
The enhancements also try and detect the appropriate grouping from the freedesktop.org menu spec if you’ve defined ‘Group’ in your spec file, and will also attempt to add a license if you’ve specified it in ‘SUNW_Copyright’.
Next step, cleaning up SFE packages to include the right meta-information and copyrights/licenses.
August 12th, 2008 at 8:51 pm
Gman,
Is pkgbuild-beta-ips.tar.bz2 actually a gzip file?
root> file ~doug/Download/pkgbuild-beta-ips.tar.bz2
/export/home/doug/Download/pkgbuild-beta-ips.tar.bz2: gzip compressed data – deflate method
August 12th, 2008 at 8:55 pm
Doug: Apologies, looks like I screwed up. It should now be fixed. Thanks for the note.