On 03/29/10 09:22 AM, Darren J Moffat wrote:
I want to be able to setup a "unified" pkg server to server out
sparc/x86/debug/nondebug/redist/extra in away similar to what
pkg.opensolaris.org or ipkg.sfbay does.
I know that x86/sparc can be combined today but can debug and non-debug
be served from a single repository ? I assume redist and extra need to
stay separate.
I'm looking for something like this:
http://<server>/<project>/<repo>
examples:
http://mypkg.sfbay/crypto/proj1
http://mypkg.sfbay/crypto/proj1-extra
http://mypkg.sfbay/crypto/proj2
http://mypkg.sfbay/crypto/proj2-extra
http://mypkg.sfbay/ipsec/ikev2
http://mypkg.sfbay/ipsec/ikev2-extra
Basically for a given "project" that is hosted on the server I want at
most 2 urls, one for redist and one for extra. To be presented to the
test/dev teams for use with onu(1)/pkg(5).
If debug and non debug can't yet be combined thats okay but I really
don't want to expose port numbers and I really want x86 and sparc combined.
Where can I find instructions on how to do this ?
Debug and non-debug can be achieved using variants, just as i386 and
sparc are handled using variants today.
Some of this is in the tentative design doc in the pkg(5) gate under
doc/facets.txt.
So, I believe what you want would look something like this (contrived
example):
non-debug i386 case:
file ... group=sys mode=0755 owner=root \
path=usr/kernel/drv/amd64/pts reboot-needed=true \
variant.arch=i386
debug i386 case:
file ... group=sys mode=0755 owner=root \
path=usr/kernel/drv/amd64/pts reboot-needed=true \
variant.arch=i386 variant.debug.kernel=true
Note that I'm uncertain about the exact tag you should use here, the
examples in our test suite use variant.debug.kernel, but technically you
could use any tag you wanted as long as it started with 'variant.debug.'
(yes, the '.' at the end is important). So variant.debug.kernel.all or
variant.kernel.debug.tty should also be valid as an example.
I suspect Bart or Danek might have some guidance in this area.
Finally, I would note that you can explicitly set what variants are used
for an image either at image creation time using the --variants option,
or by using the change-variant subcommand to pkg(1). Although
packagemanager(1) currently has no way to alter the image's variants (
RFE needed?) although that is probably outside their target audience.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss