| Solaris |
|
|
Install the JDS cbe from http://dlc.sun.com/osol/jds/downloads/cbe/ and run cbe-install
$ cd /opt $ wget http://dlc.sun.com/osol/jds/downloads/cbe/jds-cbe-1.6.2-i386.tar.bz2 $ bzcat /tmp/jdscbe.tar.bz2 | tar -xf - $ cd jdscbe-1.6.2; ./cbe-install
Make your spec file. The Fedora project publishes a collection of them, props to them for that. OpenSolaris and Fedora are quite different, so the utility might be limited. You may find the spec-files-extra repository to be a much more useful resource for templates. You may need to either strip out or satisfy the %include directives, since they're not really relevant to files not related to SFE. The sections should be pretty self-explanatory, and the people on the mailing lists and irc channels are helpful if you don't understand something. There is a blank template you can use here"
Set up your environment, and build with pkgtool ( Let's use Drupal as an example)
$ . /opt/jdsbld/bin/env.sh $ pkgtool build ~--download drupal.spec
Test, then uninstall the SysVR4 package
$ pfexec pkgrm drupal
make a local package repo:
$ pfexec svccfg -s pkg/server "setprop pkg/port=10000" $ pfexec svcadm refresh pkg/server $ pfexec svcadm enable pkg/server $ pfexec svcadm restart pkg/server
and add your local repo as a pkg(5) authority
$ pfexec pkg set-authority -O http://localhost:10000 localhost
add your package to your local repo.
$ eval `pkgsend open drupal@6.8` $ pkgsend import /export/home/johns/packages/PKGS/drupal/ $ pkgsend close
and install your package with pkg(1) and test again.
$ pfexec pkg install drupal
Everything work? License in the .spec file is kosher? Excellent. You're ready to submit your package to the source juicer or alternately sw-porters-discuss@opensolaris.org ( it's set to reject non-subscribers, so you'll need to subscribe )
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.