Mantis - cswclassutils
Viewing Issue Advanced Details
3636 regular use feature have not tried 2009-04-13 20:01 2009-06-04 18:51
yann  
bonivart  
normal  
closed  
fixed  
none    
none  
0003636: Allow package to provide their own manifest file

Some package already provide their own manifest file to be used under Solaris 10.
It would be nice to have a way for a package using cswinitsmf to disable automatic manifest generation so its own manifest file is used.
Issue History
2009-04-13 20:01 yann New Issue
2009-04-15 21:12 yann Note Added: 0005970
2009-04-21 17:18 bonivart Status new => assigned
2009-04-21 17:18 bonivart Assigned To => bonivart
2009-04-21 17:20 bonivart Note Added: 0005992
2009-04-21 21:08 yann Note Added: 0005996
2009-05-17 16:56 yann Note Added: 0006124
2009-05-28 15:16 bonivart Note Added: 0006215
2009-06-04 10:55 bonivart Note Added: 0006265
2009-06-04 10:56 bonivart Status assigned => resolved
2009-06-04 10:56 bonivart Resolution open => fixed
2009-06-04 18:51 bonivart Note Added: 0006269
2009-06-04 18:51 bonivart Status resolved => closed

Notes
(0005970)
yann   
2009-04-15 21:12   
It could be configured by using the existing tweaks system.
For exemple, if you provide your own manifest file, you could add:

#SMF_SCRIPT no # change this value to no if this init script should not be used to autogenerate the smf manifest file.
(0005992)
bonivart   
2009-04-21 17:20   
Ok, but how would it know which file to import as manifest?

SMF_SCRIPT /path/to/manifest

?
(0005996)
yann   
2009-04-21 21:08   
The manifest file would belong to the cswinitsmf class, so it will be passed to your script which could register it if smf is available and enabled.
You would have to add a test to determine if the file is a manifest or an init.d script (or something else).

But using "SMF_SCRIPT /path/to/manifest" will also work.
(0006124)
yann   
2009-05-17 16:56   
Hi Peter,

Any news of this feature, do you plan adding it ?
I am waiting for it to be able to switch some of my packages to cswclassutils.

Thanks in avance,

Yann
(0006215)
bonivart   
2009-05-28 15:16   
I have added a MANIFEST tweak to the init script. If set it will use that manifest instead of autogenerating one.

http://mirror.opencsw.org/testing/cswclassutils-1.13,REV=2009.05.28-SunOS5.8-all-CSW.pkg.gz [^]
(0006265)
bonivart   
2009-06-04 10:55   
I have tested it with smf_test 2.8 and it works.
(0006269)
bonivart   
2009-06-04 18:51   
Fix in 1.16 released today.